Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
MEDCoupling::MEDFileStructuredMesh Class Referenceabstract
Inheritance diagram for MEDCoupling::MEDFileStructuredMesh:
Collaboration diagram for MEDCoupling::MEDFileStructuredMesh:

Public Member Functions

void addGroup (int meshDimRelToMaxExt, const DataArrayInt *ids)
 
void addNodeGroup (const DataArrayInt *ids)
 
int buildImplicitPartIfAny (INTERP_KERNEL::NormalizedCellType gt) const
 
void clearNonDiscrAttributes () const
 
std::vector< const
BigMemoryObject * > 
getDirectChildrenWithNull () const
 
std::vector< int > getFamArrNonEmptyLevelsExt () const
 
DataArrayIntgetFamiliesArr (int meshDimRelToMaxExt, const std::vector< std::string > &fams, bool renum=false) const
 
const DataArrayIntgetFamilyFieldAtLevel (int meshDimRelToMaxExt) const
 
DataArrayIntgetFamilyFieldAtLevel (int meshDimRelToMaxExt)
 
std::vector< int > getFamsNonEmptyLevels (const std::vector< std::string > &fams) const
 
std::vector< int > getFamsNonEmptyLevelsExt (const std::vector< std::string > &fams) const
 
std::vector
< INTERP_KERNEL::NormalizedCellType
getGeoTypesAtLevel (int meshDimRelToMax) const
 
std::size_t getHeapMemorySizeWithoutChildren () const
 
MEDCoupling1SGTUMeshgetImplicitFaceMesh () const
 
int getMaxAbsFamilyIdInArrays () const
 
int getMaxFamilyIdInArrays () const
 
MEDCouplingMeshgetMeshAtLevel (int meshDimRelToMax, bool renum=false) const
 
int getMinFamilyIdInArrays () const
 
std::vector< int > getNameArrNonEmptyLevelsExt () const
 
const DataArrayAsciiChargetNameFieldAtLevel (int meshDimRelToMaxExt) const
 
std::vector< int > getNonEmptyLevels () const
 
std::vector< int > getNonEmptyLevelsExt () const
 
std::vector< int > getNumArrNonEmptyLevelsExt () const
 
const DataArrayIntgetNumberFieldAtLevel (int meshDimRelToMaxExt) const
 
int getNumberOfCellsAtLevel (int meshDimRelToMaxExt) const
 
int getNumberOfCellsWithType (INTERP_KERNEL::NormalizedCellType ct) const
 
int getNumberOfNodes () const
 
const DataArrayIntgetRevNumberFieldAtLevel (int meshDimRelToMaxExt) const
 
int getSizeAtLevel (int meshDimRelToMaxExt) const
 
virtual const
MEDCouplingStructuredMesh
getStructuredMesh () const =0
 
bool hasImplicitPart () const
 
bool isEqual (const MEDFileMesh *other, double eps, std::string &what) const
 
bool presenceOfStructureElements () const
 
void releaseImplicitPartIfAny () const
 
void setFamilyFieldArr (int meshDimRelToMaxExt, DataArrayInt *famArr)
 
void setNameFieldAtLevel (int meshDimRelToMaxExt, DataArrayAsciiChar *nameArr)
 
void setRenumFieldArr (int meshDimRelToMaxExt, DataArrayInt *renumArr)
 
bool unPolyze (std::vector< int > &oldCode, std::vector< int > &newCode, DataArrayInt *&o2nRenumCell)
 
void whichAreNodesFetched (const MEDFileField1TSStructItem &st, const MEDFileFieldGlobsReal *globs, std::vector< bool > &nodesFetched) const
 
- Public Member Functions inherited from MEDCoupling::MEDFileMesh
virtual void addFamily (const std::string &familyName, int id)
 
void addFamilyOnGrp (const std::string &grpName, const std::string &famName)
 
virtual std::string advancedRepr () const =0
 
