Public Member Functions | |
GRID () | |
GRID (const MED_EN::med_grid_type type) | |
GRID (const GRID &m) | |
GRID (driverTypes driverType, const string &fileName, const string &meshName) | |
GRID (const std::vector< std::vector< double > > &xyz_array, const std::vector< std::string > &coord_name, const std::vector< std::string > &coord_unit, const MED_EN::med_grid_type type=MED_EN::MED_CARTESIAN) | |
GRID & | operator= (const GRID &m) |
virtual | ~GRID () |
virtual void | init () |
virtual bool | deepCompare (const GMESH &other) const |
virtual void | printMySelf (std::ostream &os) const |
virtual const MESH * | convertInMESH () const |
virtual int | getMeshDimension () const |
virtual bool | getIsAGrid () const |
virtual int | getNumberOfNodes () const |
virtual std::string | getCoordinatesSystem () const |
virtual const std::string * | getCoordinatesNames () const |
virtual const std::string * | getCoordinatesUnits () const |
virtual int | getNumberOfTypes (MED_EN::medEntityMesh Entity) const |
virtual int | getNumberOfElements (MED_EN::medEntityMesh Entity, MED_EN::medGeometryElement Type) const |
virtual const MED_EN::medGeometryElement * | getTypes (MED_EN::medEntityMesh Entity) const |
virtual MED_EN::medGeometryElement | getElementType (MED_EN::medEntityMesh Entity, int Number) const |
virtual SUPPORT * | getBoundaryElements (MED_EN::medEntityMesh Entity) const throw (MEDEXCEPTION) |
virtual SUPPORT * | getSkin (const SUPPORT *Support3D) throw (MEDEXCEPTION) |
virtual SUPPORT * | buildSupportOnNodeFromElementList (const std::list< int > &listOfElt, MED_EN::medEntityMesh entity) const throw (MEDEXCEPTION) |
virtual void | fillSupportOnNodeFromElementList (const std::list< int > &listOfElt, SUPPORT *supportToFill) const throw (MEDEXCEPTION) |
virtual FIELD< double > * | getVolume (const SUPPORT *Support, bool isAbs=true) const throw (MEDEXCEPTION) |
virtual FIELD< double > * | getArea (const SUPPORT *Support) const throw (MEDEXCEPTION) |
virtual FIELD< double > * | getLength (const SUPPORT *Support) const throw (MEDEXCEPTION) |
virtual FIELD< double > * | getNormal (const SUPPORT *Support) const throw (MEDEXCEPTION) |
virtual FIELD< double > * | getBarycenter (const SUPPORT *Support) const throw (MEDEXCEPTION) |
virtual vector< vector< double > > | getBoundingBox () const |
int | getNodeNumber (const int i, const int j=0, const int k=0) const |
int | getCellNumber (const int i, const int j=0, const int k=0) const |
MED_EN::med_grid_type | getGridType () const |
int | getArrayLength (const int Axis) const throw (MEDEXCEPTION) |
const double | getArrayValue (const int Axis, const int i) const throw (MEDEXCEPTION) |
void | setGridType (MED_EN::med_grid_type gridType) |
Position to number conversion methods | |
getXXXNumber methods enable the user to convert an Axis [1,2,3] means one of directions: along i, j or k. For cell constituents (FACE or EDGE), Axis selects one of those having same
Exception for Axis out of range. For 2D grids, k is a dummy argument. | |
int | getEdgeNumber (const int Axis, const int i, const int j=0, const int k=0) const throw (MEDEXCEPTION) |
int | getFaceNumber (const int Axis, const int i, const int j=0, const int k=0) const throw (MEDEXCEPTION) |
Number to position conversion methods | |
getXXXPosition functions enable the user to convert a number into a
Exception for Number out of range. | |
void | getNodePosition (const int Number, int &i, int &j, int &k) const throw (MEDEXCEPTION) |
void | getCellPosition (const int Number, int &i, int &j, int &k) const throw (MEDEXCEPTION) |
void | getEdgePosition (const int Number, int &Axis, int &i, int &j, int &k) const throw (MEDEXCEPTION) |
void | getFacePosition (const int Number, int &Axis, int &i, int &j, int &k) const throw (MEDEXCEPTION) |
![]() | |
GMESH () | |
GMESH (GMESH &m) | |
virtual | ~GMESH () |
GMESH & | operator= (const GMESH &m) |
virtual bool | operator== (const GMESH &other) const |
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 | 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 SUPPORT * | getSupportOnAll (MED_EN::medEntityMesh Entity) const throw (MEDEXCEPTION) |
virtual SUPPORT * | buildSupportOnElementsFromElementList (const std::list< int > &listOfElt, MED_EN::medEntityMesh entity) const throw (MEDEXCEPTION) |
void | createFamilies () |
void | createGroups () |
Protected Member Functions | |
virtual bool | isEmpty () const |
Protected Attributes | |
MED_EN::med_grid_type | _gridType |
COORDINATE * | _coordinate |
int | _iArrayLength |
double * | _iArray |
int | _jArrayLength |
double * | _jArray |
int | _kArrayLength |
double * | _kArray |
bool | _is_default_gridType |
![]() | |
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 | ENSIGHT_MESH_RDONLY_DRIVER |
Additional Inherited Members | |
![]() | |
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) |
GRID::GRID | ( | ) |
GRID::GRID | ( | const MED_EN::med_grid_type | type | ) |
References _gridType, _is_default_gridType, and init().
GRID::GRID | ( | const GRID & | m | ) |
|
virtual |
References _coordinate, _iArray, _jArray, and _kArray.
|
protectedvirtual |
Return true if contains no elements.
Implements MEDMEM::GMESH.
References _coordinate, and _iArrayLength.
|
virtual |
Initialization of fields.
Reimplemented from MEDMEM::GMESH.
References _coordinate, _gridType, _iArray, _iArrayLength, _is_default_gridType, _jArray, _jArrayLength, _kArray, and _kArrayLength.
Referenced by GRID().
|
virtual |
Returns true if mesh other has same coordinates (to 1E-15 precision ) and same connectivity as the calling object. Information like name or description is not taken into account for the comparison.
Implements MEDMEM::GMESH.
References _coordinate, _gridType, _iArray, _iArrayLength, _jArray, _jArrayLength, _kArray, _kArrayLength, getIsAGrid(), MEDMEM::GMESH::getIsAGrid(), and MEDMEM::GMESH::getSpaceDimension().
|
virtual |
print my contents
Implements MEDMEM::GMESH.
|
virtual |
Create an unstructured MESH. Call removeReference() after having finished using it!!!
Implements MEDMEM::GMESH.
References _coordinate, _gridType, MEDMEM::GMESH::_groupCell, MEDMEM::GMESH::_groupEdge, MEDMEM::GMESH::_groupFace, MEDMEM::GMESH::_groupNode, _iArray, _iArrayLength, _jArray, _jArrayLength, _kArray, _kArrayLength, MEDMEM::GMESH::_spaceDimension, MEDMEM::MESHING::addGroup(), getCoordinatesNames(), getCoordinatesSystem(), getCoordinatesUnits(), MEDMEM::GMESH::getName(), getNodeNumber(), getNumberOfElements(), getNumberOfNodes(), getNumberOfTypes(), MEDMEM::GMESH::getSpaceDimension(), getTypes(), MEDMEM::MESHING::setConnectivity(), MEDMEM::MESHING::setCoordinates(), MEDMEM::MESHING::setCoordinatesNames(), MEDMEM::MESHING::setCoordinatesUnits(), MEDMEM::GMESH::setName(), MEDMEM::MESHING::setNumberOfElements(), MEDMEM::MESHING::setNumberOfTypes(), and MEDMEM::MESHING::setTypes().
|
virtual |
Return mesh dimension.
Implements MEDMEM::GMESH.
References MEDMEM::GMESH::getSpaceDimension().
Referenced by getNumberOfElements().
|
virtual |
|
virtual |
Return number of nodes.
Implements MEDMEM::GMESH.
References _coordinate, _gridType, _iArrayLength, _jArrayLength, _kArrayLength, and MEDMEM::GMESH::_spaceDimension.
Referenced by convertInMESH(), and getNumberOfElements().
|
virtual |
Returns "CARTESIAN", "CYLINDRICAL" or "SPHERICAL"
Implements MEDMEM::GMESH.
References _coordinate.
Referenced by convertInMESH().
|
virtual |
Returns an array with names of coordinates.
Example :
Implements MEDMEM::GMESH.
References _coordinate.
Referenced by convertInMESH().
|
virtual |
Returns an array with units of coordinates (cm, m, mm, ...) It could be empty. We suppose we are IS (meter).
Implements MEDMEM::GMESH.
References _coordinate.
Referenced by convertInMESH().
|
virtual |
Get the number of different geometric types for a given entity type.
medEntityMesh entity : MED_CELL, MED_FACE, MED_EDGE, MED_NODE, MED_ALL_ENTITIES
Implements MEDMEM::GMESH.
Referenced by convertInMESH().
|
virtual |
Return the number of element of given geometric type of given entity. Return 0 if query is not defined.
Implements MEDMEM::GMESH.
References _iArrayLength, _jArrayLength, _kArrayLength, MEDMEM::GMESH::_spaceDimension, getMeshDimension(), and getNumberOfNodes().
Referenced by convertInMESH().
|
virtual |
return the GRID Geometric type, without computing all connectivity
Implements MEDMEM::GMESH.
References MEDMEM::GMESH::_spaceDimension.
Referenced by convertInMESH(), and getElementType().
|
virtual |
Return the geometric type of global element Number of entity Entity.
Implements MEDMEM::GMESH.
References getTypes().
|
virtual |
Returns a support which reference all elements on the boundary of mesh. For a d-dimensional mesh, a boundary element is defined as a d-1 dimension element that is referenced by only one element in the full descending connectivity.
This method can also return the list of nodes that belong to the boundary elements.
WARNING: This method can recalculate descending connectivity from partial to full form, so that partial SUPPORT on d-1 dimension elements becomes invalid.
Entity | entity on which the boundary is desired. It has to be either MED_NODE or the d-1 dimension entity type (MED_FACE in 3D, MED_EDGE in 2D). |
Implements MEDMEM::GMESH.
Implements MEDMEM::GMESH.
|
virtual |
Implements MEDMEM::GMESH.
|
virtual |
Implements MEDMEM::GMESH.
|
virtual |
Implements MEDMEM::GMESH.
Implements MEDMEM::GMESH.
Implements MEDMEM::GMESH.
Implements MEDMEM::GMESH.
Implements MEDMEM::GMESH.
|
virtual |
Implements MEDMEM::GMESH.
int MEDMEM::GRID::getNodeNumber | ( | const int | i, |
const int | j = 0 , |
||
const int | k = 0 |
||
) | const |
Referenced by convertInMESH().
int MEDMEM::GRID::getCellNumber | ( | const int | i, |
const int | j = 0 , |
||
const int | k = 0 |
||
) | const |
MED_EN::med_grid_type MEDMEM::GRID::getGridType | ( | ) | const |
void MEDMEM::GRID::setGridType | ( | MED_EN::med_grid_type | gridType | ) |
|
friend |
|
friend |
|
friend |
|
protected |
Referenced by convertInMESH(), deepCompare(), getNumberOfNodes(), GRID(), and init().
|
protected |
Referenced by convertInMESH(), deepCompare(), getCoordinatesNames(), getCoordinatesSystem(), getCoordinatesUnits(), getNumberOfNodes(), GRID(), init(), isEmpty(), and ~GRID().
|
protected |
Referenced by convertInMESH(), deepCompare(), getNumberOfElements(), getNumberOfNodes(), GRID(), init(), and isEmpty().
|
protected |
Referenced by convertInMESH(), deepCompare(), GRID(), init(), and ~GRID().
|
protected |
Referenced by convertInMESH(), deepCompare(), getNumberOfElements(), getNumberOfNodes(), GRID(), and init().
|
protected |
Referenced by convertInMESH(), deepCompare(), GRID(), init(), and ~GRID().
|
protected |
Referenced by convertInMESH(), deepCompare(), getNumberOfElements(), getNumberOfNodes(), GRID(), and init().
|
protected |
Referenced by convertInMESH(), deepCompare(), GRID(), init(), and ~GRID().