Version: 6.3.1

ParaMEDMEM::MEDFileUMesh Class Reference

Inheritance diagram for ParaMEDMEM::MEDFileUMesh:
Collaboration diagram for ParaMEDMEM::MEDFileUMesh:

List of all members.

Public Member Functions

bool isEqual (const MEDFileMesh *other, double eps, std::string &what) const
void clearNonDiscrAttributes () const
 ~MEDFileUMesh ()
void write (const char *fileName, int mode) const throw (INTERP_KERNEL::Exception)
int getMeshDimension () const throw (INTERP_KERNEL::Exception)
int getSizeAtLevel (int meshDimRelToMaxExt) const throw (INTERP_KERNEL::Exception)
const DataArrayIntgetFamilyFieldAtLevel (int meshDimRelToMaxExt) const throw (INTERP_KERNEL::Exception)
const DataArrayIntgetNumberFieldAtLevel (int meshDimRelToMaxExt) const throw (INTERP_KERNEL::Exception)
const DataArrayIntgetRevNumberFieldAtLevel (int meshDimRelToMaxExt) const throw (INTERP_KERNEL::Exception)
std::vector< int > getNonEmptyLevels () const
std::vector< int > getNonEmptyLevelsExt () const
std::vector< int > getGrpNonEmptyLevels (const char *grp) const throw (INTERP_KERNEL::Exception)
std::vector< int > getGrpNonEmptyLevelsExt (const char *grp) const throw (INTERP_KERNEL::Exception)
std::vector< int > getFamNonEmptyLevels (const char *fam) const throw (INTERP_KERNEL::Exception)
std::vector< int > getFamNonEmptyLevelsExt (const char *fam) const throw (INTERP_KERNEL::Exception)
std::vector< int > getGrpsNonEmptyLevels (const std::vector< std::string > &grps) const throw (INTERP_KERNEL::Exception)
std::vector< int > getGrpsNonEmptyLevelsExt (const std::vector< std::string > &grps) const throw (INTERP_KERNEL::Exception)
std::vector< int > getFamsNonEmptyLevels (const std::vector< std::string > &fams) const throw (INTERP_KERNEL::Exception)
std::vector< int > getFamsNonEmptyLevelsExt (const std::vector< std::string > &fams) const throw (INTERP_KERNEL::Exception)
DataArrayDoublegetCoords () const
MEDCouplingUMeshgetGroup (int meshDimRelToMaxExt, const char *grp, bool renum=false) const throw (INTERP_KERNEL::Exception)
MEDCouplingUMeshgetGroups (int meshDimRelToMaxExt, const std::vector< std::string > &grps, bool renum=false) const throw (INTERP_KERNEL::Exception)
MEDCouplingUMeshgetFamily (int meshDimRelToMaxExt, const char *fam, bool renum=false) const throw (INTERP_KERNEL::Exception)
MEDCouplingUMeshgetFamilies (int meshDimRelToMaxExt, const std::vector< std::string > &fams, bool renum=false) const throw (INTERP_KERNEL::Exception)
DataArrayIntgetFamiliesArr (int meshDimRelToMaxExt, const std::vector< std::string > &fams, bool renum=false) const throw (INTERP_KERNEL::Exception)
MEDCouplingUMeshgetMeshAtLevel (int meshDimRelToMaxExt, bool renum=false) const throw (INTERP_KERNEL::Exception)
MEDCouplingMeshgetGenMeshAtLevel (int meshDimRelToMax, bool renum=false) const throw (INTERP_KERNEL::Exception)
MEDCouplingUMeshgetLevel0Mesh (bool renum=false) const throw (INTERP_KERNEL::Exception)
MEDCouplingUMeshgetLevelM1Mesh (bool renum=false) const throw (INTERP_KERNEL::Exception)
MEDCouplingUMeshgetLevelM2Mesh (bool renum=false) const throw (INTERP_KERNEL::Exception)
MEDCouplingUMeshgetLevelM3Mesh (bool renum=false) const throw (INTERP_KERNEL::Exception)
void setFamilyNameAttachedOnId (int id, const std::string &newFamName) throw (INTERP_KERNEL::Exception)
void setCoords (DataArrayDouble *coords) throw (INTERP_KERNEL::Exception)
void eraseGroupsAtLevel (int meshDimRelToMaxExt) throw (INTERP_KERNEL::Exception)
void setFamilyField (DataArrayInt *arr, const std::vector< std::vector< int > > &userfids, const std::vector< std::string > &grpNames, bool renum=false) throw (INTERP_KERNEL::Exception)
void setFamilyFieldArr (int meshDimRelToMaxExt, DataArrayInt *famArr) throw (INTERP_KERNEL::Exception)
void setRenumFieldArr (int meshDimRelToMaxExt, DataArrayInt *renumArr) throw (INTERP_KERNEL::Exception)
void addNodeGroup (const std::string &name, const std::vector< int > &ids) throw (INTERP_KERNEL::Exception)
void removeMeshAtLevel (int meshDimRelToMax) throw (INTERP_KERNEL::Exception)
void setMeshAtLevel (int meshDimRelToMax, MEDCouplingUMesh *m, bool newOrOld=false) throw (INTERP_KERNEL::Exception)
void setMeshAtLevelGen (int meshDimRelToMax, MEDCouplingUMesh *m, bool newOrOld) throw (INTERP_KERNEL::Exception)
void setGroupsFromScratch (int meshDimRelToMax, const std::vector< const MEDCouplingUMesh * > &ms) throw (INTERP_KERNEL::Exception)
void setGroupsOnSetMesh (int meshDimRelToMax, const std::vector< const MEDCouplingUMesh * > &ms, bool renum) throw (INTERP_KERNEL::Exception)
void optimizeFamilies () throw (INTERP_KERNEL::Exception)

