Package MED


Data Structures

class  TCoordHelper
struct  TShapeFun
struct  TSeg2a
struct  TSeg3a
struct  TTria3a
struct  TTria6a
struct  TTria3b
struct  TTria6b
struct  TQuad4a
struct  TQuad8a
struct  TQuad4b
struct  TQuad8b
struct  TTetra4a
struct  TTetra10a
struct  TTetra4b
struct  TTetra10b
struct  THexa8a
struct  THexa20a
struct  THexa27a
struct  THexa8b
struct  THexa20b
struct  TPenta6a
struct  TPenta6b
struct  TPenta15a
struct  TPenta15b
struct  TPyra5a
struct  TPyra5b
struct  TPyra13a
struct  TPyra13b
class  TGaussCoord
 Define a helper class to handle Gauss Points coordinates. More...
class  SharedPtr
 To extend the boost.shared_ptr to support such features automatic dynamic cast. More...
class  TCSlice
 This class intends to provide an uniform way to handle multy-dimention data (const version). More...
class  TSlice
 This class extend TCSlice functionality for non-constant case. More...
struct  TBase
 Define a parent class for all MEDWrapper classes. More...
struct  TNameInfo
 Define a parent class for all named MED entities. More...
struct  TModeSwitchInfo
 Define a parent class for all MED entities that contains a sequence of numbers. More...
struct  TMeshInfo
 Define a base class which represents MED Mesh entity. More...
struct  TFamilyInfo
 Define a base class which represents MED Family entity. More...
struct  TElemInfo
 Define a parent class for all MED entities that describes mesh entites such as nodes and cells. More...
struct  TNodeInfo
 Define a base class which represents MED Nodes entity. More...
struct  TCellInfo
 Define a base class which represents MED Cells entity. More...
struct  TPolygoneInfo
 Define a base class which represents MED Polygon entity. More...
struct  TPolyedreInfo
 Define a base class which represents MED Polyedre entity. More...
struct  TFieldInfo
 Define a base class which represents MED Field entity. More...
struct  TGaussInfo
 The class represents MED Gauss entity. More...
struct  TTimeStampInfo
 Define a base class which represents MED TimeStamp. More...
struct  TProfileInfo
 The class represents MED Profile entity. More...
struct  TMeshValue
 The class is a helper one. It provide safe and flexible way to get access to values for a MED TimeStamp. More...
struct  TTimeStampVal
 The class implements a container for MED TimeStamp values. More...
struct  TGrilleInfo
 Define a base class which represents MED Grille. More...
struct  TTNameInfo
struct  TTMeshInfo
struct  TTFamilyInfo
struct  TTElemInfo
struct  TTNodeInfo
struct  TTPolygoneInfo
struct  TTPolyedreInfo
struct  TTCellInfo
struct  TTFieldInfo
struct  TTGaussInfo
struct  TTTimeStampInfo
struct  TTProfileInfo
struct  TTTimeStampVal
struct  TTGrilleInfo
class  TTWrapper
class  PrefixPrinter
class  TVector
 Main purpose to introduce the class was to customize operator []. More...
struct  TWrapper
 Define a base class that wraps the MED API. More...
class  TLockProxy
 This class provide thread-safety for MEDWrapper interaction. More...
class  SharedPtr< TWrapper >
 To specialize the SharedPtr for TWrapper. More...

Packages

package  V2_1
package  V2_2

Typedefs

