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

Public Member Functions

void appendFieldNoProfileSBT (const MEDCouplingFieldInt *field)
 
void appendFieldProfile (const MEDCouplingFieldInt *field, const MEDFileMesh *mesh, int meshDimRelToMax, const DataArrayInt *profile)
 
MEDFileIntFieldMultiTSbuildNewEmpty () const
 
void checkCoherencyOfType (const MEDFileAnyTypeField1TS *f1ts) const
 
MEDFileFieldMultiTSconvertToDouble (bool isDeepCpyGlobs=true) const
 
MEDCouplingFieldIntfield (int iteration, int order, const MEDFileMesh *mesh) const
 
MEDCouplingFieldIntgetFieldAtLevel (TypeOfField type, int iteration, int order, int meshDimRelToMax, int renumPol=0) const
 
MEDCouplingFieldIntgetFieldAtLevelOld (TypeOfField type, int iteration, int order, const std::string &mname, int meshDimRelToMax, int renumPol=0) const
 
MEDCouplingFieldIntgetFieldAtTopLevel (TypeOfField type, int iteration, int order, int renumPol=0) const
 
MEDCouplingFieldIntgetFieldOnMeshAtLevel (TypeOfField type, int iteration, int order, int meshDimRelToMax, const MEDFileMesh *mesh, int renumPol=0) const
 
MEDCouplingFieldIntgetFieldOnMeshAtLevel (TypeOfField type, int iteration, int order, const MEDCouplingMesh *mesh, int renumPol=0) const
 
DataArrayIntgetFieldWithProfile (TypeOfField type, int iteration, int order, int meshDimRelToMax, const MEDFileMesh *mesh, DataArrayInt *&pfl) const
 
MEDFileIntField1TSgetTimeStepAtPos (int pos) const
 
DataArrayIntgetUndergroundDataArray (int iteration, int order) const
 
MEDFileAnyTypeFieldMultiTSshallowCpy () const
 
- Public Member Functions inherited from MEDCoupling::MEDFileAnyTypeFieldMultiTS
MEDFileAnyTypeFieldMultiTSbuildSubPart (const int *startIds, const int *endIds) const
 
MEDFileAnyTypeFieldMultiTSbuildSubPartSlice (int bg, int end, int step) const
 
void changeLocsRefsNamesGen (const std::vector< std::pair< std::vector< std::string >, std::string > > &mapOfModif)
 
bool changeMeshNames (const std::vector< std::pair< std::string, std::string > > &modifTab)
 
void changePflsRefsNamesGen (const std::vector< std::pair< std::vector< std::string >, std::string > > &mapOfModif)
 
virtual
MEDFileAnyTypeFieldMultiTS
deepCopy () const
 
void eraseEmptyTS ()
 
void eraseTimeStepIds (const int *startIds, const int *endIds)
 
void eraseTimeStepIds2 (int bg, int end, int step)
 
MEDFileAnyTypeFieldMultiTSextractPart (const std::map< int, MCAuto< DataArrayInt > > &extractDef, MEDFileMesh *mm) const
 
MCAuto
< MEDFileAnyTypeFieldMultiTSWithoutSDA
getContent ()
 
std::vector< const
BigMemoryObject * > 
getDirectChildrenWithNull () const
 
std::string getDtUnit () const
 
std::vector< std::vector
< std::pair< int, int > > > 
getFieldSplitedByType (int iteration, int order, const std::string &mname, std::vector< INTERP_KERNEL::NormalizedCellType > &types, std::vector< std::vector< TypeOfField > > &typesF, std::vector< std::vector< std::string > > &pfls, std::vector< std::vector< std::string > > &locs) const
 
std::size_t getHeapMemorySizeWithoutChildren () const
 
const std::vector< std::string > & getInfo () const
 
std::vector< std::pair< int,
int > > 
getIterations () const
 
std::vector< std::string > getLocsReallyUsed () const
 
std::vector< std::string > getLocsReallyUsedMulti () const
 
std::string getMeshName () const
 
std::string getName () const
 
