Skip to content

Editing Cylinder3D code to change dimension of the model

OpenLB – Open Source Lattice Boltzmann Code Forums on OpenLB General Topics Editing Cylinder3D code to change dimension of the model

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

    Dear OpenLB team,

    I cannot find the radius and dimensions of the domain in the “Cylinder3D” code as they are well defined in the Cylinder2D code. Can you please tell me how to change the dimenssions? Do I have to edit the code or I have to change the .stl file?

    Please tell me any solution as I tried like this in the “Cylinder3D” code:
    void PrepareGeometry //
    // existing code
    //Added
    // Increase the Y-axis length by 50%
    extend[1] = 1.5 * extend[1];
    // Removes all not needed boundary voxels outside the surface
    superGeometry.clean();
    superGeometry.checkForErrors();

    superGeometry.print();

    clout << “Prepare Geometry … OK” << std::endl;
    }

    It didn’t worked out.

    Thank you

    #8941
    FBukreev
    Keymaster

    Pleese look on our answer in you previous question.

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