typedef std::map< EGeometrieElement,
PElemInfo
TGeom2ElemInfo
typedef std::map< EEntiteMaillage,
TGeom2ElemInfo
TEntity2TGeom2ElemInfo
typedef std::set< PFamilyInfoTFamilyInfoSet
typedef boost::tuple< PFamilyInfo,
TInt > 
TFamilyTSize
typedef std::set< TFamilyTSizeTFamilyTSizeSet
typedef std::map< EEntiteMaillage,
TFamilyTSizeSet
TEntity2FamilySet
typedef std::map< std::string,
TFamilyInfoSet
TGroupInfo
typedef std::set< PTimeStampInfoTTimeStampInfoSet
typedef std::map< PFieldInfo,
TTimeStampInfoSet
TFieldInfo2TimeStampInfoSet
typedef std::map< EEntiteMaillage,
TFieldInfo2TimeStampInfoSet
TEntite2TFieldInfo2TimeStampInfoSet
typedef std::map< TGaussInfo::TKey,
PGaussInfo, TGaussInfo::TLess
TKey2Gauss
typedef std::map< TProfileInfo::TKey,
PProfileInfo
TKey2Profile
typedef boost::tuple< EModeProfil,
TKey2Profile
TMKey2Profile
typedef std::map< TInt, TInt > TFamilyID2NbCells
typedef double TFloat
typedef hid_t TIdt
typedef herr_t TErr
typedef TVector< TFloatTFloatVector
typedef TVector< std::string > TStringVector
typedef TVector< TInt > TIntVector
typedef std::set< std::string > TStringSet
typedef std::map< EGeometrieElement,
TInt > 
TGeom2Size
typedef std::map< EEntiteMaillage,
TGeom2Size
TEntityInfo
typedef std::set< EGeometrieElementTGeomSet
typedef std::map< EEntiteMaillage,
TGeomSet
TEntity2GeomSet
typedef SharedPtr< TNameInfoPNameInfo
typedef SharedPtr< TMeshInfoPMeshInfo
typedef SharedPtr< TFamilyInfoPFamilyInfo
typedef SharedPtr< TElemInfoPElemInfo
typedef SharedPtr< TNodeInfoPNodeInfo
typedef SharedPtr< TPolygoneInfoPPolygoneInfo
typedef SharedPtr< TPolyedreInfoPPolyedreInfo
typedef SharedPtr< TCellInfoPCellInfo
typedef SharedPtr< TFieldInfoPFieldInfo
typedef SharedPtr< TTimeStampInfoPTimeStampInfo
typedef SharedPtr< TProfileInfoPProfileInfo
typedef SharedPtr< TGaussInfoPGaussInfo
typedef SharedPtr< TGrilleInfoPGrilleInfo
typedef SharedPtr< TTimeStampValPTimeStampVal
typedef SharedPtr< TWrapperPWrapper
typedef TFloat(* TGetCoord )(const TCCoordSlice &theCoordSlice)
typedef SharedPtr< TCoordHelperPCoordHelper
typedef TVector< TCCoordSliceTCCoordSliceArr
typedef TVector< TCoordSliceTCoordSliceArr
typedef TVector< char > TString
 Defines a type for managing sequence of strings.
typedef TVector< TInt > TIntVector
typedef TSlice< TIntVectorTIntVecSlice
typedef TCSlice< TIntVectorTCIntVecSlice
typedef TIntVector TFamAttr
typedef TIntVector TElemNum
typedef TVector< TFloatTFloatVector
typedef TSlice< TFloatVectorTFloatVecSlice
typedef TCSlice< TFloatVectorTCFloatVecSlice
typedef TFloatVector TNodeCoord
typedef TFloatVecSlice TCoordSlice
typedef TCFloatVecSlice TCCoordSlice
typedef TIntVecSlice TConnSlice
typedef TCIntVecSlice TCConnSlice
typedef TVector< TCConnSliceTCConnSliceArr
typedef TVector< TConnSliceTConnSliceArr
typedef TFloatVector TWeight
typedef std::map< EGeometrieElement,
PGaussInfo
TGeom2Gauss
typedef std::map< EGeometrieElement,
TInt > 
TGeom2NbGauss
typedef TFloatVector TValue
typedef TSlice< TValueTValueSlice
typedef TCSlice< TValueTCValueSlice
typedef TVector< TCValueSliceTCValueSliceArr
typedef TVector< TValueSliceTValueSliceArr
typedef std::map< EGeometrieElement,
TMeshValue
TGeom2Value
typedef std::map< EGeometrieElement,
PProfileInfo
TGeom2Profile
typedef std::map< TInt, TFloatVectorTIndexes
typedef std::map< TInt, TStringTNames
typedef SharedPtr< TWrapperPWrapper

Enumerations

enum  EVersion { eVUnknown = -1, eV2_1, eV2_2 }
enum  EBooleen { eFAUX, eVRAI }
enum  EModeSwitch { eFULL_INTERLACE, eNO_INTERLACE }
enum  ETypeChamp { eFLOAT64 = 6, eINT = 26 }
enum  EMaillage { eNON_STRUCTURE, eSTRUCTURE }
enum  ERepere { eCART, eCYL, eSPHER }
enum  EConnectivite { eNOD, eDESC }
enum  EGeometrieElement {
  ePOINT1 = 1, eSEG2 = 102, eSEG3 = 103, eTRIA3 = 203,
  eQUAD4 = 204, eTRIA6 = 206, eQUAD8 = 208, eTETRA4 = 304,
  ePYRA5 = 305, ePENTA6 = 306, eHEXA8 = 308, eTETRA10 = 310,
  ePYRA13 = 313, ePENTA15 = 315, eHEXA20 = 320, ePOLYGONE = 400,
  ePOLYEDRE = 500, eNONE = 0
}
enum  EEntiteMaillage { eMAILLE, eFACE, eARETE, eNOEUD }
enum  EModeProfil { eNO_PFLMOD, eGLOBAL, eCOMPACT }
enum  EGrilleType { eGRILLE_CARTESIENNE, eGRILLE_POLAIRE, eGRILLE_STANDARD }
enum  ETable {
  eCOOR, eCONN, eNOM, eNUM,
  eFAM, eCOOR_IND1, eCOOR_IND2, eCOOR_IND3
}
enum  ECoordName { eX, eY, eZ, eNone }