bool areFamsEqual (const MEDFileMesh *other, std::string &what) const
 
bool areGrpsEqual (const MEDFileMesh *other, std::string &what) const
 
void assignFamilyNameWithGroupName ()
 
virtual MEDFileMeshcartesianize () const =0
 
void changeAllGroupsContainingFamily (const std::string &familyNameToChange, const std::vector< std::string > &newFamiliesNames)
 
void changeFamilyId (int oldId, int newId)
 
void changeFamilyName (const std::string &oldName, const std::string &newName)
 
void changeGroupName (const std::string &oldName, const std::string &newName)
 
bool changeNames (const std::vector< std::pair< std::string, std::string > > &modifTab)
 
void checkOrphanFamilyZero () const
 
void clearFamGrpMaps ()
 
void clearFamMap ()
 
void clearGrpMap ()
 
DataArrayIntcomputeAllFamilyIdsInUse () const
 
void copyFamGrpMapsFrom (const MEDFileMesh &other)
 
virtual void createGroupOnAll (int meshDimRelToMaxExt, const std::string &groupName)
 
virtual MEDFileMeshcreateNewEmpty () const =0
 
virtual MEDFileMeshdeepCopy () const =0
 
bool ensureDifferentFamIdsPerLevel ()
 
bool existsFamily (int famId) const
 
bool existsFamily (const std::string &familyName) const
 
bool existsGroup (const std::string &groupName) const
 
std::string findOrCreateAndGiveFamilyWithId (int id, bool &created)
 
DataArrayIntgetAllFamiliesIdsReferenced () const
 
std::vector
< INTERP_KERNEL::NormalizedCellType
getAllGeoTypes () const
 
MEDCouplingAxisType getAxisType () const
 
std::string getDescription () const
 
virtual std::vector< int > getDistributionOfTypes (int meshDimRelToMax) const
 
MEDFileEquivalences * getEquivalences ()
 
const MEDFileEquivalences * getEquivalences () const
 
std::vector< int > getFamiliesIds (const std::vector< std::string > &famNames) const
 
std::vector< int > getFamiliesIdsOnGroup (const std::string &name) const
 
std::vector< std::string > getFamiliesNames () const
 
std::vector< std::string > getFamiliesNamesWithFilePointOfView () const
 
std::vector< std::string > getFamiliesOnGroup (const std::string &name) const
 
std::vector< std::string > getFamiliesOnGroups (const std::vector< std::string > &grps) const
 
virtual DataArrayIntgetFamilyArr (int meshDimRelToMaxExt, const std::string &fam, bool renum=false) const
 
int getFamilyId (const std::string &name) const
 
const std::map< std::string,
int > & 
getFamilyInfo () const
 
std::string getFamilyNameGivenId (int id) const
 
std::vector< int > getFamNonEmptyLevels (const std::string &fam) const
 
std::vector< int > getFamNonEmptyLevelsExt (const std::string &fam) const
 
virtual DataArrayIntgetGroupArr (int meshDimRelToMaxExt, const std::string &grp, bool renum=false) const
 
const std::map< std::string,
std::vector< std::string > > & 
getGroupInfo () const
 
virtual DataArrayIntgetGroupsArr (int meshDimRelToMaxExt, const std::vector< std::string > &grps, bool renum=false) const
 
std::vector< std::string > getGroupsNames () const
 
std::vector< std::string > getGroupsOnFamily (const std::string &name) const
 
std::vector< std::string > getGroupsOnSpecifiedLev (int meshDimRelToMaxExt) const
 
std::vector< int > getGrpNonEmptyLevels (const std::string &grp) const
 
std::vector< int > getGrpNonEmptyLevelsExt (const std::string &grp) const
 
std::vector< int > getGrpsNonEmptyLevels (const std::vector< std::string > &grps) const
 
std::vector< int > getGrpsNonEmptyLevelsExt (const std::vector< std::string > &grps) const
 
int getIteration () const
 
