Skip to content

Regarding implementation fringe region technique in Cylinder2d code.

OpenLB – Open Source Lattice Boltzmann Code Forums on Lattice Boltzmann Methods General Topics Regarding implementation fringe region technique in Cylinder2d code.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #8702

    Dear OpenLB Team,
    I got a paper in which fringe region technique is added in the Cylinder2D code. How to do it in the OpenLB code? Do I need to define it or I have to change any other part of the code? Please help.

    I tried using like this:
    #include “olb2D.h”
    #include “olb2D.hh”
    #include “fringe2D.h”
    #include “fringe2D.hh”
    // other includes…

    // Inside your prepareLattice function…

    // Define the fringe region
    IndicatorCuboid2D<T> fringeRegion(extend, origin);
    superGeometry.rename(2,6,1,fringeRegion);

    // Define the reference state
    AnalyticalConst2D<T,T> rhoF( 1 );
    std::vector<T> velocity( 2,T( 0 ) );
    AnalyticalConst2D<T,T> uF( velocity );

    // Create the Fringe2D functor
    Fringe2D<T,DESCRIPTOR> fringe(uF, start, end, direction, lambdaMax, rise, fall);

    // Apply the fringe region in the collision step
    sLattice.defineDynamics<FringeBGKdynamics>(fringeRegion, &fringe);

    But its giving error. Can you please help me out.

    Thank you

    #9089
    stephan
    Moderator

    Dear atanuchaudhury,

    thank you for posting.
    Please have a look at our doxygen and user guide documentations to learn more about the correct usage of functors.

    Unfortunately, we cannot offer full support on debugging your complete application.

    You might want to consider taking part in our upcoming spring school for this.
    More information is given here: https://www.openlb.net/spring-school-2025/

    BR
    Stephan

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.