Skip to content

material for inner area of the cylinder

OpenLB – Open Source Lattice Boltzmann Code Forums on OpenLB General Topics material for inner area of the cylinder

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #9412
    qiong
    Participant

    Dear community,

    In the example cylinder2D, set material 5 for circle. But it seems that the material number for the inner area of the circle is 0 and the boundary of the circle is 5. Can anyone tell how to make the mateial number of the inner area 5 also?

    Vector<T,2> extend( lengthX,lengthY );
    Vector<T,2> origin;
    superGeometry.rename( 0,2 );
    superGeometry.rename( 2,1,{1,1} );
    // Set material number for inflow
    extend[0] = 2.*L;
    origin[0] = -L;
    IndicatorCuboid2D<T> inflow( extend, origin );
    superGeometry.rename( 2,3,1,inflow );
    // Set material number for outflow
    origin[0] = lengthX-L;
    IndicatorCuboid2D<T> outflow( extend, origin );
    superGeometry.rename( 2,4,1,outflow );
    // Set material number for cylinder
    superGeometry.rename( 1,5, circle );

    Thanks for your help.

    Best regards,
    Qiong

    #9413
    mathias
    Keymaster

    Its the outerClean method which removes the not needed cells.

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