Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef APFMDS_H
00012 #define APFMDS_H
00013
00033 struct gmi_model;
00034
00035 namespace apf {
00036
00037 class Mesh;
00038 class Mesh2;
00039 class MeshTag;
00040 class MeshEntity;
00041 class Migration;
00042
00048 Mesh2* makeEmptyMdsMesh(gmi_model* model, int dim, bool isMatched);
00049
00050
00064 Mesh2* loadMdsMesh(gmi_model* model, const char* meshfile);
00065
00068 Mesh2* loadMdsMesh(const char* modelfile, const char* meshfile);
00069
00073 Mesh2* createMdsMesh(gmi_model* model, Mesh* from);
00074
00088 void reorderMdsMesh(Mesh2* mesh, MeshTag* t = 0);
00089
00090 Mesh2* repeatMdsMesh(Mesh2* m, gmi_model* g, Migration* plan, int factor);
00091 Mesh2* expandMdsMesh(Mesh2* m, gmi_model* g, int inputPartCount);
00092
00094 bool alignMdsMatches(Mesh2* in);
00096 bool alignMdsRemotes(Mesh2* in);
00097
00103 void deriveMdsModel(Mesh2* in);
00104
00111 void changeMdsDimension(Mesh2* in, int d);
00112
00116 int getMdsIndex(Mesh2* in, MeshEntity* e);
00117
00124 MeshEntity* getMdsEntity(Mesh2* in, int dimension, int index);
00125
00126 Mesh2* loadMdsFromGmsh(gmi_model* g, const char* filename);
00127
00128 Mesh2* loadMdsFromUgrid(gmi_model* g, const char* filename);
00129
00130 void printUgridPtnStats(gmi_model* g, const char* ugridfile, const char* ptnfile,
00131 const double elmWeights[]);
00132
00144 Mesh2* loadMdsFromANSYS(const char* nodefile, const char* elemfile);
00145
00146 void disownMdsModel(Mesh2* in);
00147
00148 void setMdsMatching(Mesh2* in, bool has);
00149
00150 Mesh2* loadMdsPart(gmi_model* model, const char* meshfile);
00151 void writeMdsPart(Mesh2* m, const char* meshfile);
00152
00153 }
00154
00155 #endif