MEDFileJoints * getJoints () const
 
int getMaxAbsFamilyId () const
 
int getMaxFamilyId () const
 
virtual int getMeshDimension () const =0
 
int getMinFamilyId () const
 
std::string getName () const
 
virtual DataArrayIntgetNodeFamiliesArr (const std::vector< std::string > &fams, bool renum=false) const
 
virtual DataArrayIntgetNodeFamilyArr (const std::string &fam, bool renum=false) const
 
virtual DataArrayIntgetNodeGroupArr (const std::string &grp, bool renum=false) const
 
virtual DataArrayIntgetNodeGroupsArr (const std::vector< std::string > &grps, bool renum=false) const
 
int getNumberOfJoints () const
 
DataArrayIntgetOrCreateAndGetFamilyFieldAtLevel (int meshDimRelToMaxExt)
 
int getOrder () const
 
int getTheMaxAbsFamilyId () const
 
int getTheMaxFamilyId () const
 
int getTheMinFamilyId () const
 
double getTime (int &dt, int &it) const
 
std::string getTimeUnit () const
 
double getTimeValue () const
 
std::string getUnivName () const
 
bool getUnivNameWrStatus () const
 
void initializeEquivalences ()
 
virtual bool keepFamIdsOnlyOnLevs (const std::vector< int > &famIds, const std::vector< int > &levs)
 
void killEquivalences ()
 
virtual void killStructureElements ()
 
void normalizeFamIdsMEDFile ()
 
void normalizeFamIdsTrio ()
 
void rearrangeFamilies ()
 
std::vector< std::string > removeEmptyGroups ()
 
void removeFamiliesReferedByNoGroups ()
 
void removeFamily (const std::string &name)
 
void removeGroup (const std::string &name)
 
std::vector< std::string > removeOrphanFamilies ()
 
std::vector< std::string > removeOrphanGroups ()
 
void setAxisType (MEDCouplingAxisType at)
 
void setDescription (const std::string &name)
 
void setFamiliesIdsOnGroup (const std::string &name, const std::vector< int > &famIds)
 
void setFamiliesOnGroup (const std::string &name, const std::vector< std::string > &fams)
 
void setFamilyId (const std::string &familyName, int id)
 
void setFamilyIdUnique (const std::string &familyName, int id)
 
void setFamilyInfo (const std::map< std::string, int > &info)
 
void setGroupInfo (const std::map< std::string, std::vector< std::string > > &info)
 
virtual void setGroupsAtLevel (int meshDimRelToMaxExt, const std::vector< const DataArrayInt * > &grps, bool renum=false)
 
void setGroupsOnFamily (const std::string &famName, const std::vector< std::string > &grps)
 
void setIteration (int it)
 
void setJoints (MEDFileJoints *joints)
 
virtual void setName (const std::string &name)
 
void setOrder (int order)
 
void setTime (int dt, int it, double time)
 
void setTimeUnit (const std::string &unit)
 
void setTimeValue (double time)
 
void setUnivNameWrStatus (bool newStatus)
 
virtual MEDFileMeshshallowCpy () const =0
 
virtual std::string simpleRepr () const
 
void writeLL (med_idt fid) const
 

Protected Member Functions

void buildImplicitPart () const
 
void buildMinusOneImplicitPartIfNeeded () const
 
void changeFamilyIdArr (int oldId, int newId)
 
void deepCpyAttributes ()
 
std::list< MCAuto< DataArrayInt > > getAllNonNullFamilyIds () const
 
void loadStrMeshFromFile (MEDFileStrMeshL2 *strm, med_idt fid, const std::string &mName, int dt, int it, MEDFileMeshReadSelector *mrs)
 
void writeStructuredLL (med_idt fid, const std::string &maa) const
 
 ~MEDFileStructuredMesh ()
 
- Protected Member Functions inherited from MEDCoupling::MEDFileMesh
void addFamilyOnAllGroupsHaving (const std::string &famName, const std::string &otherFamName)
 
