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 1 post (of 1 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

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.