int getNonEmptyLevels (int iteration, int order, const std::string &mname, std::vector< int > &levs) const
 
int getNumberOfComponents () const
 
int getNumberOfTS () const
 
std::vector< std::string > getPflsReallyUsed () const
 
std::vector< std::string > getPflsReallyUsedMulti () const
 
int getPosGivenTime (double time, double eps=1e-8) const
 
int getPosOfTimeStep (int iteration, int order) const
 
MEDFileAnyTypeField1TSgetTimeStep (int iteration, int order) const
 
MEDFileAnyTypeField1TSgetTimeStepGivenTime (double time, double eps=1e-8) const
 
std::vector< std::pair< int,
int > > 
getTimeSteps (std::vector< double > &ret1) const
 
std::vector< std::vector
< TypeOfField > > 
getTypesOfFieldAvailable () const
 
MEDFileAnyTypeFieldMultiTSIteratoriterator ()
 
void loadArrays ()
 
void loadArraysIfNecessary ()
 
bool presenceOfMultiDiscPerGeoType () const
 
void pushBackTimeStep (MEDFileAnyTypeField1TS *f1ts)
 
void pushBackTimeSteps (const std::vector< MEDFileAnyTypeField1TS * > &f1ts)
 
void pushBackTimeSteps (MEDFileAnyTypeFieldMultiTS *fmts)
 
void setDtUnit (const std::string &dtUnit)
 
void setInfo (const std::vector< std::string > &info)
 
void setMeshName (const std::string &newMeshName)
 
void setName (const std::string &name)
 
std::string simpleRepr () const
 
void simpleRepr (int bkOffset, std::ostream &oss, int fmtsId) const
 
std::vector< MCAuto
< MEDFileAnyTypeFieldMultiTS > > 
splitComponents () const
 
std::vector< MCAuto
< MEDFileAnyTypeFieldMultiTS > > 
splitDiscretizations () const
 
std::vector< MCAuto
< MEDFileAnyTypeFieldMultiTS > > 
splitMultiDiscrPerGeoTypes () const
 
void synchronizeNameScope ()
 
void unloadArrays ()
 
void unloadArraysWithoutDataLoss ()
 
void writeLL (med_idt fid) const
 
- Public Member Functions inherited from MEDCoupling::MEDFileFieldGlobsReal
void appendGlobs (const MEDFileFieldGlobsReal &other, double eps)
 
void appendLoc (const std::string &locName, INTERP_KERNEL::NormalizedCellType geoType, const std::vector< double > &refCoo, const std::vector< double > &gsCoo, const std::vector< double > &w)
 
void appendProfile (DataArrayInt *pfl)
 
void changeLocName (const std::string &oldName, const std::string &newName)
 
void changeLocsNames (const std::vector< std::pair< std::vector< std::string >, std::string > > &mapOfModif)
 
void changeLocsNamesInStruct (const std::vector< std::pair< std::vector< std::string >, std::string > > &mapOfModif)
 
void changePflName (const std::string &oldName, const std::string &newName)
 
void changePflsNames (const std::vector< std::pair< std::vector< std::string >, std::string > > &mapOfModif)
 
void changePflsNamesInStruct (const std::vector< std::pair< std::vector< std::string >, std::string > > &mapOfModif)
 
void checkGlobsCoherency () const
 
void checkGlobsLocsPartCoherency () const
 
void checkGlobsPflsPartCoherency () const
 
std::string createNewNameOfLoc () const
 
std::string createNewNameOfPfl () const
 
void deepCpyGlobs (const MEDFileFieldGlobsReal &other)
 
void deepCpyOnlyUsedGlobs (const MEDFileFieldGlobsReal &other)
 
bool existsLoc (const std::string &locName) const
 
bool existsPfl (const std::string &pflName) const
 
std::vector< const
BigMemoryObject * > 
getDirectChildrenWithNull () const
 
std::string getFileName () const
 
std::size_t getHeapMemorySizeWithoutChildren () const
 
const MEDFileFieldLocgetLocalization (const std::string &locName) const
 
MEDFileFieldLocgetLocalization (const std::string &locName)
 