void addGroupUnderground (bool isNodeGroup, const DataArrayInt *ids, DataArrayInt *famArr)
 
virtual void appendFamilyEntries (const DataArrayInt *famIds, const std::vector< std::vector< int > > &fidsOfGrps, const std::vector< std::string > &grpNames)
 
bool areEquivalencesEqual (const MEDFileMesh *other, std::string &what) const
 
void checkCartesian () const
 
void dealWithTinyInfo (const MEDCouplingMesh *m)
 
void deepCpyEquivalences (const MEDFileMesh &other)
 
void getEquivalencesRepr (std::ostream &oss) const
 
void getFamilyRepr (std::ostream &oss) const
 
void loadEquivalences (med_idt fid)
 
void loadJointsFromFile (med_idt fid, MEDFileJoints *toUseInstedOfReading=0)
 
virtual void loadLL (med_idt fid, const std::string &mName, int dt, int it, MEDFileMeshReadSelector *mrs)=0
 
void loadLLWithAdditionalItems (med_idt fid, const std::string &mName, int dt, int it, MEDFileMeshReadSelector *mrs)
 
 MEDFileMesh ()
 
void setUnivName (const std::string &name)
 
virtual void synchronizeTinyInfoOnLeaves () const =0
 
void writeJoints (med_idt fid) const
 
- Protected Member Functions inherited from MEDCoupling::RefCountObject
 RefCountObject ()
 
 RefCountObject (const RefCountObject &other)
 
virtual ~RefCountObject ()
 
- Protected Member Functions inherited from MEDCoupling::RefCountObjectOnly
 RefCountObjectOnly ()
 
 RefCountObjectOnly (const RefCountObjectOnly &other)
 
virtual ~RefCountObjectOnly ()
 

Static Protected Member Functions

static med_geometry_type GetGeoTypeFromMeshDim (int meshDim)
 
- Static Protected Member Functions inherited from MEDCoupling::MEDFileMesh
static void ChangeAllGroupsContainingFamily (std::map< std::string, std::vector< std::string > > &groups, const std::string &familyNameToChange, const std::vector< std::string > &newFamiliesNames)
 
static std::string CreateNameNotIn (const std::string &nameTry, const std::vector< std::string > &namesToAvoid)
 
static std::string FindOrCreateAndGiveFamilyWithId (std::map< std::string, int > &families, int id, bool &created)
 
static int PutInThirdComponentOfCodeOffset (std::vector< int > &code, int strt)
 
static void TranslateFamilyIds (int offset, DataArrayInt *famArr, std::vector< std::vector< int > > &famIdsPerGrp)
 

Friends

class MEDFileMesh
 

Additional Inherited Members

- Static Public Member Functions inherited from MEDCoupling::MEDFileMesh
static TypeOfField ConvertFromMEDFileEntity (med_entity_type etype)
 
static
INTERP_KERNEL::NormalizedCellType 
ConvertFromMEDFileGeoType (med_geometry_type geoType)
 
static std::string GetMagicFamilyStr ()
 
static MEDFileMeshNew (const std::string &fileName, MEDFileMeshReadSelector *mrs=0)
 
static MEDFileMeshNew (med_idt fid, MEDFileMeshReadSelector *mrs=0)
 
static MEDFileMeshNew (DataArrayByte *db)
 
static MEDFileMeshNew (const std::string &fileName, const std::string &mName, int dt=-1, int it=-1, MEDFileMeshReadSelector *mrs=0, MEDFileJoints *joints=0)
 
static MEDFileMeshNew (med_idt fid, const std::string &mName, int dt=-1, int it=-1, MEDFileMeshReadSelector *mrs=0, MEDFileJoints *joints=0)
 
- Static Public Attributes inherited from MEDCoupling::MEDFileMesh
static const char DFT_FAM_NAME [] ="FAMILLE_ZERO"
 
