Version: 5.1.6

MEDLoader Class Reference

#include <MEDLoader.hxx>

Data Structures

class  MEDConnOfOneElemType
class  MEDFieldDoublePerCellType

Public Member Functions

 MEDLoader ()

Static Public Member Functions

static void setEpsilonForNodeComp (double val) throw (INTERP_KERNEL::Exception)
static void setCompPolicyForCell (int val) throw (INTERP_KERNEL::Exception)
static void setTooLongStrPolicy (int val) throw (INTERP_KERNEL::Exception)
static void CheckFileForRead (const char *fileName) throw (INTERP_KERNEL::Exception)
static std::vector< std::string > GetMeshNames (const char *fileName) throw (INTERP_KERNEL::Exception)
static std::vector< std::string > GetMeshNamesOnField (const char *fileName, const char *fieldName) throw (INTERP_KERNEL::Exception)
static std::vector< std::string > GetMeshGroupsNames (const char *fileName, const char *meshName) throw (INTERP_KERNEL::Exception)
static std::vector< std::string > GetMeshFamiliesNames (const char *fileName, const char *meshName) throw (INTERP_KERNEL::Exception)
static std::vector< std::string > GetMeshFamiliesNamesOnGroup (const char *fileName, const char *meshName, const char *grpName) throw (INTERP_KERNEL::Exception)
static std::vector< std::string > GetMeshGroupsNamesOnFamily (const char *fileName, const char *meshName, const char *famName) throw (INTERP_KERNEL::Exception)
static std::vector< std::string > GetAllFieldNames (const char *fileName) throw (INTERP_KERNEL::Exception)
static std::vector< std::string > GetAllFieldNamesOnMesh (const char *fileName, const char *meshName) throw (INTERP_KERNEL::Exception)
static std::vector
< ParaMEDMEM::TypeOfField
GetTypesOfField (const char *fileName, const char *meshName, const char *fieldName) throw (INTERP_KERNEL::Exception)
static std::vector< std::string > GetFieldNamesOnMesh (ParaMEDMEM::TypeOfField type, const char *fileName, const char *meshName) throw (INTERP_KERNEL::Exception)
static std::vector< std::string > GetCellFieldNamesOnMesh (const char *fileName, const char *meshName) throw (INTERP_KERNEL::Exception)
static std::vector< std::string > GetNodeFieldNamesOnMesh (const char *fileName, const char *meshName) throw (INTERP_KERNEL::Exception)
static std::vector< std::pair
< int, int > > 
GetFieldIterations (ParaMEDMEM::TypeOfField type, const char *fileName, const char *meshName, const char *fieldName) throw (INTERP_KERNEL::Exception)
static std::vector< std::pair
< int, int > > 
GetCellFieldIterations (const char *fileName, const char *meshName, const char *fieldName) throw (INTERP_KERNEL::Exception)
static std::vector< std::pair
< int, int > > 
GetNodeFieldIterations (const char *fileName, const char *meshName, const char *fieldName) throw (INTERP_KERNEL::Exception)
static std::vector< std::pair
< std::pair< int, int >
, double > > 
GetAllFieldIterations (const char *fileName, const char *meshName, const char *fieldName) throw (INTERP_KERNEL::Exception)
static double GetTimeAttachedOnFieldIteration (const char *fileName, const char *fieldName, int iteration, int order) throw (INTERP_KERNEL::Exception)
static
ParaMEDMEM::MEDCouplingUMesh
ReadUMeshFromFamilies (const char *fileName, const char *meshName, int meshDimRelToMax, const std::vector< std::string > &fams) throw (INTERP_KERNEL::Exception)
static
ParaMEDMEM::MEDCouplingUMesh
ReadUMeshFromGroups (const char *fileName, const char *meshName, int meshDimRelToMax, const std::vector< std::string > &grps) throw (INTERP_KERNEL::Exception)
static
ParaMEDMEM::MEDCouplingUMesh
ReadUMeshFromFile (const char *fileName, const char *meshName, int meshDimRelToMax=0) throw (INTERP_KERNEL::Exception)
static
ParaMEDMEM::MEDCouplingUMesh
ReadUMeshFromFile (const char *fileName, int meshDimRelToMax=0) throw (INTERP_KERNEL::Exception)
static int ReadUMeshDimFromFile (const char *fileName, const char *meshName) throw (INTERP_KERNEL::Exception)
static
ParaMEDMEM::MEDCouplingFieldDouble
ReadField (ParaMEDMEM::TypeOfField type, const char *fileName, const char *meshName, int meshDimRelToMax, const char *fieldName, int iteration, int order) throw (INTERP_KERNEL::Exception)
static std::vector
< ParaMEDMEM::MEDCouplingFieldDouble * > 
ReadFieldsOnSameMesh (ParaMEDMEM::TypeOfField type, const char *fileName, const char *meshName, int meshDimRelToMax, const char *fieldName, const std::vector< std::pair< int, int > > &its) throw (INTERP_KERNEL::Exception)
static std::vector
< ParaMEDMEM::MEDCouplingFieldDouble * > 
ReadFieldsCellOnSameMesh (const char *fileName, const char *meshName, int meshDimRelToMax, const char *fieldName, const std::vector< std::pair< int, int > > &its) throw (INTERP_KERNEL::Exception)
static std::vector
< ParaMEDMEM::MEDCouplingFieldDouble * > 
ReadFieldsNodeOnSameMesh (const char *fileName, const char *meshName, int meshDimRelToMax, const char *fieldName, const std::vector< std::pair< int, int > > &its) throw (INTERP_KERNEL::Exception)
static std::vector
< ParaMEDMEM::MEDCouplingFieldDouble * > 
ReadFieldsGaussOnSameMesh (const char *fileName, const char *meshName, int meshDimRelToMax, const char *fieldName, const std::vector< std::pair< int, int > > &its) throw (INTERP_KERNEL::Exception)
static std::vector
< ParaMEDMEM::MEDCouplingFieldDouble * > 
ReadFieldsGaussNEOnSameMesh (const char *fileName, const char *meshName, int meshDimRelToMax, const char *fieldName, const std::vector< std::pair< int, int > > &its) throw (INTERP_KERNEL::Exception)
static
ParaMEDMEM::MEDCouplingFieldDouble
ReadFieldCell (const char *fileName, const char *meshName, int meshDimRelToMax, const char *fieldName, int iteration, int order) throw (INTERP_KERNEL::Exception)
static
ParaMEDMEM::MEDCouplingFieldDouble
ReadFieldNode (const char *fileName, const char *meshName, int meshDimRelToMax, const char *fieldName, int iteration, int order) throw (INTERP_KERNEL::Exception)
static
ParaMEDMEM::MEDCouplingFieldDouble
ReadFieldGauss (const char *fileName, const char *meshName, int meshDimRelToMax, const char *fieldName, int iteration, int order) throw (INTERP_KERNEL::Exception)
static
ParaMEDMEM::MEDCouplingFieldDouble
ReadFieldGaussNE (const char *fileName, const char *meshName, int meshDimRelToMax, const char *fieldName, int iteration, int order) throw (INTERP_KERNEL::Exception)
static void WriteUMesh (const char *fileName, const ParaMEDMEM::MEDCouplingUMesh *mesh, bool writeFromScratch) throw (INTERP_KERNEL::Exception)
static void WriteUMeshDep (const char *fileName, const ParaMEDMEM::MEDCouplingUMesh *mesh, bool writeFromScratch) throw (INTERP_KERNEL::Exception)
static void WriteUMeshesPartition (const char *fileName, const char *meshName, const std::vector< const ParaMEDMEM::MEDCouplingUMesh * > &meshes, bool writeFromScratch) throw (INTERP_KERNEL::Exception)
static void WriteUMeshesPartitionDep (const char *fileName, const char *meshName, const std::vector< const ParaMEDMEM::MEDCouplingUMesh * > &meshes, bool writeFromScratch) throw (INTERP_KERNEL::Exception)
static void WriteUMeshes (const char *fileName, const std::vector< const ParaMEDMEM::MEDCouplingUMesh * > &meshes, bool writeFromScratch) throw (INTERP_KERNEL::Exception)
static void WriteField (const char *fileName, const ParaMEDMEM::MEDCouplingFieldDouble *f, bool writeFromScratch) throw (INTERP_KERNEL::Exception)
static void WriteFieldDep (const char *fileName, const ParaMEDMEM::MEDCouplingFieldDouble *f, bool writeFromScratch) throw (INTERP_KERNEL::Exception)
static void WriteFieldUsingAlreadyWrittenMesh (const char *fileName, const ParaMEDMEM::MEDCouplingFieldDouble *f) throw (INTERP_KERNEL::Exception)