const MEDFileFieldLocgetLocalizationFromId (int locId) const
 
MEDFileFieldLocgetLocalizationFromId (int locId)
 
int getLocalizationId (const std::string &loc) const
 
std::vector< std::string > getLocs () const
 
int getNbOfGaussPtPerCell (int locId) const
 
std::vector< std::string > getPfls () const
 
const DataArrayIntgetProfile (const std::string &pflName) const
 
DataArrayIntgetProfile (const std::string &pflName)
 
const DataArrayIntgetProfileFromId (int pflId) const
 
DataArrayIntgetProfileFromId (int pflId)
 
void killLocalizationIds (const std::vector< int > &locIds)
 
void killProfileIds (const std::vector< int > &pflIds)
 
void killStructureElementsInGlobs ()
 
void loadAllGlobals (med_idt fid, const MEDFileEntities *entities=0)
 
void loadGlobals (med_idt fid)
 
void loadProfileInFile (med_idt fid, int id, const std::string &pflName)
 
void loadProfileInFile (med_idt fid, int id)
 
 MEDFileFieldGlobsReal (med_idt fid)
 
 MEDFileFieldGlobsReal ()
 
void resetContent ()
 
void setFileName (const std::string &fileName)
 
void shallowCpyGlobs (const MEDFileFieldGlobsReal &other)
 
void shallowCpyOnlyUsedGlobs (const MEDFileFieldGlobsReal &other)
 
void simpleReprGlobs (std::ostream &oss) const
 
std::vector< std::vector< int > > whichAreEqualLocs (double eps) const
 
std::vector< std::vector< int > > whichAreEqualProfiles () const
 
void writeGlobals (med_idt fid, const MEDFileWritable &opt) const
 
std::vector< std::pair
< std::vector< std::string >
, std::string > > 
zipLocsNames (double eps)
 
std::vector< std::pair
< std::vector< std::string >
, std::string > > 
zipPflsNames ()
 
virtual ~MEDFileFieldGlobsReal ()
 

Static Public Member Functions

static MEDFileIntFieldMultiTSLoadSpecificEntities (const std::string &fileName, const std::string &fieldName, const std::vector< std::pair< TypeOfField, INTERP_KERNEL::NormalizedCellType > > &entities, bool loadAll=true)
 
static MEDFileIntFieldMultiTSNew ()
 
static MEDFileIntFieldMultiTSNew (const std::string &fileName, bool loadAll=true)
 
static MEDFileIntFieldMultiTSNew (med_idt fid, bool loadAll=true)
 
static MEDFileIntFieldMultiTSNew (DataArrayByte *db)
 
static MEDFileIntFieldMultiTSNew (const std::string &fileName, const std::string &fieldName, bool loadAll=true)
 
static MEDFileIntFieldMultiTSNew (med_idt fid, const std::string &fieldName, bool loadAll=true)
 
static MEDFileIntFieldMultiTSNew (const MEDFileIntFieldMultiTSWithoutSDA &other, bool shallowCopyOfContent)
 
- Static Public Member Functions inherited from MEDCoupling::MEDFileAnyTypeFieldMultiTS
static MCAuto
< MEDFileAnyTypeFieldMultiTS
Aggregate (const std::vector< const MEDFileAnyTypeFieldMultiTS * > &fmtss, const std::vector< std::vector< std::pair< int, int > > > &dts)
 
static MEDFileAnyTypeFieldMultiTSBuildNewInstanceFromContent (MEDFileAnyTypeFieldMultiTSWithoutSDA *c)
 
static int CheckSupportAcrossTime (MEDFileAnyTypeFieldMultiTS *f0, MEDFileAnyTypeFieldMultiTS *f1, const MEDFileMesh *mesh, TypeOfField &tof0, TypeOfField &tof1)
 
static MEDFileAnyTypeFieldMultiTSNew (const std::string &fileName, bool loadAll=true)
 
static MEDFileAnyTypeFieldMultiTSNew (med_idt fid, bool loadAll=true)
 
static MEDFileAnyTypeFieldMultiTSNew (const std::string &fileName, const std::string &fieldName, bool loadAll=true)
 