- Protected Attributes inherited from MEDCoupling::MEDFileMesh
MEDCouplingAxisType _axis_type
 
std::string _desc_name
 
std::string _dt_unit
 
MCAuto< MEDFileEquivalences > _equiv
 
std::map< std::string, int > _families
 
std::map< std::string,
std::vector< std::string > > 
_groups
 
int _iteration
 
MCAuto< MEDFileJoints > _joints
 
std::string _name
 
int _order
 
double _time
 
std::string _univ_name
 
bool _univ_wr_status
 

Constructor & Destructor Documentation

MEDCoupling::MEDFileStructuredMesh::~MEDFileStructuredMesh ( )
protected

Member Function Documentation

int MEDFileStructuredMesh::getMaxAbsFamilyIdInArrays ( ) const
virtual
int MEDFileStructuredMesh::getMaxFamilyIdInArrays ( ) const
virtual
int MEDFileStructuredMesh::getMinFamilyIdInArrays ( ) const
virtual
bool MEDFileStructuredMesh::isEqual ( const MEDFileMesh other,
double  eps,
std::string &  what 
) const
virtual

Checks if this and another mesh are equal.

Parameters
[in]other- the mesh to compare with.
[in]eps- a precision used to compare real values.
[in,out]what- the string returning description of unequal data.
Returns
bool - true if the meshes are equal, false, else.

Reimplemented from MEDCoupling::MEDFileMesh.

Reimplemented in MEDCoupling::MEDFileCurveLinearMesh, and MEDCoupling::MEDFileCMesh.

References MEDCoupling::MEDFileMesh::isEqual(), MEDCoupling::DataArrayInt::isEqual(), and MEDCoupling::DataArrayChar::isEqual().

Referenced by MEDCoupling::MEDFileCMesh::isEqual(), and MEDCoupling::MEDFileCurveLinearMesh::isEqual().

void MEDFileStructuredMesh::clearNonDiscrAttributes ( ) const
virtual
DataArrayInt * MEDFileStructuredMesh::getFamiliesArr ( int  meshDimRelToMaxExt,
const std::vector< std::string > &  fams,
bool  renum = false 
) const
virtual

Returns ids of mesh entities contained in given families of a given dimension.

Parameters
[in]meshDimRelToMaxExt- a relative dimension of the mesh entities whose ids are required.
[in]fams- the names of the families of interest.
[in]renum- if true, the optional numbers of entities, if available, are returned instead of ids.
Returns
DataArrayInt * - a new instance of DataArrayInt holding either ids or numbers, if available and required, of mesh entities of the families. The caller is to delete this array using decrRef() as it is no more needed.
Exceptions
Ifthe family field is missing for meshDimRelToMaxExt.

Implements MEDCoupling::MEDFileMesh.

References MEDCoupling::MEDFileMesh::getFamiliesIds(), and MEDCoupling::MCAuto< T >::retn().

const DataArrayInt * MEDFileStructuredMesh::getFamilyFieldAtLevel ( int  meshDimRelToMaxExt) const
virtual

Returns the family field for mesh entities of a given dimension.

Parameters
[in]meshDimRelToMaxExt- the relative dimension of mesh entities.
Returns
const DataArrayInt * - the family field. It is an array of ids of families each mesh entity belongs to. It can be NULL.
Exceptions
IfmeshDimRelToMaxExt != 0 and meshDimRelToMaxExt != 1.

Implements MEDCoupling::MEDFileMesh.

DataArrayInt * MEDFileStructuredMesh::getFamilyFieldAtLevel ( int  meshDimRelToMaxExt)
virtual

Returns the family field for mesh entities of a given dimension.

Parameters
[in]meshDimRelToMaxExt- the relative dimension of mesh entities.
Returns
const DataArrayInt * - the family field. It is an array of ids of families each mesh entity belongs to. It can be NULL.
Exceptions
IfmeshDimRelToMaxExt != 0 and meshDimRelToMaxExt != 1.

