Version: 6.3.1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Friends

ParaMEDMEM.MEDFileUMesh Class Reference

#include <MEDFileMesh.hxx>

Inheritance diagram for ParaMEDMEM.MEDFileUMesh:
Inheritance graph

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< intgetNonEmptyLevels () const
std::vector< intgetNonEmptyLevelsExt () const
std::vector< intgetGrpNonEmptyLevels (const char *grp) const throw (INTERP_KERNEL::Exception)
std::vector< intgetGrpNonEmptyLevelsExt (const char *grp) const throw (INTERP_KERNEL::Exception)
std::vector< intgetFamNonEmptyLevels (const char *fam) const throw (INTERP_KERNEL::Exception)
std::vector< intgetFamNonEmptyLevelsExt (const char *fam) const throw (INTERP_KERNEL::Exception)
std::vector< intgetGrpsNonEmptyLevels (const std::vector< std::string > &grps) const throw (INTERP_KERNEL::Exception)
std::vector< intgetGrpsNonEmptyLevelsExt (const std::vector< std::string > &grps) const throw (INTERP_KERNEL::Exception)
std::vector< intgetFamsNonEmptyLevels (const std::vector< std::string > &fams) const throw (INTERP_KERNEL::Exception)
std::vector< intgetFamsNonEmptyLevelsExt (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 ()

Private Member Functions

 MEDFileUMesh ()
 MEDFileUMesh (med_idt fid, const char *mName, int dt, int it) throw (INTERP_KERNEL::Exception)
void loadUMeshFromFile (med_idt fid, const char *mName, int dt, int it) throw (INTERP_KERNEL::Exception)
const MEDFileUMeshSplitL1getMeshAtLevSafe (int meshDimRelToMaxExt) const throw (INTERP_KERNEL::Exception)
MEDFileUMeshSplitL1getMeshAtLevSafe (int meshDimRelToMaxExt) throw (INTERP_KERNEL::Exception)
void checkMeshDimCoherency (int meshDim, int meshDimRelToMax) const throw (INTERP_KERNEL::Exception)
DataArrayDoublecheckMultiMesh (const std::vector< const MEDCouplingUMesh * > &ms) const throw (INTERP_KERNEL::Exception)
void computeRevNum () const
void synchronizeTinyInfoOnLeaves () const

Private Attributes

std::vector
< MEDCouplingAutoRefCountObjectPtr
< MEDFileUMeshSplitL1 > > 
_ms
MEDCouplingAutoRefCountObjectPtr
< DataArrayDouble
_coords
MEDCouplingAutoRefCountObjectPtr
< DataArrayInt
_fam_coords
MEDCouplingAutoRefCountObjectPtr
< DataArrayInt
_num_coords
MEDCouplingAutoRefCountObjectPtr
< DataArrayInt
_rev_num_coords

Friends

class MEDFileMesh

Constructor & Destructor Documentation

MEDFileUMesh::~MEDFileUMesh ( )
MEDFileUMesh::MEDFileUMesh ( ) [private]
MEDFileUMesh::MEDFileUMesh ( med_idt  fid,
const char *  mName,
int  dt,
int  it 
) throw (INTERP_KERNEL::Exception) [private]

References Med_Gen_test.dt, and Med_Gen_test.it.


Member Function Documentation

MEDFileUMesh * MEDFileUMesh::New ( const char *  fileName,
const char *  mName,
int  dt = -1,
int  it = -1 
) throw (INTERP_KERNEL::Exception) [static]
MEDFileUMesh * MEDFileUMesh::New ( const char *  fileName) throw (INTERP_KERNEL::Exception) [static]
MEDFileUMesh * MEDFileUMesh::New ( ) [static]
bool MEDFileUMesh::isEqual ( const MEDFileMesh other,
double  eps,
std::string &  what 
) const [virtual]
void MEDFileUMesh::clearNonDiscrAttributes ( ) const [virtual]
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]
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
std::vector< int > MEDFileUMesh::getNonEmptyLevelsExt ( ) const
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.

References Med_Gen_test.it, and testMEDMEM.ret.

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(), and testMEDMEM.ret.

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)

References testRenumbering.id.

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)

References Med_Gen_test.it.

void MEDFileUMesh::setMeshAtLevel ( int  meshDimRelToMax,
MEDCouplingUMesh m,
bool  newOrOld = false 
) throw (INTERP_KERNEL::Exception)

References TestMedCorba2.m.

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)
void MEDFileUMesh::loadUMeshFromFile ( med_idt  fid,
const char *  mName,
int  dt,
int  it 
) throw (INTERP_KERNEL::Exception) [private]
const MEDFileUMeshSplitL1 * MEDFileUMesh::getMeshAtLevSafe ( int  meshDimRelToMaxExt) const throw (INTERP_KERNEL::Exception) [private]
MEDFileUMeshSplitL1 * MEDFileUMesh::getMeshAtLevSafe ( int  meshDimRelToMaxExt) throw (INTERP_KERNEL::Exception) [private]
void MEDFileUMesh::checkMeshDimCoherency ( int  meshDim,
int  meshDimRelToMax 
) const throw (INTERP_KERNEL::Exception) [private]
DataArrayDouble * MEDFileUMesh::checkMultiMesh ( const std::vector< const MEDCouplingUMesh * > &  ms) const throw (INTERP_KERNEL::Exception) [private]

References testMEDMEM.ret.

void MEDFileUMesh::computeRevNum ( ) const [private]
void MEDFileUMesh::synchronizeTinyInfoOnLeaves ( ) const [private, virtual]

Friends And Related Function Documentation

friend class MEDFileMesh [friend]

Field Documentation

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