Functions

 MED ()
 MED (driverTypes driverType, const string &fileName)
 ~MED ()
int addDriver (driverTypes driverType, const string &fileName="Default File Name.med", MED_EN::med_mode_acces access)
int addDriver (GENDRIVER &driver)
void rmDriver (int index) throw (MED_EXCEPTION)
void writeFrom (int index) throw (MED_EXCEPTION)
void write (int index) throw (MED_EXCEPTION)
void readFileStruct (int index) throw (MED_EXCEPTION)
void read (int index) throw (MED_EXCEPTION)
int getNumberOfMeshes (void) const
int getNumberOfFields (void) const
void getMeshNames (string *meshNames) const throw (MED_EXCEPTION)
deque< string > getMeshNames () const
MESHgetMesh (const string &meshName) const throw (MED_EXCEPTION)
MESHgetMesh (const FIELD_ *const field) const throw (MED_EXCEPTION)
void getFieldNames (string *fieldNames) const throw (MED_EXCEPTION)
deque< string > getFieldNames () const
deque< DT_IT_getFieldIteration (const string &fieldName) const throw (MED_EXCEPTION)
FIELD_getField (const string &fieldName, const int dt=MED_NOPDT, const int it=MED_NOPDT) const throw (MED_EXCEPTION)
FIELD_getField2 (const string &fieldName, double time, int it) const throw (MEDEXCEPTION)
const map< MED_EN::medEntityMesh,
SUPPORT * > & 
getSupports (const string &meshName) const throw (MED_EXCEPTION)
SUPPORTgetSupport (const string &meshName, MED_EN::medEntityMesh entity) const throw (MED_EXCEPTION)
void updateSupport ()
void addMesh (MESH *const ptrMesh) throw (MED_EXCEPTION)
void addField (FIELD_ *const ptrField) throw (MED_EXCEPTION)
template<class T>
FIELD< T > * getFieldT (const string &fieldName, const int dt, const int it) const throw (MEDEXCEPTION)
TEntity2TGeom2ElemInfo GetEntity2TGeom2ElemInfo (const PWrapper &theWrapper, const PMeshInfo &theMeshInfo, const MED::TEntityInfo &theEntityInfo)
 Get set of TElemInfo by its geometrical type and corresponding MED ENTITY.
TFamilyInfoSet GetFamilyInfoSet (const PWrapper &theWrapper, const PMeshInfo &theMeshInfo)
 Read set of MED FAMILIES for defined MED file.
TGroupInfo GetGroupInfo (const TFamilyInfoSet &theFamilyInfoSet)
 Split the input set of MED FAMILIES by corresponding MED GROUPS.
TFieldInfo2TimeStampInfoSet GetFieldInfo2TimeStampInfoSet (const PWrapper &theWrapper, const PMeshInfo &theMeshInfo, const MED::TEntityInfo &theEntityInfo)
 Read set of MED TIMESTAMPS groupped by corresponding MED FIELDS.
TEntite2TFieldInfo2TimeStampInfoSet GetEntite2TFieldInfo2TimeStampInfoSet (const TFieldInfo2TimeStampInfoSet &theFieldInfo2TimeStampInfoSet)
 Split the input set of MED TIMESTAMPS by corresponding MED FIELDS and MED ENTITIES.
bool operator< (const TFamilyTSize &theLeft, const TFamilyTSize &theRight)
TEntity2FamilySet GetEntity2FamilySet (const PWrapper &theWrapper, const TEntity2TGeom2ElemInfo &theEntity2TGeom2ElemInfo, const TFamilyInfoSet &theFamilyInfoSet)
 Split set of MED FAMILIES by corresponding MED ENTITY.
TKey2Gauss GetKey2Gauss (const PWrapper &theWrapper, TErr *theErr=NULL, EModeSwitch theMode=eFULL_INTERLACE)
 Read set of MED GAUSS.