Implements MEDCoupling::MEDFileMesh.

void MEDFileStructuredMesh::setFamilyFieldArr ( int  meshDimRelToMaxExt,
DataArrayInt famArr 
)
virtual

Sets the family field of a given relative dimension.

Parameters
[in]meshDimRelToMaxExt- the relative dimension of entities for which the family field is set.
[in]famArr- the array of the family field.
Exceptions
Ifthere are no mesh entities of meshDimRelToMaxExt dimension in this mesh.
IffamArr has an invalid size.
IfmeshDimRelToMaxExt != 0 and meshDimRelToMaxExt != 1 and meshDimRelToMaxExt != -1.

Implements MEDCoupling::MEDFileMesh.

References MEDCoupling::DataArray::checkNbOfTuplesAndComp(), MEDCoupling::MEDCouplingStructuredMesh::getNumberOfCells(), MEDCoupling::MEDCouplingStructuredMesh::getNumberOfCellsOfSubLevelMesh(), MEDCoupling::MEDCouplingStructuredMesh::getNumberOfNodes(), getStructuredMesh(), and MEDCoupling::RefCountObjectOnly::incrRef().

void MEDFileStructuredMesh::setRenumFieldArr ( int  meshDimRelToMaxExt,
DataArrayInt renumArr 
)
virtual

Sets the optional numbers of mesh entities of a given dimension.

Parameters
[in]meshDimRelToMaxExt- the relative dimension of mesh entities.
[in]renumArr- the array of the numbers.
Exceptions
Ifthere are no mesh entities of meshDimRelToMaxExt dimension in this mesh.
IfrenumArr has an invalid size.
IfmeshDimRelToMaxExt != 0 and meshDimRelToMaxExt != 1.

Implements MEDCoupling::MEDFileMesh.

References MEDCoupling::DataArray::checkNbOfTuplesAndComp(), MEDCoupling::MEDCouplingStructuredMesh::getNumberOfCells(), MEDCoupling::MEDCouplingStructuredMesh::getNumberOfCellsOfSubLevelMesh(), MEDCoupling::MEDCouplingStructuredMesh::getNumberOfNodes(), getStructuredMesh(), and MEDCoupling::RefCountObjectOnly::incrRef().

void MEDFileStructuredMesh::setNameFieldAtLevel ( int  meshDimRelToMaxExt,
DataArrayAsciiChar nameArr 
)
virtual

Sets the optional names of mesh entities of a given dimension.

Parameters
[in]meshDimRelToMaxExt- the relative dimension of mesh entities.
[in]nameArr- the array of the names.
Exceptions
Ifthere are no mesh entities of meshDimRelToMaxExt dimension in this mesh.
IfnameArr has an invalid size.

Implements MEDCoupling::MEDFileMesh.

References MEDCoupling::DataArray::checkNbOfTuplesAndComp(), MEDCoupling::MEDCouplingStructuredMesh::getNumberOfCells(), MEDCoupling::MEDCouplingStructuredMesh::getNumberOfCellsOfSubLevelMesh(), MEDCoupling::MEDCouplingStructuredMesh::getNumberOfNodes(), getStructuredMesh(), and MEDCoupling::RefCountObjectOnly::incrRef().

void MEDFileStructuredMesh::addNodeGroup ( const DataArrayInt ids)
virtual

Adds a group of nodes to this mesh.

Parameters
[in]ids- a DataArrayInt providing ids and a name of the group to add. The ids should be sorted and different each other (MED file norm).
Warning
this method can alter default "FAMILLE_ZERO" family. For users sensitive to this a call to MEDFileMesh::rearrangeFamilies will be necessary after addGroup session.
Exceptions
Ifthe node coordinates array is not set.
Ifids == NULL.
Ifids->getName() == "".
Ifids does not respect the MED file norm.
Ifa group with name ids->getName() already exists.

