Version: 6.5.0
Public Member Functions | Static Public Member Functions | Friends | List of all members
ParaMEDMEM::MEDFileUMesh Class Reference
Inheritance diagram for ParaMEDMEM::MEDFileUMesh:
Inheritance graph
[legend]
Collaboration diagram for ParaMEDMEM::MEDFileUMesh:
Collaboration graph
[legend]

Public Member Functions

bool isEqual (const MEDFileMesh *other, double eps, std::string &what) const
void clearNonDiscrAttributes () const
 ~MEDFileUMesh ()
int getMeshDimension () const throw (INTERP_KERNEL::Exception)
int getSpaceDimension () const throw (INTERP_KERNEL::Exception)
std::string simpleRepr () const
std::string advancedRepr () const
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)
std::vector< std::string > getGroupsOnSpecifiedLev (int meshDimRelToMaxExt) 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 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)
- Public Member Functions inherited from ParaMEDMEM::MEDFileMesh
void setName (const char *name)
const char * getName () const
void setUnivName (const char *name)
const char * getUnivName () const
void setDescription (const char *name)
const char * getDescription () const
void setOrder (int order)
int getOrder () const
void setIteration (int it)
int getIteration () const
void setTimeValue (double time)
void setTime (double time, int dt, int it)
double getTime (int &dt, int &it)
double getTimeValue () const
void setTimeUnit (const char *unit)
const char * getTimeUnit () const
virtual void write (const char *fileName, int mode) const throw (INTERP_KERNEL::Exception)
virtual void write (med_idt fid) const throw (INTERP_KERNEL::Exception)
bool areFamsEqual (const MEDFileMesh *other, std::string &what) const
bool areGrpsEqual (const MEDFileMesh *other, std::string &what) const
bool existsGroup (const char *groupName) const
bool existsFamily (int famId) const
bool existsFamily (const char *familyName) const
void setFamilyId (const char *familyName, int id)
virtual void addFamily (const char *familyName, int id) throw (INTERP_KERNEL::Exception)
virtual void createGroupOnAll (int meshDimRelToMaxExt, const char *groupName) throw (INTERP_KERNEL::Exception)
virtual bool keepFamIdsOnlyOnLevs (const std::vector< int > &famIds, const std::vector< int > &levs) throw (INTERP_KERNEL::Exception)
void addFamilyOnGrp (const char *grpName, const char *famName) throw (INTERP_KERNEL::Exception)
std::string findOrCreateAndGiveFamilyWithId (int id, bool &created) throw (INTERP_KERNEL::Exception)
void setFamilyInfo (const std::map< std::string, int > &info)
void setGroupInfo (const std::map< std::string, std::vector< std::string > > &info)
void copyFamGrpMapsFrom (const MEDFileMesh &other)
const std::map< std::string,
int > & 
getFamilyInfo () const
const std::map< std::string,
std::vector< std::string > > & 
getGroupInfo () const
std::vector< std::string > getFamiliesOnGroup (const char *name) const throw (INTERP_KERNEL::Exception)
std::vector< std::string > getFamiliesOnGroups (const std::vector< std::string > &grps) const throw (INTERP_KERNEL::Exception)
std::vector< int > getFamiliesIdsOnGroup (const char *name) const throw (INTERP_KERNEL::Exception)
void setFamiliesOnGroup (const char *name, const std::vector< std::string > &fams) throw (INTERP_KERNEL::Exception)
void setFamiliesIdsOnGroup (const char *name, const std::vector< int > &famIds) throw (INTERP_KERNEL::Exception)
std::vector< std::string > getGroupsOnFamily (const char *name) const throw (INTERP_KERNEL::Exception)
void setGroupsOnFamily (const char *famName, const std::vector< std::string > &grps) throw (INTERP_KERNEL::Exception)
std::vector< std::string > getGroupsNames () const
std::vector< std::string > getFamiliesNames () const
void assignFamilyNameWithGroupName () throw (INTERP_KERNEL::Exception)
void removeGroup (const char *name) throw (INTERP_KERNEL::Exception)
void removeFamily (const char *name) throw (INTERP_KERNEL::Exception)
void changeGroupName (const char *oldName, const char *newName) throw (INTERP_KERNEL::Exception)
void changeFamilyName (const char *oldName, const char *newName) throw (INTERP_KERNEL::Exception)
void changeFamilyId (int oldId, int newId) throw (INTERP_KERNEL::Exception)
int getFamilyId (const char *name) const throw (INTERP_KERNEL::Exception)
int getMaxFamilyId () const throw (INTERP_KERNEL::Exception)
std::vector< int > getFamiliesIds (const std::vector< std::string > &famNames) const throw (INTERP_KERNEL::Exception)
std::string getFamilyNameGivenId (int id) const throw (INTERP_KERNEL::Exception)
virtual void setGroupsAtLevel (int meshDimRelToMaxExt, const std::vector< const DataArrayInt * > &grps, bool renum=false) throw (INTERP_KERNEL::Exception)
virtual DataArrayIntgetGroupsArr (int meshDimRelToMaxExt, const std::vector< std::string > &grps, bool renum=false) const throw (INTERP_KERNEL::Exception)
virtual DataArrayIntgetGroupArr (int meshDimRelToMaxExt, const char *grp, bool renum=false) const throw (INTERP_KERNEL::Exception)
virtual DataArrayIntgetFamilyArr (int meshDimRelToMaxExt, const char *fam, bool renum=false) const throw (INTERP_KERNEL::Exception)
virtual DataArrayIntgetNodeGroupArr (const char *grp, bool renum=false) const throw (INTERP_KERNEL::Exception)
virtual DataArrayIntgetNodeGroupsArr (const std::vector< std::string > &grps, bool renum=false) const throw (INTERP_KERNEL::Exception)
virtual DataArrayIntgetNodeFamilyArr (const char *fam, bool renum=false) const throw (INTERP_KERNEL::Exception)
virtual DataArrayIntgetNodeFamiliesArr (const std::vector< std::string > &fams, bool renum=false) const throw (INTERP_KERNEL::Exception)
- Public Member Functions inherited from ParaMEDMEM::RefCountObject
bool decrRef () const
void incrRef () const

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