static MEDFileAnyTypeFieldMultiTSNew (med_idt fid, const std::string &fieldName, bool loadAll=true)
 
static std::vector
< std::vector
< MEDFileAnyTypeFieldMultiTS * > > 
SplitIntoCommonTimeSeries (const std::vector< MEDFileAnyTypeFieldMultiTS * > &vectFMTS)
 
static std::vector
< std::vector
< MEDFileAnyTypeFieldMultiTS * > > 
SplitPerCommonSupport (const std::vector< MEDFileAnyTypeFieldMultiTS * > &vectFMTS, const MEDFileMesh *mesh, std::vector< MCAuto< MEDFileFastCellSupportComparator > > &fsc)
 

Additional Inherited Members

- Protected Member Functions inherited from MEDCoupling::MEDFileAnyTypeFieldMultiTS
MEDFileAnyTypeFieldMultiTSWithoutSDAcontentNotNullBase ()
 
const
MEDFileAnyTypeFieldMultiTSWithoutSDA
contentNotNullBase () const
 
 MEDFileAnyTypeFieldMultiTS ()
 
 MEDFileAnyTypeFieldMultiTS (med_idt fid, bool loadAll, const MEDFileMeshes *ms)
 
 MEDFileAnyTypeFieldMultiTS (med_idt fid, const std::string &fieldName, bool loadAll, const MEDFileMeshes *ms, const MEDFileEntities *entities=0)
 
 MEDFileAnyTypeFieldMultiTS (const MEDFileAnyTypeFieldMultiTSWithoutSDA &other, bool shallowCopyOfContent)
 
- Static Protected Member Functions inherited from MEDCoupling::MEDFileAnyTypeFieldMultiTS
static
MEDFileAnyTypeFieldMultiTSWithoutSDA
BuildContentFrom (med_idt fid, bool loadAll, const MEDFileMeshes *ms)
 
static
MEDFileAnyTypeFieldMultiTSWithoutSDA
BuildContentFrom (med_idt fid, const std::string &fieldName, bool loadAll, const MEDFileMeshes *ms, const MEDFileEntities *entities)
 
static MEDFileAnyTypeFieldMultiTSBuildNewInstanceFromContent (MEDFileAnyTypeFieldMultiTSWithoutSDA *c, med_idt fid)
 
- Protected Attributes inherited from MEDCoupling::MEDFileAnyTypeFieldMultiTS
MCAuto
< MEDFileAnyTypeFieldMultiTSWithoutSDA
_content
 

Detailed Description

User class.

Member Function Documentation

MEDFileIntFieldMultiTS * MEDFileIntFieldMultiTS::New ( )
static
MEDFileIntFieldMultiTS * MEDFileIntFieldMultiTS::New ( const std::string &  fileName,
bool  loadAll = true 
)
static

Returns a new instance of MEDFileIntFieldMultiTS holding data of the first field that has been read from a specified MED file.

Parameters
[in]fileName- the name of the MED file to read.
Returns
MEDFileFieldMultiTS * - a new instance of MEDFileIntFieldMultiTS. The caller is to delete this field using decrRef() as it is no more needed.
Exceptions
Ifreading the file fails.

References New().

MEDFileIntFieldMultiTS * MEDFileIntFieldMultiTS::New ( med_idt  fid,
bool  loadAll = true 
)
static
static MEDFileIntFieldMultiTS* MEDCoupling::MEDFileIntFieldMultiTS::New ( DataArrayByte db)
static
MEDFileIntFieldMultiTS * MEDFileIntFieldMultiTS::New ( const std::string &  fileName,
const std::string &  fieldName,
bool  loadAll = true 
)
static

Returns a new instance of MEDFileIntFieldMultiTS holding data of a given field that has been read from a specified MED file.

Parameters
[in]fileName- the name of the MED file to read.
[in]fieldName- the name of the field to read.
Returns
MEDFileFieldMultiTS * - a new instance of MEDFileIntFieldMultiTS. The caller is to delete this field using decrRef() as it is no more needed.
Exceptions
Ifreading the file fails.
Ifthere is no field named fieldName in the file.

