Skip to content

Problem about material numbers

OpenLB – Open Source Lattice Boltzmann Code Forums on OpenLB General Topics Problem about material numbers

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #8512
    Bobbie
    Participant

    Dear community:

    I set up my microchannel geometry model according to examples, but the strange thing is that there is still a part of geometry with a material number of 0. However, in examples, the area with a material number of 0 is not displayed in Paraview. So, how can I remove this part? The relevant settings about material numbers are as follows:

    OstreamManager clout( std::cout,”prepareGeometry” );
    clout << “Prepare Geometry …” << std::endl;

    // 将内部区域的材料数由0改为2,并将(1,1)区域的材料数由2改为1
    superGeometry.rename(0,2,channel+branch);
    superGeometry.rename(2,1,{1,1} );

    // 定义流域入口并将入口1的材料数由2改为3
    Vector<T,2> extend_in1( 0, lengthy );
    Vector<T,2> origin_in1( 0, 0 );
    IndicatorCuboid2D<T> inflow1( extend_in1, origin_in1 );
    superGeometry.rename( 2,3,1,inflow1 );

    // 定义流域入口并将入口2的材料数由2改为4
    Vector<T,2> extend_in2( branchx, 0 );
    Vector<T,2> origin_in2( extrude, lengthy+branchy );
    IndicatorCuboid2D<T> inflow2( extend_in2, origin_in2 );
    superGeometry.rename( 2,4,1,inflow2 );

    // 定义流域出口并将出口的材料数由2改为5
    Vector<T,2> extend_out( 0, lengthy );
    Vector<T,2> origin_out( lengthx,0 );
    IndicatorCuboid2D<T> outflow( extend_out, origin_out );
    superGeometry.rename( 2,5,1,outflow );

    // 几何模型自清洁及错误检查
    superGeometry.clean();
    superGeometry.innerClean();
    superGeometry.checkForErrors();
    superGeometry.getStatistics().print();
    clout << “Prepare Geometry … OK” << std::endl;

    Thank you for your help.
    Best wishes!

    #8514
    Adrian
    Keymaster

    These are just cells in the overlap layer surrounding each block lattice in all direction, i.e. also the very outer boundary. You can safely ignore them.

    #8535
    Bobbie
    Participant

    OK, thank you for your help. Best wishes!

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