Skip to content

Editing Cylinder3D code to change dimension of the model

Due to recent bot attacks we have changed the sign-up process. If you want to participate in our forum, first register on this website and then send a message via our contact form.

Forums 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.