References New().

MEDFileIntFieldMultiTS * MEDFileIntFieldMultiTS::New ( med_idt  fid,
const std::string &  fieldName,
bool  loadAll = true 
)
static
MEDFileIntFieldMultiTS * MEDFileIntFieldMultiTS::New ( const MEDFileIntFieldMultiTSWithoutSDA other,
bool  shallowCopyOfContent 
)
static

Returns a new instance of MEDFileIntFieldMultiTS. If shallowCopyOfContent is true the content of other is shallow copied. If shallowCopyOfContent is false, other is taken to be the content of this.

Returns a new instance of MEDFileIntFieldMultiTS holding either a shallow copy of a given MEDFileIntFieldMultiTSWithoutSDA ( other ) or other itself.

Warning
this is a shallow copy constructor
Parameters
[in]other- a MEDFileIntField1TSWithoutSDA to copy.
[in]shallowCopyOfContent- if true, a shallow copy of other is created.
Returns
MEDFileIntFieldMultiTS * - a new instance of MEDFileIntFieldMultiTS. The caller is to delete this field using decrRef() as it is no more needed.
MEDFileIntFieldMultiTS * MEDFileIntFieldMultiTS::LoadSpecificEntities ( const std::string &  fileName,
const std::string &  fieldName,
const std::vector< std::pair< TypeOfField, INTERP_KERNEL::NormalizedCellType > > &  entities,
bool  loadAll = true 
)
static
MEDFileAnyTypeFieldMultiTS * MEDFileIntFieldMultiTS::shallowCpy ( ) const
virtual
void MEDFileIntFieldMultiTS::checkCoherencyOfType ( const MEDFileAnyTypeField1TS f1ts) const
virtual
MEDFileIntField1TS * MEDFileIntFieldMultiTS::getTimeStepAtPos ( int  pos) const
virtual

Returns a new MEDFileIntField1TS holding data of a given time step of this field.

Parameters
[in]pos- a time step id.
Returns
MEDFileIntField1TS * - a new instance of MEDFileIntField1TS. The caller is to delete this field using decrRef() as it is no more needed.
Exceptions
Ifpos is not a valid time step id.

Implements MEDCoupling::MEDFileAnyTypeFieldMultiTS.

References MEDCoupling::MEDFileAnyTypeFieldMultiTS::contentNotNullBase(), MEDCoupling::MEDFileAnyTypeFieldMultiTSWithoutSDA::getTimeStepAtPos2(), MEDCoupling::MEDFileIntField1TS::New(), MEDCoupling::MCAuto< T >::retn(), and MEDCoupling::MEDFileFieldGlobsReal::shallowCpyGlobs().

MEDFileFieldMultiTS * MEDFileIntFieldMultiTS::convertToDouble ( bool  isDeepCpyGlobs = true) const

This method performs a copy with datatype modification ( int32->float64 ) of this. The globals information are copied following the given input policy.

Parameters
[in]isDeepCpyGlobs- a boolean that indicates the behaviour concerning globals (profiles and localizations) By default (true) the globals are deeply copied.
Returns
MEDFileFieldMultiTS * - a new object that is the result of the conversion of this to float64 field.

References MEDCoupling::MEDFileAnyTypeFieldMultiTS::_content, MEDCoupling::MEDFileAnyTypeFieldMultiTS::BuildNewInstanceFromContent(), MEDCoupling::MEDFileIntFieldMultiTSWithoutSDA::convertToDouble(), MEDCoupling::MEDFileFieldGlobsReal::deepCpyGlobs(), MEDCoupling::MEDFileFieldMultiTS::New(), MEDCoupling::MCAuto< T >::retn(), and MEDCoupling::MEDFileFieldGlobsReal::shallowCpyGlobs().

MEDCouplingFieldInt * MEDFileIntFieldMultiTS::field ( int  iteration,
int  order,
const MEDFileMesh mesh 
) const