Additional Inherited Members

- Static Public Attributes inherited from ParaMEDMEM::MEDFileMesh
static const char DFT_FAM_NAME [] = "FAMILLE_ZERO"
- Protected Member Functions inherited from ParaMEDMEM::MEDFileMesh
 MEDFileMesh ()
void addFamilyOnAllGroupsHaving (const char *famName, const char *otherFamName) throw (INTERP_KERNEL::Exception)
virtual void writeLL (med_idt fid) const =0 throw (INTERP_KERNEL::Exception)
void dealWithTinyInfo (const MEDCouplingMesh *m) throw (INTERP_KERNEL::Exception)
virtual void synchronizeTinyInfoOnLeaves () const =0
void getFamilyRepr (std::ostream &oss) const
virtual void appendFamilyEntries (const std::set< int > &famIds, const std::vector< std::vector< int > > &fidsOfGrps, const std::vector< std::string > &grpNames)
virtual void changeFamilyIdArr (int oldId, int newId)=0 throw (INTERP_KERNEL::Exception)
- Static Protected Member Functions inherited from ParaMEDMEM::MEDFileMesh
static void TranslateFamilyIds (int offset, DataArrayInt *famArr, std::vector< std::vector< int > > &famIdsPerGrp)
static std::string CreateNameNotIn (const std::string &nameTry, const std::vector< std::string > &namesToAvoid) throw (INTERP_KERNEL::Exception)
- Protected Attributes inherited from ParaMEDMEM::MEDFileMesh
int _order
int _iteration
double _time
std::string _dt_unit
std::string _name
std::string _univ_name
std::string _desc_name
std::map< std::string,
std::vector< std::string > > 
_groups
std::map< std::string, int > _families

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().

int MEDFileUMesh::getMeshDimension ( ) const throw (INTERP_KERNEL::Exception)
virtual
int MEDFileUMesh::getSpaceDimension ( ) const throw (INTERP_KERNEL::Exception)
std::string MEDFileUMesh::simpleRepr ( ) const
virtual
std::string MEDFileUMesh::advancedRepr ( ) const
virtual

Implements ParaMEDMEM::MEDFileMesh.

References simpleRepr().

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
virtual

Implements ParaMEDMEM::MEDFileMesh.

Referenced by getNonEmptyLevelsExt().

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

Implements ParaMEDMEM::MEDFileMesh.

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().

std::vector< std::string > MEDFileUMesh::getGroupsOnSpecifiedLev ( int  meshDimRelToMaxExt) const throw (INTERP_KERNEL::Exception)

This method retrives all groups that partly or fully appear on the level 'meshDimRelToMaxExt'.

DataArrayDouble * MEDFileUMesh::getCoords ( ) const

This method returns coordinates in 'this'. The returned array reference counter is not incremented by this method (as MEDCouplingPointSet::getCoords does).

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::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)
void MEDFileUMesh::optimizeFamilies ( ) throw (INTERP_KERNEL::Exception)

Friends And Related Function Documentation

friend class MEDFileMesh
friend
Copyright © 2007-2012 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