Public Member Functions | |
GMESH () | |
GMESH (GMESH &m) | |
virtual | ~GMESH () |
virtual void | init () |
GMESH & | operator= (const GMESH &m) |
virtual bool | operator== (const GMESH &other) const |
virtual bool | deepCompare (const GMESH &other) const =0 |
virtual void | printMySelf (std::ostream &os) const =0 |
int | addDriver (driverTypes driverType, const std::string &fileName="Default File Name.med", const std::string &driverName="Default Mesh Name", MED_EN::med_mode_acces access=MED_EN::RDWR) |
int | addDriver (GENDRIVER &driver) |
void | rmDriver (int index=0) |
virtual void | read (int index=0) |
virtual void | read (const GENDRIVER &genDriver) |
virtual void | read (driverTypes driverType, const std::string &filename, const std::string &meshname) |
virtual void | write (int index=0) const |
virtual void | write (const GENDRIVER &genDriver, MED_EN::med_mode_acces medMode=MED_EN::WRONLY) const |
virtual void | write (driverTypes driverType, const std::string &filename, const std::string &meshname="", MED_EN::med_mode_acces medMode=MED_EN::WRONLY) const |
void | setName (std::string name) |
std::string | getName () const |
void | setDescription (std::string description) |
std::string | getDescription () const |
int | getSpaceDimension () const |
virtual int | getMeshDimension () const =0 |
virtual bool | getIsAGrid () const =0 |
virtual std::string | getCoordinatesSystem () const =0 |
virtual const std::string * | getCoordinatesNames () const =0 |
virtual const std::string * | getCoordinatesUnits () const =0 |
virtual int | getNumberOfNodes () const =0 |
virtual int | getNumberOfTypes (MED_EN::medEntityMesh Entity) const =0 |
virtual int | getNumberOfElements (MED_EN::medEntityMesh Entity, MED_EN::medGeometryElement Type) const =0 |
virtual const MED_EN::medGeometryElement * | getTypes (MED_EN::medEntityMesh Entity) const =0 |
virtual MED_EN::medGeometryElement | getElementType (MED_EN::medEntityMesh Entity, int Number) const =0 |
virtual int | getNumberOfFamilies (MED_EN::medEntityMesh Entity) const |
virtual const std::vector < FAMILY * > | getFamilies (MED_EN::medEntityMesh Entity) const |
virtual const FAMILY * | getFamily (MED_EN::medEntityMesh Entity, int i) const |
virtual int | getNumberOfGroups (MED_EN::medEntityMesh Entity) const |
virtual const std::vector < GROUP * > | getGroups (MED_EN::medEntityMesh Entity) const |
virtual const GROUP * | getGroup (MED_EN::medEntityMesh Entity, int i) const |
virtual const GROUP * | getGroup (const std::string &name) const throw (MEDEXCEPTION) |
virtual const MESH * | convertInMESH () const =0 |
virtual SUPPORT * | getBoundaryElements (MED_EN::medEntityMesh Entity) const =0 throw (MEDEXCEPTION) |
virtual SUPPORT * | getSkin (const SUPPORT *Support3D)=0 throw (MEDEXCEPTION) |
virtual const SUPPORT * | getSupportOnAll (MED_EN::medEntityMesh Entity) const throw (MEDEXCEPTION) |
virtual SUPPORT * | buildSupportOnNodeFromElementList (const std::list< int > &listOfElt, MED_EN::medEntityMesh entity) const =0 throw (MEDEXCEPTION) |
virtual void | fillSupportOnNodeFromElementList (const std::list< int > &listOfElt, SUPPORT *supportToFill) const =0 throw (MEDEXCEPTION) |
virtual SUPPORT * | buildSupportOnElementsFromElementList (const std::list< int > &listOfElt, MED_EN::medEntityMesh entity) const throw (MEDEXCEPTION) |
virtual FIELD< double > * | getVolume (const SUPPORT *Support, bool isAbs=true) const =0 throw (MEDEXCEPTION) |
virtual FIELD< double > * | getArea (const SUPPORT *Support) const =0 throw (MEDEXCEPTION) |
virtual FIELD< double > * | getLength (const SUPPORT *Support) const =0 throw (MEDEXCEPTION) |
virtual FIELD< double > * | getNormal (const SUPPORT *Support) const =0 throw (MEDEXCEPTION) |
virtual FIELD< double > * | getBarycenter (const SUPPORT *Support) const =0 throw (MEDEXCEPTION) |
virtual vector< vector< double > > | getBoundingBox () const =0 |
void | createFamilies () |
void | createGroups () |
Static Public Member Functions | |
static SUPPORT * | mergeSupports (const std::vector< SUPPORT * > Supports) throw (MEDEXCEPTION) |
static SUPPORT * | intersectSupports (const std::vector< SUPPORT * > Supports) throw (MEDEXCEPTION) |
template<class T > | |
static FIELD< T > * | mergeFields (const std::vector< FIELD< T > * > &others, bool meshCompare=false) |
Protected Member Functions | |
virtual bool | isEmpty () const =0 |
Protected Attributes | |
std::string | _name |
std::string | _description |
int | _spaceDimension |
std::vector< FAMILY * > | _familyNode |
std::vector< FAMILY * > | _familyCell |
std::vector< FAMILY * > | _familyFace |
std::vector< FAMILY * > | _familyEdge |
std::vector< GROUP * > | _groupNode |
std::vector< GROUP * > | _groupCell |
std::vector< GROUP * > | _groupFace |
std::vector< GROUP * > | _groupEdge |
std::vector< GENDRIVER * > | _drivers |
std::map < MED_EN::medEntityMesh, SUPPORT * > | _entitySupport |
Friends | |
class | MED_MESH_RDONLY_DRIVER |
class | MED_MESH_WRONLY_DRIVER |
class | GIBI_MESH_RDONLY_DRIVER |
class | GIBI_MESH_WRONLY_DRIVER |
class | GIBI_MESH_RDWR_DRIVER |
class | PORFLOW_MESH_RDONLY_DRIVER |
class | PORFLOW_MESH_WRONLY_DRIVER |
class | PORFLOW_MESH_RDWR_DRIVER |
class | VTK_MESH_DRIVER |
class | ENSIGHT_MESH_RDONLY_DRIVER |
std::ostream & | operator<< (std::ostream &os, const GMESH &me) |
Base class of structured and unstructured meshes.
GMESH::GMESH | ( | ) |
Create an empty GMESH.
GMESH::GMESH | ( | GMESH & | m | ) |
Copy constructor
References _description, _familyCell, _familyEdge, _familyFace, _familyNode, _groupCell, _groupEdge, _groupFace, _groupNode, _name, and _spaceDimension.
|
virtual |
Destructor.
|
protectedpure virtual |
Implemented in MEDMEM::MESH, and MEDMEM::GRID.
|
virtual |
Initialization of fields.
Reimplemented in MEDMEM::MESH, and MEDMEM::GRID.
|
virtual |
Comparison.
|
pure virtual |
Implemented in MEDMEM::MESH, and MEDMEM::GRID.
|
pure virtual |
Implemented in MEDMEM::GRID.
|
pure virtual |
Implemented in MEDMEM::MESH, and MEDMEM::GRID.
Referenced by MEDMEM::FIELD_::_getFieldSize().
|
pure virtual |
Implemented in MEDMEM::MESH, and MEDMEM::GRID.
Referenced by MEDMEM::GRID::deepCompare(), and MEDMEM::MESH::deepCompare().
|
pure virtual |
Implemented in MEDMEM::MESH, and MEDMEM::GRID.
|
pure virtual |
Implemented in MEDMEM::MESH, and MEDMEM::GRID.
Referenced by MEDMEM::MESH::getBarycenter().
|
pure virtual |
Implemented in MEDMEM::MESH, and MEDMEM::GRID.
Referenced by MEDMEM::MESH::getBarycenter(), and MEDMEM::MESH::getVolume().
|
pure virtual |
Implemented in MEDMEM::MESH, and MEDMEM::GRID.
Referenced by MEDMEM::SUPPORT::update().
|
pure virtual |
Implemented in MEDMEM::MESH, and MEDMEM::GRID.
Referenced by MEDMEM::SUPPORT::update().
|
pure virtual |
Implemented in MEDMEM::MESH, and MEDMEM::GRID.
Referenced by MEDMEM::SUPPORT::update().
|
pure virtual |
Implemented in MEDMEM::MESH, and MEDMEM::GRID.
Referenced by MEDMEM::SUPPORT::update().
|
pure virtual |
Implemented in MEDMEM::MESH, and MEDMEM::GRID.
|
virtual |
|
pure virtual |
Return unstructured mesh. Call removeReference() after having finished using it!!!
Implemented in MEDMEM::MESH, and MEDMEM::GRID.
Referenced by MEDMEM::SUPPORT::getBoundaryElements(), and MEDMEM::SUPPORT::makeMesh().
|
pure virtual |
Implemented in MEDMEM::MESH, and MEDMEM::GRID.
|
pure virtual |
Implemented in MEDMEM::MESH, and MEDMEM::GRID.
|
pure virtual |
Implemented in MEDMEM::GRID.
|
pure virtual |
Implemented in MEDMEM::GRID.
Referenced by MEDMEM::SUPPORT::buildSupportOnNode().
|
virtual |
Method created to factorize code. This method creates a new support on entity 'entity' (to deallocate) containing all the entities contained in elements 'listOfElt' of entity 'entity'.
References MEDMEM::SUPPORT::fillFromElementList(), MEDMEM::SUPPORT::setEntity(), MEDMEM::SUPPORT::setMesh(), and MEDMEM::SUPPORT::setName().
Referenced by MEDMEM::MESH::getBoundaryElements().
|
pure virtual |
Implemented in MEDMEM::MESH, and MEDMEM::GRID.
Referenced by MEDMEM::FIELD_::_getFieldSize().
|
pure virtual |
Implemented in MEDMEM::MESH, and MEDMEM::GRID.
Referenced by MEDMEM::FIELD_::_getFieldSize().
|
pure virtual |
Implemented in MEDMEM::MESH, and MEDMEM::GRID.
Referenced by MEDMEM::FIELD_::_getFieldSize().
|
pure virtual |
Implemented in MEDMEM::MESH, and MEDMEM::GRID.
|
pure virtual |
Implemented in MEDMEM::MESH, and MEDMEM::GRID.
Referenced by MEDMEM::FIELD< T, INTERLACING_TAG >::fillFromAnalytic().
|
pure virtual |
Implemented in MEDMEM::MESH, and MEDMEM::GRID.
void GMESH::createFamilies | ( | ) |
Create families from groups. This function is automaticaly called whenever we ask for families that are not up-to-date. (The creation of families is delayed to the need of user.) If a new created family hapen to already exist, we keep the old one. (There is no way to know which family has change.)
void GMESH::createGroups | ( | ) |
Create groups from families.
It is used to create groups that have only one family for meshes that come from codes that use families instead of groups to define a subregion.
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
protected |
Referenced by GMESH(), MEDMEM::MESH::isEmpty(), and MEDMEM::MESH::operator=().
|
protected |
Referenced by GMESH(), and MEDMEM::MESH::operator=().
|
protected |
Referenced by MEDMEM::GRID::convertInMESH(), MEDMEM::MESH::getBoundaryElements(), MEDMEM::MESH::getBoundingBox(), MEDMEM::MESH::getElementContainingPoint(), MEDMEM::GRID::getNumberOfElements(), MEDMEM::GRID::getNumberOfNodes(), MEDMEM::GRID::getTypes(), GMESH(), MEDMEM::GRID::GRID(), MEDMEM::MESH::isEmpty(), MEDMEM::MESH::operator=(), and MEDMEM::MESHING::setCoordinates().
|
protected |
Referenced by GMESH(), MEDMEM::MESH::isEmpty(), and MEDMEM::MESH::operator=().
|
protected |
Referenced by GMESH(), MEDMEM::MESH::isEmpty(), and MEDMEM::MESH::operator=().
|
protected |
Referenced by GMESH(), MEDMEM::MESH::isEmpty(), and MEDMEM::MESH::operator=().
|
protected |
Referenced by GMESH(), MEDMEM::MESH::isEmpty(), and MEDMEM::MESH::operator=().
|
protected |
Referenced by MEDMEM::GRID::convertInMESH(), GMESH(), MEDMEM::MESH::isEmpty(), and MEDMEM::MESH::operator=().
|
protected |
Referenced by MEDMEM::GRID::convertInMESH(), GMESH(), MEDMEM::MESH::isEmpty(), and MEDMEM::MESH::operator=().
|
protected |
Referenced by MEDMEM::GRID::convertInMESH(), GMESH(), MEDMEM::MESH::isEmpty(), and MEDMEM::MESH::operator=().
|
protected |
Referenced by MEDMEM::GRID::convertInMESH(), GMESH(), MEDMEM::MESH::isEmpty(), and MEDMEM::MESH::operator=().
|
protected |
Referenced by MEDMEM::MESH::operator=().
|
protected |