This is the simplest version to fetch a field for MED structure. One drawback : if this is a complex field (multi spatial discretization inside a same field) this method will throw exception and more advance method should be called (getFieldOnMeshAtLevel for example). But for normal usage of field in MED file world this method is the most efficient to fetch data.

Parameters
[in]iteration- the iteration number of a required time step.
[in]order- the iteration order number of required time step.
[in]mesh- the mesh the field is lying on
Returns
MEDCouplingFieldInt * - a new instance of MEDCouplingFieldInt. The caller is to delete this field using decrRef() as it is no more needed.

References MEDCoupling::MEDFileAnyTypeFieldMultiTS::contentNotNullBase(), MEDCoupling::MEDFileAnyTypeField1TSWithoutSDA::fieldOnMesh(), MEDCoupling::MCAuto< T >::retn(), and MEDCoupling::MEDFileIntField1TS::SetDataArrayDoubleInIntField().

MEDCouplingFieldInt * MEDFileIntFieldMultiTS::getFieldAtLevel ( TypeOfField  type,
int  iteration,
int  order,
int  meshDimRelToMax,
int  renumPol = 0 
) const

Returns a new MEDCouplingFieldInt of a given type, of a given time step, lying on mesh entities of a given dimension of the first mesh in MED file. For more info, see Dealing with Fields with advanced API.

Parameters
[in]type- a spatial discretization of interest.
[in]iteration- the iteration number of a required time step.
[in]order- the iteration order number of required time step.
[in]meshDimRelToMax- a relative dimension of the supporting mesh entities.
[in]renumPol- specifies how to permute values of the result field according to the optional numbers of cells and nodes, if any. The valid values are
  • 0 - do not permute.
  • 1 - permute cells.
  • 2 - permute nodes.
  • 3 - permute cells and nodes.
Returns
MEDCouplingFieldInt * - a new instance of MEDCouplingFieldDouble. The caller is to delete this field using decrRef() as it is no more needed.
Exceptions
Ifthe MED file is not readable.
Ifthere is no mesh in the MED file.
Ifthere are no mesh entities of meshDimRelToMax dimension in the mesh.
Ifno field values of the required parameters are available.

References MEDCoupling::MEDFileAnyTypeFieldMultiTS::contentNotNullBase(), MEDCoupling::MEDFileAnyTypeField1TSWithoutSDA::getFieldAtLevel(), MEDCoupling::MCAuto< T >::retn(), and MEDCoupling::MEDFileIntField1TS::SetDataArrayDoubleInIntField().

MEDCouplingFieldInt * MEDFileIntFieldMultiTS::getFieldAtTopLevel ( TypeOfField  type,
int  iteration,
int  order,
int  renumPol = 0 
) const

Returns a new MEDCouplingFieldInt of a given type, of a given time step, lying on the top level cells of the first mesh in MED file. For more info, see Dealing with Fields with advanced API.

Parameters
[in]type- a spatial discretization of interest.
[in]iteration- the iteration number of a required time step.
[in]order- the iteration order number of required time step.
[in]renumPol- specifies how to permute values of the result field according to the optional numbers of cells and nodes, if any. The valid values are
  • 0 - do not permute.
  • 1 - permute cells.
  • 2 - permute nodes.
  • 3 - permute cells and nodes.
Returns
MEDCouplingFieldInt * - a new instance of MEDCouplingFieldDouble. The caller is to delete this field using decrRef() as it is no more needed.
Exceptions
Ifthe MED file is not readable.
Ifthere is no mesh in the MED file.
Ifno field values of the required parameters are available.

References MEDCoupling::MEDFileAnyTypeFieldMultiTS::contentNotNullBase(), MEDCoupling::MEDFileAnyTypeField1TSWithoutSDA::getFieldAtTopLevel(), MEDCoupling::MCAuto< T >::retn(), and MEDCoupling::MEDFileIntField1TS::SetDataArrayDoubleInIntField().

MEDCouplingFieldInt * MEDFileIntFieldMultiTS::getFieldOnMeshAtLevel ( TypeOfField  type,
int  iteration,
int  order,
int  meshDimRelToMax,
const MEDFileMesh mesh,
int  renumPol = 0 
) const