Static Public Member Functions

static MEDFileUMeshNew (const char *fileName, const char *mName, int dt=-1, int it=-1) throw (INTERP_KERNEL::Exception)
static MEDFileUMeshNew (const char *fileName) throw (INTERP_KERNEL::Exception)
static MEDFileUMeshNew ()

Friends

class MEDFileMesh

Constructor & Destructor Documentation

MEDFileUMesh::~MEDFileUMesh ( )

Member Function Documentation

MEDFileUMesh * MEDFileUMesh::New ( const char *  fileName,
const char *  mName,
int  dt = -1,
int  it = -1 
) throw (INTERP_KERNEL::Exception) [static]

Reimplemented from ParaMEDMEM::MEDFileMesh.

MEDFileUMesh * MEDFileUMesh::New ( const char *  fileName) throw (INTERP_KERNEL::Exception) [static]

Reimplemented from ParaMEDMEM::MEDFileMesh.

References MEDLoader::GetMeshNames().

MEDFileUMesh * MEDFileUMesh::New ( ) [static]
bool MEDFileUMesh::isEqual ( const MEDFileMesh other,
double  eps,
std::string &  what 
) const [virtual]
void MEDFileUMesh::clearNonDiscrAttributes ( ) const [virtual]

Reimplemented from ParaMEDMEM::MEDFileMesh.

Referenced by isEqual().

void MEDFileUMesh::write ( const char *  fileName,
int  mode 
) const throw (INTERP_KERNEL::Exception) [virtual]
int MEDFileUMesh::getMeshDimension ( ) const throw (INTERP_KERNEL::Exception) [virtual]
int MEDFileUMesh::getSizeAtLevel ( int  meshDimRelToMaxExt) const throw (INTERP_KERNEL::Exception) [virtual]
const DataArrayInt * MEDFileUMesh::getFamilyFieldAtLevel ( int  meshDimRelToMaxExt) const throw (INTERP_KERNEL::Exception) [virtual]

Implements ParaMEDMEM::MEDFileMesh.