Static Public Attributes

static double _EPS_FOR_NODE_COMP = 1.e-12
static int _COMP_FOR_CELL = 0
static int _TOO_LONG_STR = 0

Constructor & Destructor Documentation

MEDLoader.MEDLoader (  ) 

Member Function Documentation

void MEDLoader::setEpsilonForNodeComp ( double  val  )  throw (INTERP_KERNEL::Exception) [static]

This method sets the epsilon value used for node comparison when trying to buid a profile for a field on node/cell on an already written mesh.

void MEDLoader::setCompPolicyForCell ( int  val  )  throw (INTERP_KERNEL::Exception) [static]

This method sets the policy comparison when trying to fit the already written mesh on a field. The semantic of the policy is specified in MEDCouplingUMesh.zipConnectivityTraducer.

void MEDLoader::setTooLongStrPolicy ( int  val  )  throw (INTERP_KERNEL::Exception) [static]

This method set the behaviour of MEDLoader when a too long string is seen in datastructure before copy it in MED file. By default (0) an exception is thrown. If equal to 1 a warning is emitted in std_err but no exception is thrown.

void MEDLoader::CheckFileForRead ( const char *  fileName  )  throw (INTERP_KERNEL::Exception) [static]
std::vector< std::string > MEDLoader::GetMeshNames ( const char *  fileName  )  throw (INTERP_KERNEL::Exception) [static]
std::vector< std::string > MEDLoader::GetMeshNamesOnField ( const char *  fileName,
const char *  fieldName 
) throw (INTERP_KERNEL::Exception) [static]
std::vector< std::string > MEDLoader::GetMeshGroupsNames ( const char *  fileName,
const char *  meshName 
) throw (INTERP_KERNEL::Exception) [static]
std::vector< std::string > MEDLoader::GetMeshFamiliesNames ( const char *  fileName,
const char *  meshName 
) throw (INTERP_KERNEL::Exception) [static]
std::vector< std::string > MEDLoader::GetMeshFamiliesNamesOnGroup ( const char *  fileName,
const char *  meshName,
const char *  grpName 
) throw (INTERP_KERNEL::Exception) [static]
std::vector< std::string > MEDLoader::GetMeshGroupsNamesOnFamily ( const char *  fileName,
const char *  meshName,
const char *  famName 
) throw (INTERP_KERNEL::Exception) [static]
std::vector< std::string > MEDLoader::GetAllFieldNames ( const char *  fileName  )  throw (INTERP_KERNEL::Exception) [static]
std::vector< std::string > MEDLoader::GetAllFieldNamesOnMesh ( const char *  fileName,
const char *  meshName 
) throw (INTERP_KERNEL::Exception) [static]
std::vector< ParaMEDMEM::TypeOfField > MEDLoader::GetTypesOfField ( const char *  fileName,
const char *  meshName,
const char *  fieldName 
) throw (INTERP_KERNEL::Exception) [static]
std::vector< std::string > MEDLoader::GetFieldNamesOnMesh ( ParaMEDMEM::TypeOfField  type,
const char *  fileName,
const char *  meshName 
) throw (INTERP_KERNEL::Exception) [static]
std::vector< std::string > MEDLoader::GetCellFieldNamesOnMesh ( const char *  fileName,
const char *  meshName 
) throw (INTERP_KERNEL::Exception) [static]
std::vector< std::string > MEDLoader::GetNodeFieldNamesOnMesh ( const char *  fileName,
const char *  meshName 
) throw (INTERP_KERNEL::Exception) [static]
std::vector< std::pair< int, int > > MEDLoader::GetFieldIterations ( ParaMEDMEM::TypeOfField  type,
const char *  fileName,
const char *  meshName,
const char *  fieldName 
) throw (INTERP_KERNEL::Exception) [static]
std::vector< std::pair< int, int > > MEDLoader::GetCellFieldIterations ( const char *  fileName,
const char *  meshName,
const char *  fieldName 
) throw (INTERP_KERNEL::Exception) [static]
std::vector< std::pair< int, int > > MEDLoader::GetNodeFieldIterations ( const char *  fileName,
const char *  meshName,
const char *  fieldName 
) throw (INTERP_KERNEL::Exception) [static]
std::vector< std::pair< std::pair< int, int >, double > > MEDLoader::GetAllFieldIterations ( const char *  fileName,
const char *  meshName,
const char *  fieldName 
) throw (INTERP_KERNEL::Exception) [static]
double MEDLoader::GetTimeAttachedOnFieldIteration ( const char *  fileName,
const char *  fieldName,
int  iteration,
int  order 
) throw (INTERP_KERNEL::Exception) [static]
ParaMEDMEM::MEDCouplingUMesh * MEDLoader::ReadUMeshFromFamilies ( const char *  fileName,
const char *  meshName,
int  meshDimRelToMax,
const std::vector< std::string > &  fams 
) throw (INTERP_KERNEL::Exception) [static]
ParaMEDMEM::MEDCouplingUMesh * MEDLoader::ReadUMeshFromGroups ( const char *  fileName,
const char *  meshName,
int  meshDimRelToMax,
const std::vector< std::string > &  grps 
) throw (INTERP_KERNEL::Exception) [static]
MEDCouplingUMesh * MEDLoader::ReadUMeshFromFile ( const char *  fileName,
const char *  meshName,
int  meshDimRelToMax = 0 
) throw (INTERP_KERNEL::Exception) [static]
ParaMEDMEM::MEDCouplingUMesh * MEDLoader::ReadUMeshFromFile ( const char *  fileName,
int  meshDimRelToMax = 0 
) throw (INTERP_KERNEL::Exception) [static]
int MEDLoader::ReadUMeshDimFromFile ( const char *  fileName,
const char *  meshName 
) throw (INTERP_KERNEL::Exception) [static]
ParaMEDMEM::MEDCouplingFieldDouble * MEDLoader::ReadField ( ParaMEDMEM::TypeOfField  type,
const char *  fileName,
const char *  meshName,
int  meshDimRelToMax,
const char *  fieldName,
int  iteration,
int  order 
) throw (INTERP_KERNEL::Exception) [static]
std::vector< ParaMEDMEM::MEDCouplingFieldDouble * > MEDLoader::ReadFieldsOnSameMesh ( ParaMEDMEM::TypeOfField  type,
const char *  fileName,
const char *  meshName,
int  meshDimRelToMax,
const char *  fieldName,
const std::vector< std::pair< int, int > > &  its 
) throw (INTERP_KERNEL::Exception) [static]
std::vector< ParaMEDMEM::MEDCouplingFieldDouble * > MEDLoader::ReadFieldsCellOnSameMesh ( const char *  fileName,
const char *  meshName,
int  meshDimRelToMax,
const char *  fieldName,
const std::vector< std::pair< int, int > > &  its 
) throw (INTERP_KERNEL::Exception) [static]
std::vector< ParaMEDMEM::MEDCouplingFieldDouble * > MEDLoader::ReadFieldsNodeOnSameMesh ( const char *  fileName,
const char *  meshName,
int  meshDimRelToMax,
const char *  fieldName,
const std::vector< std::pair< int, int > > &  its 
) throw (INTERP_KERNEL::Exception) [static]
std::vector< ParaMEDMEM::MEDCouplingFieldDouble * > MEDLoader::ReadFieldsGaussOnSameMesh ( const char *  fileName,
const char *  meshName,
int  meshDimRelToMax,
const char *  fieldName,
const std::vector< std::pair< int, int > > &  its 
) throw (INTERP_KERNEL::Exception) [static]
std::vector< ParaMEDMEM::MEDCouplingFieldDouble * > MEDLoader::ReadFieldsGaussNEOnSameMesh ( const char *  fileName,
const char *  meshName,
int  meshDimRelToMax,
const char *  fieldName,
const std::vector< std::pair< int, int > > &  its 
) throw (INTERP_KERNEL::Exception) [static]
ParaMEDMEM::MEDCouplingFieldDouble * MEDLoader::ReadFieldCell ( const char *  fileName,
const char *  meshName,
int  meshDimRelToMax,
const char *  fieldName,
int  iteration,
int  order 
) throw (INTERP_KERNEL::Exception) [static]
ParaMEDMEM::MEDCouplingFieldDouble * MEDLoader::ReadFieldNode ( const char *  fileName,
const char *  meshName,
int  meshDimRelToMax,
const char *  fieldName,
int  iteration,
int  order 
) throw (INTERP_KERNEL::Exception) [static]
ParaMEDMEM::MEDCouplingFieldDouble * MEDLoader::ReadFieldGauss ( const char *  fileName,
const char *  meshName,
int  meshDimRelToMax,
const char *  fieldName,
int  iteration,
int  order 
) throw (INTERP_KERNEL::Exception) [static]
ParaMEDMEM::MEDCouplingFieldDouble * MEDLoader::ReadFieldGaussNE ( const char *  fileName,
const char *  meshName,
int  meshDimRelToMax,
const char *  fieldName,
int  iteration,
int  order 
) throw (INTERP_KERNEL::Exception) [static]
void MEDLoader::WriteUMesh ( const char *  fileName,
const ParaMEDMEM::MEDCouplingUMesh mesh,
bool  writeFromScratch 
) throw (INTERP_KERNEL::Exception) [static]
void MEDLoader::WriteUMeshDep ( const char *  fileName,
const ParaMEDMEM::MEDCouplingUMesh mesh,
bool  writeFromScratch 
) throw (INTERP_KERNEL::Exception) [static]
void MEDLoader::WriteUMeshesPartition ( const char *  fileName,
const char *  meshName,
const std::vector< const ParaMEDMEM::MEDCouplingUMesh * > &  meshes,
bool  writeFromScratch 
) throw (INTERP_KERNEL::Exception) [static]
void MEDLoader::WriteUMeshesPartitionDep ( const char *  fileName,
const char *  meshName,
const std::vector< const ParaMEDMEM::MEDCouplingUMesh * > &  meshes,
bool  writeFromScratch 
) throw (INTERP_KERNEL::Exception) [static]
void MEDLoader::WriteUMeshes ( const char *  fileName,
const std::vector< const ParaMEDMEM::MEDCouplingUMesh * > &  meshes,
bool  writeFromScratch 
) throw (INTERP_KERNEL::Exception) [static]
void MEDLoader::WriteField ( const char *  fileName,
const ParaMEDMEM::MEDCouplingFieldDouble f,
bool  writeFromScratch 
) throw (INTERP_KERNEL::Exception) [static]
void MEDLoader::WriteFieldDep ( const char *  fileName,
const ParaMEDMEM::MEDCouplingFieldDouble f,
bool  writeFromScratch 
) throw (INTERP_KERNEL::Exception) [static]
void MEDLoader::WriteFieldUsingAlreadyWrittenMesh ( const char *  fileName,
const ParaMEDMEM::MEDCouplingFieldDouble f 
) throw (INTERP_KERNEL::Exception) [static]

Field Documentation