Returns a new MEDCouplingFieldInt of a given type, of a given time step, lying on a given support. For more info, see Dealing with Fields with advanced API.

Parameters
[in]type- a spatial discretization of interest.
[in]iteration- the iteration number of a required time step.
[in]order- the iteration order number of required time step.
[in]meshDimRelToMax- a relative dimension of the supporting mesh entities.
[in]mesh- the supporting mesh.
[in]renumPol- specifies how to permute values of the result field according to the optional numbers of cells and nodes, if any. The valid values are
  • 0 - do not permute.
  • 1 - permute cells.
  • 2 - permute nodes.
  • 3 - permute cells and nodes.
Returns
MEDCouplingFieldInt * - a new instance of MEDCouplingFieldDouble. The caller is to delete this field using decrRef() as it is no more needed.
Exceptions
Ifthere are no mesh entities of meshDimRelToMax dimension in the mesh.
Ifno field of this is lying on mesh.
Ifno field values of the required parameters are available.

References MEDCoupling::MEDFileAnyTypeFieldMultiTS::contentNotNullBase(), MEDCoupling::MEDFileAnyTypeField1TSWithoutSDA::getFieldOnMeshAtLevel(), MEDCoupling::MCAuto< T >::retn(), and MEDCoupling::MEDFileIntField1TS::SetDataArrayDoubleInIntField().

MEDCouplingFieldInt * MEDFileIntFieldMultiTS::getFieldOnMeshAtLevel ( TypeOfField  type,
int  iteration,
int  order,
const MEDCouplingMesh mesh,
int  renumPol = 0 
) const

Returns a new MEDCouplingFieldInt of given type, of a given time step, lying on a given support. For more info, see Dealing with Fields with advanced API.

Parameters
[in]type- a spatial discretization of the new field.
[in]iteration- the iteration number of a required time step.
[in]order- the iteration order number of required time step.
[in]mesh- the supporting mesh.
[out]arrOut- the DataArrayInt containing values of field.
[in]renumPol- specifies how to permute values of the result field according to the optional numbers of cells and nodes, if any. The valid values are
  • 0 - do not permute.
  • 1 - permute cells.
  • 2 - permute nodes.
  • 3 - permute cells and nodes.
Returns
MEDCouplingFieldInt * - a new instance of MEDCouplingFieldDouble. The caller is to delete this field using decrRef() as it is no more needed.
Exceptions
Ifno field of this is lying on mesh.
Ifno field values of the required parameters are available.

References MEDCoupling::MEDFileAnyTypeFieldMultiTS::contentNotNullBase(), MEDCoupling::MEDFileAnyTypeField1TSWithoutSDA::getFieldOnMeshAtLevel(), MEDCoupling::MCAuto< T >::retn(), and MEDCoupling::MEDFileIntField1TS::SetDataArrayDoubleInIntField().

MEDCouplingFieldInt * MEDFileIntFieldMultiTS::getFieldAtLevelOld ( TypeOfField  type,
int  iteration,
int  order,
const std::string &  mname,
int  meshDimRelToMax,
int  renumPol = 0 
) const

This method has a close behaviour than MEDFileIntFieldMultiTS::getFieldAtLevel. This method is called 'old' because the user should give the mesh name he wants to use for it's field. This method is useful for MED2 file format when field on different mesh was autorized.

References MEDCoupling::MEDFileAnyTypeFieldMultiTS::contentNotNullBase(), MEDCoupling::MEDFileAnyTypeField1TSWithoutSDA::getFieldAtLevel(), MEDCoupling::MCAuto< T >::retn(), and MEDCoupling::MEDFileIntField1TS::SetDataArrayDoubleInIntField().

DataArrayInt * MEDFileIntFieldMultiTS::getFieldWithProfile ( TypeOfField  type,
int  iteration,
int  order,
int  meshDimRelToMax,
const MEDFileMesh mesh,
DataArrayInt *&  pfl 
) const

Returns values and a profile of the field of a given type, of a given time step, lying on a given support. For more info, see Dealing with Fields with advanced API.