Implements MEDCoupling::MEDFileMesh.

References addGroup().

void MEDFileStructuredMesh::addGroup ( int  meshDimRelToMaxExt,
const DataArrayInt ids 
)
virtual

Adds a group of nodes/cells/faces/edges to this mesh.

Parameters
[in]ids- a DataArrayInt providing ids and a name of the group to add. The ids should be sorted and different each other (MED file norm).
Warning
this method can alter default "FAMILLE_ZERO" family. For users sensitive to this a call to MEDFileMesh::rearrangeFamilies will be necessary after addGroup session.
Exceptions
Ifthe node coordinates array is not set.
Ifids == NULL.
Ifids->getName() == "".
Ifids does not respect the MED file norm.
Ifa group with name ids->getName() already exists.

Implements MEDCoupling::MEDFileMesh.

References MEDCoupling::MEDFileMesh::addGroupUnderground(), and MEDCoupling::MEDFileMesh::getOrCreateAndGetFamilyFieldAtLevel().

Referenced by addNodeGroup().

const DataArrayInt * MEDFileStructuredMesh::getNumberFieldAtLevel ( int  meshDimRelToMaxExt) const
virtual

Returns the optional numbers of mesh entities of a given dimension.

Parameters
[in]meshDimRelToMaxExt- the relative dimension of mesh entities.
Returns
const DataArrayInt * - the array of the entity numbers.
Exceptions
Ifthere are no mesh entities of meshDimRelToMaxExt dimension in this mesh.
IfmeshDimRelToMaxExt != 0 and meshDimRelToMaxExt != 1.

Implements MEDCoupling::MEDFileMesh.

const DataArrayInt * MEDFileStructuredMesh::getRevNumberFieldAtLevel ( int  meshDimRelToMaxExt) const
virtual

Returns the optional numbers of mesh entities of a given dimension transformed using DataArrayInt::invertArrayN2O2O2N().

Parameters
[in]meshDimRelToMaxExt- the relative dimension of mesh entities.
Returns
const DataArrayInt * - the array of the entity numbers transformed using DataArrayInt::invertArrayN2O2O2N().
Exceptions
IfmeshDimRelToMaxExt != 0 and meshDimRelToMaxExt != 1.
Ifthere are no mesh entities of meshDimRelToMaxExt dimension in this mesh.

Implements MEDCoupling::MEDFileMesh.

const DataArrayAsciiChar * MEDFileStructuredMesh::getNameFieldAtLevel ( int  meshDimRelToMaxExt) const
virtual
std::vector< int > MEDFileStructuredMesh::getNonEmptyLevels ( ) const
virtual

Returns relative dimensions of mesh entities (excluding nodes) present in this mesh.

Returns
std::vector<int> - a sequence of the relative dimensions: [0].

Implements MEDCoupling::MEDFileMesh.

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

Returns relative dimensions of mesh entities (including nodes) present in this mesh.

Returns
std::vector<int> - a sequence of the relative dimensions: [1,0].

Implements MEDCoupling::MEDFileMesh.

std::vector< int > MEDFileStructuredMesh::getFamArrNonEmptyLevelsExt ( ) const
virtual

Returns the set of extensive levels (nodes included) where not NULL family arr are defined.

Implements MEDCoupling::MEDFileMesh.

std::vector< int > MEDFileStructuredMesh::getNumArrNonEmptyLevelsExt ( ) const
virtual

Returns the set of extensive levels (nodes included) where not NULL numbering arr are defined.

Implements MEDCoupling::MEDFileMesh.

std::vector< int > MEDFileStructuredMesh::getNameArrNonEmptyLevelsExt ( ) const
virtual

Returns the set of extensive levels (nodes included) where not NULL naming arr are defined.

Implements MEDCoupling::MEDFileMesh.

MEDCouplingMesh * MEDFileStructuredMesh::getMeshAtLevel ( int  meshDimRelToMax,
bool  renum = false 
) const
virtual

