omega_h
Reliable mesh adaptation
Classes | Functions
Omega_h::meshsim Namespace Reference

Classes

struct  SimMeshInfo
 
struct  SimMeshEntInfo
 

Functions

bool isMixed (filesystem::path const &mesh, filesystem::path const &model)
 
Mesh read (pMesh *m, filesystem::path const &numbering_fname, CommPtr comm, pMeshDataId *transformedCoordId=NULL)
 
Mesh read (filesystem::path const &mesh, filesystem::path const &model, CommPtr comm)
 
Mesh read (filesystem::path const &mesh, filesystem::path const &model, filesystem::path const &numbering, CommPtr comm)
 
MixedMesh readMixed (filesystem::path const &mesh, filesystem::path const &model, CommPtr comm)
 
void matchRead (filesystem::path const &mesh_fname, filesystem::path const &model, CommPtr comm, Mesh *mesh, I8 is_in)
 
void read_matchInternal (pMesh sm, Mesh *mesh, pGModel g, CommPtr comm)
 
SimMeshInfo getSimMeshInfo (pMesh m)
 
void readMixed_internal (pMesh m, MixedMesh *mesh, SimMeshInfo info)
 
void read_internal (pMesh m, Mesh *mesh, pMeshNex numbering, SimMeshInfo info, pMeshDataId *transformedCoordId=NULL)
 
MixedMesh readMixedImpl (filesystem::path const &mesh_fname, filesystem::path const &mdl_fname, CommPtr comm)
 
Mesh readImpl (filesystem::path const &mesh_fname, filesystem::path const &mdl_fname, filesystem::path const &numbering_fname, CommPtr comm)
 

Detailed Description

Functions supporting Simmetrix SimModSuite file I/O

Function Documentation

◆ isMixed()

bool Omega_h::meshsim::isMixed ( filesystem::path const &  mesh,
filesystem::path const &  model 
)

Return if the mesh is mixed or mono topology

Parameters
[in]meshpath to Simmetrix .sms mesh file
[in]modelpath to Simmetrix GeomSim .smd model file

◆ read() [1/3]

Mesh Omega_h::meshsim::read ( filesystem::path const &  mesh,
filesystem::path const &  model,
CommPtr  comm 
)

Convert a serial Simmetrix sms mesh classified on the specified model to an Omega_h mesh instance.

Parameters
[in]meshpath to Simmetrix .sms mesh file
[in]modelpath to Simmetrix GeomSim .smd model file
[in]commpath to Omega_h communicator instance

◆ read() [2/3]

Mesh Omega_h::meshsim::read ( filesystem::path const &  mesh,
filesystem::path const &  model,
filesystem::path const &  numbering,
CommPtr  comm 
)

Convert a mono topology (i.e., all tets, all triangles, all hex, etc.) serial Simmetrix sms mesh classified on the specified model to an Omega_h mesh instance and attach a Simmetrix MeshNex vertex numbering.

Parameters
[in]meshpath to Simmetrix .sms mesh file
[in]modelpath to Simmetrix GeomSim .smd model file
[in]numberingpath to Simmetrix MeshNex .nex numbering file
[in]commpath to Omega_h communicator instance

◆ read() [3/3]

Mesh Omega_h::meshsim::read ( pMesh *  m,
filesystem::path const &  numbering_fname,
CommPtr  comm,
pMeshDataId *  transformedCoordId = NULL 
)

Convert a serial Simmetrix sms mesh classified on the specified model to an Omega_h mesh instance.

Parameters
[in]pointerto Simmetrix mesh instance (pMesh)
[in]numberingpath to Simmetrix MeshNex .nex numbering file
[in]commpath to Omega_h communicator instance
[in]

◆ readMixed()

MixedMesh Omega_h::meshsim::readMixed ( filesystem::path const &  mesh,
filesystem::path const &  model,
CommPtr  comm 
)

Convert a mixed topology (i.e., tet + wedge) serial Simmetrix sms mesh classified on the specified model to an Omega_h mesh instance.

Parameters
[in]meshpath to Simmetrix .sms mesh file
[in]modelpath to Simmetrix GeomSim .smd model file
[in]commpath to Omega_h communicator instance

◆ readMixed_internal()

void Omega_h::meshsim::readMixed_internal ( pMesh  m,
MixedMesh mesh,
SimMeshInfo  info 
)

tets

hexs

wedges

pyramids