157 int nBFaces,
int (*bFaces)[5],
159 std::map<int, apf::MeshEntity*> &globalToRegion);
182 int nBEdges,
int (*bEdges)[4],
184 std::map<int, apf::MeshEntity*> &globalToFace);
207 Mesh2* loadMdsFromCGNS(PCU_t h,
gmi_model* g,
const char* filename, CGNSBCMap& cgnsBCMap);
210 Mesh2* loadMdsFromCGNS(PCU_t h,
gmi_model* g,
const char* filename, CGNSBCMap& cgnsBCMap,
const std::vector<std::pair<std::string, std::string>>& meshData);
213 int gmshMajorVersion(
const char* filename);
217 Mesh2* loadMdsDmgFromGmsh(
const char* fnameDmg,
const char* filename,
pcu::PCU *PCUObj);
221 void printUgridPtnStats(
gmi_model* g,
const char* ugridfile,
const char* ptnfile,
222 const double elmWeights[],
pcu::PCU *PCUObj);
237 void disownMdsModel(
Mesh2* in);
239 void setMdsMatching(
Mesh2* in,
bool has);
242 void writeMdsPart(
Mesh2* m,
const char* meshfile);
Extended mesh interface for modification.
Interface to a mesh part.
Migration plan object: local elements to destinations.
The Parallel Contrul Unit class encapsulates parallel communication.
All APF symbols are contained in this namespace.
bool alignMdsMatches(Mesh2 *in)
align the downward adjacencies of matched entities
bool alignMdsRemotes(Mesh2 *in)
align the downward adjacencies of remote copies
MeshEntity * getMdsEntity(Mesh2 *in, int dimension, int index)
retrieve an entity by dimension and index
MeshTag * reorder(Mesh *mesh, const char *name)
Number by adjacency graph traversal.
void deriveMdsModel(Mesh2 *in)
build a null model such that apf::verify accepts the mesh.
void reorderMdsMesh(Mesh2 *mesh, MeshTag *t=0)
apply adjacency-based reordering
Mesh2 * createMdsMesh(gmi_model *model, Mesh *from, bool reorder=false, bool copy_data=true)
create an MDS mesh from an existing mesh
void deriveMdlFromManifold(Mesh2 *mesh, bool *isModelVert, int nBFaces, int(*bFaces)[5], GlobalToVert &globalToVert, std::map< int, apf::MeshEntity * > &globalToRegion)
Given the mesh vertices that are also model vertices, and the classification on boundary mesh faces,...
Mesh2 * loadMdsFromANSYS(const char *nodefile, const char *elemfile, pcu::PCU *PCUObj)
load an MDS mesh from ANSYS .node and .elem files
void derive2DMdlFromManifold(Mesh2 *mesh, bool *isModelVert, int nBEdges, int(*bEdges)[4], GlobalToVert &globalToVert, std::map< int, apf::MeshEntity * > &globalToFace)
Given the mesh vertices that are also model vertices, and the classification on boundary mesh edges,...
Mesh2 * loadMdsMesh(const char *modelfile, const char *meshfile, pcu::PCU *PCUObj)
load an MDS mesh and model from file
std::map< Gid, MeshEntity * > GlobalToVert
a map from global ids to vertex objects
Mesh2 * makeEmptyMdsMesh(gmi_model *model, int dim, bool isMatched, pcu::PCU *PCUObj)
create an empty MDS part
void changeMdsDimension(Mesh2 *in, int d)
change the dimension of an MDS mesh
int getMdsIndex(Mesh2 *in, MeshEntity *e)
returns the dimension-unique index for this entity
apf::Mesh2 Mesh
convenient mesh name
the basic structure for all GMI models