Referenced by optimizeFamilies().

const DataArrayInt * MEDFileUMesh::getNumberFieldAtLevel ( int  meshDimRelToMaxExt) const throw (INTERP_KERNEL::Exception) [virtual]
const DataArrayInt * MEDFileUMesh::getRevNumberFieldAtLevel ( int  meshDimRelToMaxExt) const throw (INTERP_KERNEL::Exception) [virtual]
std::vector< int > MEDFileUMesh::getNonEmptyLevels ( ) const

Referenced by getNonEmptyLevelsExt().

std::vector< int > MEDFileUMesh::getNonEmptyLevelsExt ( ) const

References getNonEmptyLevels().

Referenced by optimizeFamilies().

std::vector< int > MEDFileUMesh::getGrpNonEmptyLevels ( const char *  grp) const throw (INTERP_KERNEL::Exception)

This methods returns all relative mesh levels where group 'grp' is defined excluded nodes. To include nodes call MEDFileUMesh::getGrpNonEmptyLevelsExt method.

std::vector< int > MEDFileUMesh::getGrpNonEmptyLevelsExt ( const char *  grp) const throw (INTERP_KERNEL::Exception)

This method is a generalization of MEDFileUMesh::getGrpNonEmptyLevelsExt. It looks at the node level to state if the group 'grp' has a part lying on node.

std::vector< int > MEDFileUMesh::getFamNonEmptyLevels ( const char *  fam) const throw (INTERP_KERNEL::Exception)

This methods returns all relative mesh levels where family 'fam' is defined excluded nodes. To include nodes call MEDFileUMesh::getFamNonEmptyLevelsExt method.

std::vector< int > MEDFileUMesh::getFamNonEmptyLevelsExt ( const char *  fam) const throw (INTERP_KERNEL::Exception)

This method is a generalization of MEDFileUMesh::getFamNonEmptyLevels. It looks at the node level to state if the family 'fam' has a part lying on node.

std::vector< int > MEDFileUMesh::getGrpsNonEmptyLevels ( const std::vector< std::string > &  grps) const throw (INTERP_KERNEL::Exception)

This methods returns all relative mesh levels where groups 'grps' are defined excluded nodes. To include nodes call MEDFileUMesh::getGrpsNonEmptyLevelsExt method.

std::vector< int > MEDFileUMesh::getGrpsNonEmptyLevelsExt ( const std::vector< std::string > &  grps) const throw (INTERP_KERNEL::Exception)

This method is a generalization of MEDFileUMesh::getGrpsNonEmptyLevels. It looks at the node level to state if the families 'fams' has a part lying on node.

std::vector< int > MEDFileUMesh::getFamsNonEmptyLevels ( const std::vector< std::string > &  fams) const throw (INTERP_KERNEL::Exception)

This methods returns all relative mesh levels where families 'fams' are defined excluded nodes. To include nodes call MEDFileUMesh::getFamsNonEmptyLevelsExt method.

std::vector< int > MEDFileUMesh::getFamsNonEmptyLevelsExt ( const std::vector< std::string > &  fams) const throw (INTERP_KERNEL::Exception)

This method is a generalization of MEDFileUMesh::getFamsNonEmptyLevels. It looks at the node level to state if the families 'fams' has a part lying on node.

References ParaMEDMEM::DataArrayInt::presenceOfValue().