PProfileInfo GetProfileInfo (const PWrapper &theWrapper, const std::string &theProfileName, TErr *theErr=NULL, EModeProfil theMode=eCOMPACT)
 Get MED PROFILE by its name.
TMKey2Profile GetMKey2Profile (const PWrapper &theWrapper, TErr *theErr=NULL, EModeProfil theMode=eCOMPACT)
 Read set of MED PROFILES.
EEntiteMaillage GetEntityByFamilyId (PGrilleInfo &theInfo, TInt theId)
 Get Entity for Grille by family id.
TFamilyID2NbCells GetFamilyID2NbCells (PGrilleInfo &theInfo)
 Get Number of cells for theId family, for Grille.
const TEntity2GeomSetGetEntity2GeomSet ()
template<EVersion >
TInt GetDESCLength ()
template<EVersion >
TInt GetIDENTLength ()
template<EVersion >
TInt GetNOMLength ()
template<EVersion >
TInt GetLNOMLength ()
template<EVersion >
TInt GetPNOMLength ()
template<EVersion >
TInt GetNbConn (EGeometrieElement typmai, EEntiteMaillage typent, TInt mdim)
TInt GetNbNodes (EGeometrieElement typmai)
template<ECoordName TCoordId>
TFloat GetCoord (const TCCoordSlice &theCoordSlice)
template<>
TFloat GetCoord< eNone > (const TCCoordSlice &theCoordSlice)
PCoordHelper GetCoordHelper (PNodeInfo theNodeInfo)
bool IsEqual (TFloat theLeft, TFloat theRight)
bool GetGaussCoord3D (const TGaussInfo &theGaussInfo, const TCellInfo &theCellInfo, const TNodeInfo &theNodeInfo, TGaussCoord &theGaussCoord, const TElemNum &theElemNum=TElemNum(), EModeSwitch theMode=eFULL_INTERLACE)
 To calculate Gauss Points coordinates.
bool GetBaryCenter (const TCellInfo &theCellInfo, const TNodeInfo &theNodeInfo, TGaussCoord &theGaussCoord, const TElemNum &theElemNum=TElemNum(), EModeSwitch theMode=eFULL_INTERLACE)
 To calculate Gauss Points coordinates for defined TCellInfo as its bary center.
bool GetBaryCenter (const TPolygoneInfo &thePolygoneInfo, const TNodeInfo &theNodeInfo, TGaussCoord &theGaussCoord, const TElemNum &theElemNum=TElemNum(), EModeSwitch theMode=eFULL_INTERLACE)
 To calculate Gauss Points coordinates for defined TPolygoneInfo as its bary center.
bool GetBaryCenter (const TPolyedreInfo &thePolyedreInfo, const TNodeInfo &theNodeInfo, TGaussCoord &theGaussCoord, const TElemNum &theElemNum=TElemNum(), EModeSwitch theMode=eFULL_INTERLACE)
 To calculate Gauss Points coordinates for defined TPolyedreInfo as its bary center.
std::string GetString (TInt theId, TInt theStep, const TString &theString)
 Extract a substring from the sequence of the strings.
void SetString (TInt theId, TInt theStep, TString &theString, const std::string &theValue)
 Set a substring in the sequence of the strings.
TInt GetDimGaussCoord (EGeometrieElement theGeom)
 Get dimension of the Gauss coordinates for the defined type of mesh cell.
TInt GetNbRefCoord (EGeometrieElement theGeom)
 Get number of referenced nodes for the defined type of mesh cell.
const MED::TEntity2GeomSetGetEntity2GeomSet ()
EVersion GetVersionId (const std::string &theFileName, bool theDoPreCheckInSeparateProcess)
PWrapper CrWrapper (const std::string &theFileName, bool theDoPreCheckInSeparateProcess)
PWrapper CrWrapper (const std::string &theFileName, EVersion theId)
template<>
TInt GetDESCLength< eV2_1 > ()
template<>
TInt GetIDENTLength< eV2_1 > ()
template<>
TInt GetLNOMLength< eV2_1 > ()
template<>
TInt GetNOMLength< eV2_1 > ()
template<>
TInt GetPNOMLength< eV2_1 > ()
template<>
TInt GetNbConn< eV2_1 > (EGeometrieElement typmai, EEntiteMaillage typent, TInt mdim)
template<>
TInt GetDESCLength< eV2_2 > ()
template<>
TInt GetIDENTLength< eV2_2 > ()
template<>
TInt GetNOMLength< eV2_2 > ()
template<>
TInt GetLNOMLength< eV2_2 > ()
template<>
TInt GetPNOMLength< eV2_2 > ()
template<>
TInt GetNbConn< eV2_2 > (EGeometrieElement typmai, EEntiteMaillage typent, TInt mdim)

