Skip to content

Mesh Generation

Cameron Smith edited this page May 7, 2018 · 5 revisions

ANSYS

Use the from_ansys utility to load ANSYS .node and .elem mesh files and create an .smb mesh and .dmg discrete model.

from_ansys <in .node> <in .elem> <out .dmg> <out .smb>

Gmsh

See https://github.com/SCOREC/gmshToPumi.

conversion to an MDS .smb mesh

Use the from_gmsh utility to convert a .msh mesh classified on a .dmg model (from gmodel - see link above) to a .smb mesh:

from_gmsh <in model .dmg> <in .msh> <out .smb>

Simmetrix

Serial Generation

See the research wiki page for serial mesh generation with SimModeler on SCOREC Workstations https://wiki.scorec.rpi.edu/researchwiki/SimModeler#Mesh_Generation_with_Sim_Modeler

Parallel Generation

Run Simmetrix parallel mesh generation on number_of_processes processes using the mesh control attributes defined in the mesh_case_name on the geometric model model.

module load pumi
mpirun -np <number_of_processes> generate <model (.smd)> <mesh_case_name>

This process generates an .smb mesh with the name <mesh_case_name>.

Conversion to an MDS .smb mesh

Use the convert utility to convert a .sms mesh classified on a GeomSim, Parasolid or ACIS model (.smd,.x_t, .sat) to a .smb mesh:

convert [options] <model file> <simmetrix mesh> <scorec mesh>
options:
  --no-pyramid-fix                Disable quad-connected pyramid tetrahedronization
  --attach-order                  Attach the Simmetrix element order as a Numbering
  --enable-log                    Enable Simmetrix logging
  --native-model=/path/to/model   Load the native Parasolid or ACIS model that the GeomSim model uses

Be aware that there is often an existing convert in your PATH so be certain you are calling the correct binary.