Categories: Mesh
State: ✔️
SUMOAutoMesh
generates automatically a SU2 mesh file from a SUMO (.smx) geometry file.
SUMOAutoMesh
takes as input a CPACS file but the path to the SUMO file must be given in the CPACS file under this xpath: /cpacs/toolspecific/CEASIOMpy/filesPath/sumoFilePath
. This is done automatically when it is run in workflow like this one:
graph LR;
CPACS2SUMO-->SUMOAutoMesh;
SUMOAutoMesh-->SU2Run;
To define the size of the mesh only one option can be set by the user, it is called refinement level
. By default it is set to 1.0
. The scale is logarithmic, that is to say:
refinement level = 1.0
: the mesh generated will have the default number of cells.refinement level = 2.0
: the mesh generated will have twice the number of cells.refinement level = 3.0
: the mesh generated will have four times the number of cells.- ...
SUMOAutoMesh
runs SUMO with batch mode to generates a SU2 mesh file. Within this command, SUMO first generate a surface mesh made of triangles and then a volume mesh (with Tetgen) made of tetrahedra.
SUMOAutoMesh
outputs a SU2 mesh files (.su2), the path to this file is saved in the CPACS file under this xpath: /cpacs/toolspecific/CEASIOMpy/filesPath/su2Mesh
.
SUMOAutoMesh
is a native CEASIOMpy module, hence it is available and installed by default. To run it, you just have to be sure that you are in the CEASIOMpy Conda environment.
However to run SUMOAutoMesh
module, SUMO, must be installed on your computer. Please refer to the CEASIOMpy installation page for more information.
Sometimes SUMOAutoMesh
may not succeed in generating a mesh. In this case, you can try to change the refinement level
by 0.1
or 0.2
. Also, it may be difficult to mesh very small interstitial spaces between parts.
- Open the .smx geometry will be given in the Terminal by SUMOAutoMesh when it is executed.
- Click on the button “Mesh”
- Click on “Create Mesh”
- Click on “Volume Mesh”
- Click on “Run”
- When the mesh generation is completed, click on “Close”
- Go to the Menu “Mesh” -> click on “Save volume mesh…”
- Chose “SU2 (*.su2)” as File Type”
- Copy/Paste the line (given by SUMOAutoMesh when it is executed) as File Name.
- Click on “Save”
- You can now close SUMO, your workflow will continue.