Variables

TGetCoord aXYZGetCoord [3]
TGetCoord aXYGetCoord [3]
TGetCoord aYZGetCoord [3]
TGetCoord aXZGetCoord [3]
TGetCoord aXGetCoord [3]
TGetCoord aYGetCoord [3]
TGetCoord aZGetCoord [3]


Typedef Documentation

typedef std::map<EGeometrieElement,PElemInfo> MED.TGeom2ElemInfo
 

typedef std::map<EEntiteMaillage,TGeom2ElemInfo> MED.TEntity2TGeom2ElemInfo
 

typedef std::set<PFamilyInfo> MED.TFamilyInfoSet
 

typedef boost::tuple<PFamilyInfo,TInt> MED.TFamilyTSize
 

typedef std::set<TFamilyTSize> MED.TFamilyTSizeSet
 

typedef std::map<EEntiteMaillage,TFamilyTSizeSet> MED.TEntity2FamilySet
 

typedef std::map<std::string,TFamilyInfoSet> MED.TGroupInfo
 

typedef std::set<PTimeStampInfo> MED.TTimeStampInfoSet
 

typedef std::map<PFieldInfo,TTimeStampInfoSet> MED.TFieldInfo2TimeStampInfoSet
 

typedef std::map<EEntiteMaillage,TFieldInfo2TimeStampInfoSet> MED.TEntite2TFieldInfo2TimeStampInfoSet
 

typedef std::map<TGaussInfo::TKey,PGaussInfo,TGaussInfo::TLess> MED.TKey2Gauss
 

typedef std::map<TProfileInfo::TKey,PProfileInfo> MED.TKey2Profile
 

typedef boost::tuple<EModeProfil,TKey2Profile> MED.TMKey2Profile
 

typedef std::map<TInt,TInt> MED.TFamilyID2NbCells
 

typedef double MED.TFloat
 

typedef hid_t MED.TIdt
 

typedef herr_t MED.TErr
 

typedef TVector<TFloat> MED.TFloatVector
 

typedef TVector<std::string> MED.TStringVector
 

typedef TVector<TInt> MED.TIntVector
 

typedef std::set<std::string> MED.TStringSet
 

typedef std::map<EGeometrieElement,TInt> MED.TGeom2Size
 

typedef std::map<EEntiteMaillage,TGeom2Size> MED.TEntityInfo
 

typedef std::set<EGeometrieElement> MED.TGeomSet
 

typedef std::map<EEntiteMaillage,TGeomSet> MED.TEntity2GeomSet
 

typedef SharedPtr<TNameInfo> MED.PNameInfo
 

typedef SharedPtr<TMeshInfo> MED.PMeshInfo
 

typedef SharedPtr<TFamilyInfo> MED.PFamilyInfo
 

typedef SharedPtr<TElemInfo> MED.PElemInfo
 

typedef SharedPtr<TNodeInfo> MED.PNodeInfo
 

typedef SharedPtr<TPolygoneInfo> MED.PPolygoneInfo
 

typedef SharedPtr<TPolyedreInfo> MED.PPolyedreInfo
 

typedef SharedPtr<TCellInfo> MED.PCellInfo
 

typedef SharedPtr<TFieldInfo> MED.PFieldInfo
 

typedef SharedPtr<TTimeStampInfo> MED.PTimeStampInfo
 

typedef SharedPtr<TProfileInfo> MED.PProfileInfo
 

typedef SharedPtr<TGaussInfo> MED.PGaussInfo
 

typedef SharedPtr<TGrilleInfo> MED.PGrilleInfo
 

typedef SharedPtr<TTimeStampVal> MED.PTimeStampVal
 

typedef SharedPtr<TWrapper> MED.PWrapper
 

typedef TFloat(* MED.TGetCoord)(const TCCoordSlice &theCoordSlice)
 

typedef SharedPtr<TCoordHelper> MED.PCoordHelper
 

typedef TVector<TCCoordSlice> MED.TCCoordSliceArr
 

typedef TVector<TCoordSlice> MED.TCoordSliceArr
 

typedef TVector<char> MED.TString
 

Defines a type for managing sequence of strings.

typedef TVector<TInt> MED.TIntVector