Parameters
[in]type- a spatial discretization of the field.
[in]iteration- the iteration number of a required time step.
[in]order- the iteration order number of required time step.
[in]meshDimRelToMax- a relative dimension of the supporting mesh entities.
[in]mesh- the supporting mesh.
[out]pfl- a new instance of DataArrayInt holding ids of mesh entities the field of interest lies on. If the field lies on all entities of the given dimension, all ids in pfl are zero. The caller is to delete this array using decrRef() as it is no more needed.
[in]glob- the global data storing profiles and localization.
Returns
DataArrayInt * - a new instance of DataArrayInt holding values of the field. The caller is to delete this array using decrRef() as it is no more needed.
Exceptions
Ifthere are no mesh entities of meshDimRelToMax dimension in mesh.
Ifno field of this is lying on mesh.
Ifno field values of the required parameters are available.

References MEDCoupling::MEDFileAnyTypeFieldMultiTS::contentNotNullBase(), MEDCoupling::MEDFileAnyTypeField1TSWithoutSDA::getFieldWithProfile(), MEDCoupling::MEDFileAnyTypeFieldMultiTSWithoutSDA::getTimeStepEntry(), and MEDCoupling::MEDFileIntField1TS::ReturnSafelyDataArrayInt().

void MEDFileIntFieldMultiTS::appendFieldNoProfileSBT ( const MEDCouplingFieldInt field)

Adds a MEDCouplingFieldInt to this as another time step. The underlying mesh of the given field is checked if its elements are sorted suitable for writing to MED file ("STB" stands for "Sort By Type"), if not, an exception is thrown. For more info, see Dealing with Fields with advanced API.

Parameters
[in]field- the field to add to this.
Exceptions
Ifthe name of field is empty.
Ifthe data array of field is not set.
Ifexisting time steps have different name or number of components than field.
Ifthe underlying mesh of field has no name.
Ifelements in the mesh are not in the order suitable for writing to the MED file.

References MEDCoupling::MEDFileAnyTypeFieldMultiTSWithoutSDA::appendFieldNoProfileSBT(), MEDCoupling::MEDFileIntField1TS::ConvertFieldIntToFieldDouble(), and MEDCoupling::MEDCouplingFieldT< T >::getArray().

void MEDFileIntFieldMultiTS::appendFieldProfile ( const MEDCouplingFieldInt field,
const MEDFileMesh mesh,
int  meshDimRelToMax,
const DataArrayInt profile 
)

Adds a MEDCouplingFieldDouble to this as another time step. The mesh support of input parameter field is ignored here, it can be NULL. The support of field field is expected to be those computed with the input parameter mesh, meshDimRelToMax, and profile.

This method will check that the field based on the computed support is coherent. If not an exception will be thrown. A new profile is added only if no equal profile is missing. For more info, see Dealing with Fields with advanced API.

Parameters
[in]field- the field to add to this. The field double values and mesh support are ignored.
[in]arrOfVals- the values of the field field used.
[in]mesh- the supporting mesh of field.
[in]meshDimRelToMax- a relative dimension of mesh entities field lies on (useless if field spatial discretization is ON_NODES).
[in]profile- ids of mesh entities on which corresponding field values lie.
Exceptions
Ifeither field or mesh or profile has an empty name.
Ifthere are no mesh entities of meshDimRelToMax dimension in mesh.
Ifthe data array of field is not set.
Ifthe data array of this is already allocated but has different number of components than field.
Ifelements in mesh are not in the order suitable for writing to the MED file.
See Also
setFieldNoProfileSBT()

References MEDCoupling::MEDFileAnyTypeFieldMultiTSWithoutSDA::appendFieldProfile(), MEDCoupling::MEDFileIntField1TS::ConvertFieldIntToFieldDouble(), and MEDCoupling::MEDCouplingFieldT< T >::getArray().

DataArrayInt * MEDFileIntFieldMultiTS::getUndergroundDataArray ( int  iteration,
int  order 
) const
MEDFileIntFieldMultiTS * MEDFileIntFieldMultiTS::buildNewEmpty ( ) const
virtual