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

ParaMEDMEM.MEDFileField1TS Class Reference

#include <MEDFileField.hxx>

Inheritance diagram for ParaMEDMEM.MEDFileField1TS:
Inheritance graph

Public Member Functions

void write (const char *fileName, int mode) const throw (INTERP_KERNEL::Exception)
void setFileName (const char *fileName)
MEDCouplingFieldDoublegetFieldAtLevel (TypeOfField type, int meshDimRelToMax, int renumPol=0) const throw (INTERP_KERNEL::Exception)
MEDCouplingFieldDoublegetFieldOnMeshAtLevel (TypeOfField type, int meshDimRelToMax, const MEDFileMesh *mesh, int renumPol=0) const throw (INTERP_KERNEL::Exception)
MEDCouplingFieldDoublegetFieldOnMeshAtLevel (TypeOfField type, const MEDCouplingMesh *mesh, int renumPol=0) const throw (INTERP_KERNEL::Exception)
MEDCouplingFieldDoublegetFieldAtLevelOld (TypeOfField type, const char *mname, int meshDimRelToMax, int renumPol=0) const throw (INTERP_KERNEL::Exception)
DataArrayDoublegetFieldWithProfile (TypeOfField type, int meshDimRelToMax, const MEDFileMesh *mesh, DataArrayInt *&pfl) const throw (INTERP_KERNEL::Exception)
void setFieldNoProfileSBT (const MEDCouplingFieldDouble *field) throw (INTERP_KERNEL::Exception)
void setFieldProfile (const MEDCouplingFieldDouble *field, const MEDFileMesh *mesh, int meshDimRelToMax, const DataArrayInt *profile) throw (INTERP_KERNEL::Exception)

Static Public Member Functions

static MEDFileField1TSNew (const char *fileName, const char *fieldName, int iteration, int order) throw (INTERP_KERNEL::Exception)
static MEDFileField1TSNew ()

Private Member Functions

std::vector< std::string > getPflsReallyUsed () const
std::vector< std::string > getLocsReallyUsed () const
 MEDFileField1TS (const char *fileName, const char *fieldName, int iteration, int order) throw (INTERP_KERNEL::Exception)
 MEDFileField1TS ()

Detailed Description

User class.


Constructor & Destructor Documentation

MEDFileField1TS::MEDFileField1TS ( const char *  fileName,
const char *  fieldName,
int  iteration,
int  order 
) throw (INTERP_KERNEL::Exception) [private]
MEDFileField1TS::MEDFileField1TS ( ) [private]

Member Function Documentation

MEDFileField1TS * MEDFileField1TS::New ( const char *  fileName,
const char *  fieldName,
int  iteration,
int  order 
) throw (INTERP_KERNEL::Exception) [static]
MEDFileField1TS * MEDFileField1TS::New ( ) [static]
void MEDFileField1TS::write ( const char *  fileName,
int  mode 
) const throw (INTERP_KERNEL::Exception)
void ParaMEDMEM.MEDFileField1TS.setFileName ( const char *  fileName)

Reimplemented from ParaMEDMEM.MEDFieldFieldGlobs.

MEDCouplingFieldDouble * MEDFileField1TS::getFieldAtLevel ( TypeOfField  type,
int  meshDimRelToMax,
int  renumPol = 0 
) const throw (INTERP_KERNEL::Exception)

This method requests underlying file to perform the job, for mesh reading. If the current instance is not coming from a file and has been constructed from scratch an exception will be thrown. In this case you should use MEDFileField1TS.getFieldOnMeshAtLevel method instead. WARNING ! Parameter 'meshDimRelToMax' is relative from read mesh in file that can be different from the field in MED file ! It leads that the returned field of this method is always coherent.

References ParaMEDMEM.MEDFileField1TSWithoutDAS.getFieldAtLevel(), and medClient_test.type.