DataArrayDouble * MEDFileUMesh::getCoords ( ) const
MEDCouplingUMesh * MEDFileUMesh::getGroup ( int  meshDimRelToMaxExt,
const char *  grp,
bool  renum = false 
) const throw (INTERP_KERNEL::Exception)
MEDCouplingUMesh * MEDFileUMesh::getGroups ( int  meshDimRelToMaxExt,
const std::vector< std::string > &  grps,
bool  renum = false 
) const throw (INTERP_KERNEL::Exception)
MEDCouplingUMesh * MEDFileUMesh::getFamily ( int  meshDimRelToMaxExt,
const char *  fam,
bool  renum = false 
) const throw (INTERP_KERNEL::Exception)
MEDCouplingUMesh * MEDFileUMesh::getFamilies ( int  meshDimRelToMaxExt,
const std::vector< std::string > &  fams,
bool  renum = false 
) const throw (INTERP_KERNEL::Exception)
DataArrayInt * MEDFileUMesh::getFamiliesArr ( int  meshDimRelToMaxExt,
const std::vector< std::string > &  fams,
bool  renum = false 
) const throw (INTERP_KERNEL::Exception) [virtual]
MEDCouplingUMesh * MEDFileUMesh::getMeshAtLevel ( int  meshDimRelToMaxExt,
bool  renum = false 
) const throw (INTERP_KERNEL::Exception)
MEDCouplingMesh * MEDFileUMesh::getGenMeshAtLevel ( int  meshDimRelToMax,
bool  renum = false 
) const throw (INTERP_KERNEL::Exception) [virtual]
MEDCouplingUMesh * MEDFileUMesh::getLevel0Mesh ( bool  renum = false) const throw (INTERP_KERNEL::Exception)
MEDCouplingUMesh * MEDFileUMesh::getLevelM1Mesh ( bool  renum = false) const throw (INTERP_KERNEL::Exception)
MEDCouplingUMesh * MEDFileUMesh::getLevelM2Mesh ( bool  renum = false) const throw (INTERP_KERNEL::Exception)
MEDCouplingUMesh * MEDFileUMesh::getLevelM3Mesh ( bool  renum = false) const throw (INTERP_KERNEL::Exception)
void MEDFileUMesh::setFamilyNameAttachedOnId ( int  id,
const std::string &  newFamName 
) throw (INTERP_KERNEL::Exception)
void MEDFileUMesh::setCoords ( DataArrayDouble coords) throw (INTERP_KERNEL::Exception)
void MEDFileUMesh::eraseGroupsAtLevel ( int  meshDimRelToMaxExt) throw (INTERP_KERNEL::Exception)
void MEDFileUMesh::setFamilyField ( DataArrayInt arr,
const std::vector< std::vector< int > > &  userfids,
const std::vector< std::string > &  grpNames,
bool  renum = false 
) throw (INTERP_KERNEL::Exception)
void MEDFileUMesh::setFamilyFieldArr ( int  meshDimRelToMaxExt,
DataArrayInt famArr 
) throw (INTERP_KERNEL::Exception) [virtual]
void MEDFileUMesh::setRenumFieldArr ( int  meshDimRelToMaxExt,
DataArrayInt renumArr 
) throw (INTERP_KERNEL::Exception) [virtual]
void MEDFileUMesh::addNodeGroup ( const std::string &  name,
const std::vector< int > &  ids 
) throw (INTERP_KERNEL::Exception)
void MEDFileUMesh::removeMeshAtLevel ( int  meshDimRelToMax) throw (INTERP_KERNEL::Exception)
void MEDFileUMesh::setMeshAtLevel ( int  meshDimRelToMax,
MEDCouplingUMesh m,
bool  newOrOld = false 
) throw (INTERP_KERNEL::Exception)
void MEDFileUMesh::setMeshAtLevelGen ( int  meshDimRelToMax,
MEDCouplingUMesh m,
bool  newOrOld 
) throw (INTERP_KERNEL::Exception)
void MEDFileUMesh::setGroupsFromScratch ( int  meshDimRelToMax,
const std::vector< const MEDCouplingUMesh * > &  ms 
) throw (INTERP_KERNEL::Exception)
void MEDFileUMesh::setGroupsOnSetMesh ( int  meshDimRelToMax,
const std::vector< const MEDCouplingUMesh * > &  ms,
bool  renum 
) throw (INTERP_KERNEL::Exception)

Friends And Related Function Documentation

friend class MEDFileMesh [friend]
Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS