Version: 5.1.6

MED.TGrilleInfo Struct Reference

Define a base class which represents MED Grille. More...

#include <MED_Structures.hxx>

Inheritance diagram for MED.TGrilleInfo:
Inheritance graph

Public Member Functions

const PMeshInfoGetMeshInfo () const
const TNodeCoordGetNodeCoord () const
 Gives coordinates for mesh nodes (const version).
TNodeCoordGetNodeCoord ()
TNodeCoord GetCoord (TInt theId)
 Gives coordinates for mesh node by its number, array index from 0.
TIntVector GetConn (TInt theId, const bool isSub=false)
 Gives ids of nodes for mesh cell or sub-cell by its number, array index from 0.
const EGrilleTypeGetGrilleType () const
 Gets grille type (const version).
EGrilleType GetGrilleType ()
 Gets grille type.
void SetGrilleType (EGrilleType theGrilleType)
 Sets grille type.
virtual std::string GetCoordName (TInt theId) const =0
 Get name of the coordinate dimension by its order number.
virtual void SetCoordName (TInt theId, const std::string &theValue)=0
 Set name of the coordinate dimension by its order number.
virtual std::string GetCoordUnit (TInt theId) const =0
 Get name of unit for the coordinate dimension by its order number.
virtual void SetCoordUnit (TInt theId, const std::string &theValue)=0
 Set name of unit for the coordinate dimension by its order number.
const TIndexesGetMapOfIndexes () const
 Gets a map of Tables (const version).
TIndexesGetMapOfIndexes ()
 Gets a map of Tables.
const TFloatVectorGetIndexes (TInt theAxisNumber) const
 Gets a Table of indexes for certain axe(const version).
TFloatVectorGetIndexes (TInt theAxisNumber)
 Gets a Table of indexes for certain axe.
TInt GetNbIndexes (TInt theAxisNumber)
 Gets a number of indices per axe.
TInt GetNbNodes ()
TInt GetNbCells ()
 Return count of all points.
TInt GetNbSubCells ()
 Return count of all cells.
EGeometrieElement GetGeom ()
 Return count of all entities of <mesh dimension-1>.
EGeometrieElement GetSubGeom ()
 Return geometry of cells (calculated from mesh dimension).
EEntiteMaillage GetEntity ()
 Return geometry of subcells (calculated from mesh dimension).
EEntiteMaillage GetSubEntity ()
 Return entity (eMAILLE).
const TIntVectorGetGrilleStructure () const
 Gets grille structure(const version).
TIntVector GetGrilleStructure ()
 Gets grille structure.
void SetGrilleStructure (TInt theAxis, TInt theNb)
 Sets the grille structure of theAxis axe to theNb.
TInt GetFamNum (TInt theId) const
 Get number of a MED FAMILY by order number of the mesh element.
void SetFamNum (TInt theId, TInt theVal)
 Set number of a MED FAMILY for the mesh element with the order number.
TInt GetFamSubNum (TInt theId) const
 Get number of a MED FAMILY by order number of sub element.
void SetFamSubNum (TInt theId, TInt theVal)
 Set number of a MED FAMILY for theId-th sub element.
TInt GetFamNumNode (TInt theId) const
 Get number of a MED FAMILY by order number of the mesh node.
void SetFamNumNode (TInt theId, TInt theVal)
 Set number of a MED FAMILY for the mesh node with the order number.

Data Fields

PMeshInfo myMeshInfo
TNodeCoord myCoord
 Contains all nodal coordinates, now used only for eGRILLE_STANDARD.
EGrilleType myGrilleType
 Defines grille type (eGRILLE_CARTESIENNE,eGRILLE_POLAIRE,eGRILLE_STANDARD).
TString myCoordNames
 Contains names for the coordinate dimensions.
TString myCoordUnits
 Contains units for the coordinate dimensions.
TIndexes myIndixes
 Map of index of axes and Table of indexes for certain axe, now used for eGRILLE_CARTESIENNE and eGRILLE_POLAIRE.
TIntVector myGrilleStructure
 Return sub entity.
TElemNum myFamNum
TElemNum myFamSubNum
TElemNum myFamNumNode

Detailed Description

Define a base class which represents MED Grille.


Member Function Documentation

const PMeshInfo& MED.TGrilleInfo.GetMeshInfo (  )  const
const TNodeCoord & TGrilleInfo::GetNodeCoord (  )  const

Gives coordinates for mesh nodes (const version).

TNodeCoord & TGrilleInfo::GetNodeCoord (  ) 
TNodeCoord TGrilleInfo::GetCoord ( TInt  theId  ) 

Gives coordinates for mesh node by its number, array index from 0.

References MED.eGRILLE_CARTESIENNE, MED.eGRILLE_STANDARD, EXCEPTION, and MED.GetNbNodes().

TIntVector TGrilleInfo::GetConn ( TInt  theId,
const bool  isSub = false 
)

Gives ids of nodes for mesh cell or sub-cell by its number, array index from 0.

const EGrilleType & TGrilleInfo::GetGrilleType (  )  const

Gets grille type (const version).

EGrilleType TGrilleInfo::GetGrilleType (  ) 

Gets grille type.

void TGrilleInfo::SetGrilleType ( EGrilleType  theGrilleType  ) 

Sets grille type.

virtual std::string MED.TGrilleInfo.GetCoordName ( TInt  theId  )  const [pure virtual]

Get name of the coordinate dimension by its order number.

Implemented in MED.TTGrilleInfo< eVersion >.

virtual void MED.TGrilleInfo.SetCoordName ( TInt  theId,
const std::string &  theValue 
) [pure virtual]

Set name of the coordinate dimension by its order number.

Implemented in MED.TTGrilleInfo< eVersion >.

virtual std::string MED.TGrilleInfo.GetCoordUnit ( TInt  theId  )  const [pure virtual]

Get name of unit for the coordinate dimension by its order number.

Implemented in MED.TTGrilleInfo< eVersion >.

virtual void MED.TGrilleInfo.SetCoordUnit ( TInt  theId,
const std::string &  theValue 
) [pure virtual]

Set name of unit for the coordinate dimension by its order number.

Implemented in MED.TTGrilleInfo< eVersion >.

const TIndexes & TGrilleInfo::GetMapOfIndexes (  )  const

Gets a map of Tables (const version).

TIndexes & TGrilleInfo::GetMapOfIndexes (  ) 

Gets a map of Tables.

const TFloatVector & TGrilleInfo::GetIndexes ( TInt  theAxisNumber  )  const

Gets a Table of indexes for certain axe(const version).

References EXCEPTION.

TFloatVector & TGrilleInfo::GetIndexes ( TInt  theAxisNumber  ) 

Gets a Table of indexes for certain axe.

References EXCEPTION.

TInt TGrilleInfo::GetNbIndexes ( TInt  theAxisNumber  ) 

Gets a number of indices per axe.

TInt TGrilleInfo::GetNbNodes (  ) 
TInt TGrilleInfo::GetNbCells (  ) 

Return count of all points.

TInt TGrilleInfo::GetNbSubCells (  ) 

Return count of all cells.

EGeometrieElement TGrilleInfo::GetGeom (  ) 

Return count of all entities of <mesh dimension-1>.

References MED.eHEXA8, MED.eNONE, MED.eQUAD4, and MED.eSEG2.

EGeometrieElement TGrilleInfo::GetSubGeom (  ) 

Return geometry of cells (calculated from mesh dimension).

References MED.eNONE, MED.eQUAD4, and MED.eSEG2.

EEntiteMaillage TGrilleInfo::GetEntity (  ) 

Return geometry of subcells (calculated from mesh dimension).

References MED.eMAILLE.

EEntiteMaillage TGrilleInfo::GetSubEntity (  ) 

Return entity (eMAILLE).

References MED.eARETE, and MED.eFACE.

const TIntVector & TGrilleInfo::GetGrilleStructure (  )  const

Gets grille structure(const version).

TIntVector TGrilleInfo::GetGrilleStructure (  ) 

Gets grille structure.

void TGrilleInfo::SetGrilleStructure ( TInt  theAxis,
TInt  theNb 
)

Sets the grille structure of theAxis axe to theNb.

TInt TGrilleInfo::GetFamNum ( TInt  theId  )  const

Get number of a MED FAMILY by order number of the mesh element.

void TGrilleInfo::SetFamNum ( TInt  theId,
TInt  theVal 
)

Set number of a MED FAMILY for the mesh element with the order number.

TInt TGrilleInfo::GetFamSubNum ( TInt  theId  )  const

Get number of a MED FAMILY by order number of sub element.

void TGrilleInfo::SetFamSubNum ( TInt  theId,
TInt  theVal 
)

Set number of a MED FAMILY for theId-th sub element.

TInt TGrilleInfo::GetFamNumNode ( TInt  theId  )  const

Get number of a MED FAMILY by order number of the mesh node.

void TGrilleInfo::SetFamNumNode ( TInt  theId,
TInt  theVal 
)

Set number of a MED FAMILY for the mesh node with the order number.


Field Documentation

Contains all nodal coordinates, now used only for eGRILLE_STANDARD.

Defines grille type (eGRILLE_CARTESIENNE,eGRILLE_POLAIRE,eGRILLE_STANDARD).

Contains names for the coordinate dimensions.

Contains units for the coordinate dimensions.

Map of index of axes and Table of indexes for certain axe, now used for eGRILLE_CARTESIENNE and eGRILLE_POLAIRE.

Return sub entity.

Vector of grille structure (Example: {3,4,5}, 3 nodes in X axe, 4 nodes in Y axe, ...)

Defines sequence MED Family indexes for corresponding mesh entites

Defines sequence MED Family indexes for sub entites

Defines sequence MED Family indexes for corresponding mesh nodes