MEDCouplingFieldDouble * MEDFileField1TS::getFieldOnMeshAtLevel ( TypeOfField  type,
int  meshDimRelToMax,
const MEDFileMesh mesh,
int  renumPol = 0 
) const throw (INTERP_KERNEL::Exception)

This method can be called whatever the mode of instance feeding of this (MED file or from scratch). But the parameter ''meshDimRelToMax' is applyied on 'mesh' (like MEDFileField1TS.getFieldAtLevel does). WARNING the dim of 'this' can be different from those in 'mesh' ! It leads that the returned field of this method is always coherent.

References ParaMEDMEM.MEDFileField1TSWithoutDAS.getFieldOnMeshAtLevel(), MED_test2.mesh, and medClient_test.type.

MEDCouplingFieldDouble * MEDFileField1TS::getFieldOnMeshAtLevel ( TypeOfField  type,
const MEDCouplingMesh mesh,
int  renumPol = 0 
) const throw (INTERP_KERNEL::Exception)

WARNING, there is a main difference with the two close methods (MEDFileField1TS.getFieldAtLevel and MEDFileField1TS.getFieldOnMeshAtLevel method) ! Here the mesh-dimension of 'mesh' is used by this to automatically request the right geoTypes regarding 'type'. If no such element fufilled the deduced dimension and 'type' an exception will be thrown. It leads that the returned field of this method is always coherent.

References ParaMEDMEM.MEDFileField1TSWithoutDAS.getFieldOnMeshAtLevel(), MED_test2.mesh, and medClient_test.type.

MEDCouplingFieldDouble * MEDFileField1TS::getFieldAtLevelOld ( TypeOfField  type,
const char *  mname,
int  meshDimRelToMax,
int  renumPol = 0 
) const throw (INTERP_KERNEL::Exception)

This method is identical to MEDFileField1TS.getFieldAtLevel method except that meshName 'mname' should be specified. This method is called "Old" because in MED3 norm a field has only one meshName attached. This method is only here for reader of MED2 files. See MEDFileField1TS.getFieldAtLevel for more information.

References ParaMEDMEM.MEDFileField1TSWithoutDAS.getFieldAtLevel(), and medClient_test.type.

DataArrayDouble * MEDFileField1TS::getFieldWithProfile ( TypeOfField  type,
int  meshDimRelToMax,
const MEDFileMesh mesh,
DataArrayInt *&  pfl 
) const throw (INTERP_KERNEL::Exception)
void MEDFileField1TS::setFieldNoProfileSBT ( const MEDCouplingFieldDouble field) throw (INTERP_KERNEL::Exception)

SBT means Sort By Type. This method is the most basic method to assign field in this. Basic in sense that no renumbering is done. Underlying mesh in 'field' is globaly ignored except for type contiguous check.

References MED_test2.field, and ParaMEDMEM.MEDFileField1TSWithoutDAS.setFieldNoProfileSBT().

void MEDFileField1TS::setFieldProfile ( const MEDCouplingFieldDouble field,
const MEDFileMesh mesh,
int  meshDimRelToMax,
const DataArrayInt profile 
) throw (INTERP_KERNEL::Exception)

This method is a generalization of MEDFileField1TS.setFieldNoProfileSBT method. Here a profile array is given in input. The support of field 'field' is not used by this method, so it can be null or incoherent with field. This method uses input parameters 'mesh', 'meshDimRelToMax' and 'profile' to determine what is really the support of field 'field'. If field is incoherent regarding this deduced support, an exception will be thrown. This method is trying to reduce the size of MEDfile file so profile is created only if it is absolutely necessary. If it is necessary the name of 'profile' will be used to create it in 'this'. In this case, if this profile name is empty an exception will be thrown.

References MED_test2.field, MED_test2.mesh, and ParaMEDMEM.MEDFileField1TSWithoutDAS.setFieldProfile().

std::vector< std::string > MEDFileField1TS::getPflsReallyUsed ( ) const [private, virtual]
std::vector< std::string > MEDFileField1TS::getLocsReallyUsed ( ) const [private, virtual]
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