Returns a pointer to mesh at the specified level (here 0 is compulsary for cartesian mesh).

Returns
a pointer to cartesian mesh that need to be managed by the caller.
Warning
the returned pointer has to be managed by the caller.

Returns a pointer to MEDCouplingStructuredMesh held by this.

Parameters
[in]meshDimRelToMax- it must be 0 or -1.
[in]renum- it must be false.
Returns
MEDCouplingMesh * - a pointer to MEDCouplingMesh that the caller is to delete using decrRef() as it is no more needed.

Implements MEDCoupling::MEDFileMesh.

References buildMinusOneImplicitPartIfNeeded(), MEDCoupling::MEDFileMesh::checkCartesian(), getStructuredMesh(), and MEDCoupling::RefCountObjectOnly::incrRef().

std::vector< int > MEDFileStructuredMesh::getFamsNonEmptyLevels ( const std::vector< std::string > &  fams) const
virtual
std::vector< int > MEDFileStructuredMesh::getFamsNonEmptyLevelsExt ( const std::vector< std::string > &  fams) const
virtual
int MEDFileStructuredMesh::getSizeAtLevel ( int  meshDimRelToMaxExt) const
virtual

Returns number of mesh entities of a given relative dimension in this mesh.

Parameters
[in]meshDimRelToMaxExt- the relative dimension of interest.
Returns
int - the number of entities.
Exceptions
Ifno mesh entities of dimension meshDimRelToMaxExt are available in this mesh.

Implements MEDCoupling::MEDFileMesh.

References MEDCoupling::MEDCouplingStructuredMesh::getNumberOfCells(), MEDCoupling::MEDCouplingStructuredMesh::getNumberOfCellsOfSubLevelMesh(), MEDCoupling::MEDCouplingStructuredMesh::getNumberOfNodes(), and getStructuredMesh().

int MEDFileStructuredMesh::getNumberOfNodes ( ) const
virtual
int MEDFileStructuredMesh::getNumberOfCellsAtLevel ( int  meshDimRelToMaxExt) const
virtual
bool MEDFileStructuredMesh::hasImplicitPart ( ) const
virtual
void MEDFileStructuredMesh::releaseImplicitPartIfAny ( ) const
virtual
MEDCoupling1SGTUMesh * MEDFileStructuredMesh::getImplicitFaceMesh ( ) const

Retrieves the internal pointer (no decrRef requested) of the implicit face mesh if any. To force to build it you can invoke MEDFileStructuredMesh::buildImplicitPartIfAny method.

See Also
MEDFileStructuredMesh::buildImplicitPartIfAny

References MEDCoupling::MEDFileMesh::checkCartesian().

bool MEDCoupling::MEDFileStructuredMesh::presenceOfStructureElements ( ) const
virtual
bool MEDFileStructuredMesh::unPolyze ( std::vector< int > &  oldCode,
std::vector< int > &  newCode,
DataArrayInt *&  o2nRenumCell 
)
virtual

no implementation here, it is not a bug, but intresically no polyhedra in this.

Implements MEDCoupling::MEDFileMesh.

void MEDFileStructuredMesh::changeFamilyIdArr ( int  oldId,
int  newId 
)
protectedvirtual
std::list< MCAuto< DataArrayInt > > MEDFileStructuredMesh::getAllNonNullFamilyIds ( ) const
protectedvirtual
void MEDFileStructuredMesh::deepCpyAttributes ( )
protected
void MEDFileStructuredMesh::buildImplicitPart ( ) const
protected
void MEDFileStructuredMesh::buildMinusOneImplicitPartIfNeeded ( ) const
protected

References buildImplicitPart().

Referenced by getMeshAtLevel().

med_geometry_type MEDFileStructuredMesh::GetGeoTypeFromMeshDim ( int  meshDim)
staticprotected

Friends And Related Function Documentation

friend class MEDFileMesh
friend