Version: 6.5.0
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ParaMEDMEM::MEDFileFieldMultiTSWithoutDAS Class Reference
Inheritance diagram for ParaMEDMEM::MEDFileFieldMultiTSWithoutDAS:
Inheritance graph
[legend]
Collaboration diagram for ParaMEDMEM::MEDFileFieldMultiTSWithoutDAS:
Collaboration graph
[legend]

Public Member Functions

int getNumberOfTS () const
std::vector< std::pair< int,
int > > 
getIterations () const
int getNonEmptyLevels (int iteration, int order, const char *mname, std::vector< int > &levs) const throw (INTERP_KERNEL::Exception)
std::vector< std::vector
< TypeOfField > > 
getTypesOfFieldAvailable () const throw (INTERP_KERNEL::Exception)
std::vector< std::vector
< std::pair< int, int > > > 
getFieldSplitedByType (int iteration, int order, const char *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 throw (INTERP_KERNEL::Exception)
std::vector< std::vector
< DataArrayDouble * > > 
getFieldSplitedByType2 (int iteration, int order, const char *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 throw (INTERP_KERNEL::Exception)
virtual void writeLL (med_idt fid) const throw (INTERP_KERNEL::Exception)
std::string getName () const
void simpleRepr (int bkOffset, std::ostream &oss, int fmtsId) const
std::vector< std::pair< int,
int > > 
getTimeSteps (std::vector< double > &ret1) const throw (INTERP_KERNEL::Exception)
std::string getMeshName () const throw (INTERP_KERNEL::Exception)
const std::vector< std::string > & getInfo () const throw (INTERP_KERNEL::Exception)
DataArrayDoublegetUndergroundDataArray (int iteration, int order) const throw (INTERP_KERNEL::Exception)
DataArrayDoublegetUndergroundDataArrayExt (int iteration, int order, std::vector< std::pair< std::pair< INTERP_KERNEL::NormalizedCellType, int >, std::pair< int, int > > > &entries) const throw (INTERP_KERNEL::Exception)
std::vector< std::string > getPflsReallyUsed2 () const
std::vector< std::string > getLocsReallyUsed2 () const
std::vector< std::string > getPflsReallyUsedMulti2 () const
std::vector< std::string > getLocsReallyUsedMulti2 () const
void changePflsRefsNamesGen2 (const std::vector< std::pair< std::vector< std::string >, std::string > > &mapOfModif) throw (INTERP_KERNEL::Exception)
void changeLocsRefsNamesGen2 (const std::vector< std::pair< std::vector< std::string >, std::string > > &mapOfModif) throw (INTERP_KERNEL::Exception)
- Public Member Functions inherited from ParaMEDMEM::RefCountObject
bool decrRef () const
void incrRef () const

Static Public Member Functions

static
MEDFileFieldMultiTSWithoutDAS
New (med_idt fid, const char *fieldName, int id, int ft, const std::vector< std::string > &infos, int nbOfStep) throw (INTERP_KERNEL::Exception)

Protected Member Functions

const MEDFileField1TSWithoutDASgetTimeStepEntry (int iteration, int order) const throw (INTERP_KERNEL::Exception)
MEDFileField1TSWithoutDASgetTimeStepEntry (int iteration, int order) throw (INTERP_KERNEL::Exception)
std::string getDtUnit () const throw (INTERP_KERNEL::Exception)
 MEDFileFieldMultiTSWithoutDAS ()
 MEDFileFieldMultiTSWithoutDAS (const char *fieldName)
 MEDFileFieldMultiTSWithoutDAS (med_idt fid, const char *fieldName, int id, int ft, const std::vector< std::string > &infos, int nbOfStep) throw (INTERP_KERNEL::Exception)
void finishLoading (med_idt fid, int nbPdt) throw (INTERP_KERNEL::Exception)
void copyTinyInfoFrom (const MEDCouplingFieldDouble *field) throw (INTERP_KERNEL::Exception)
void checkCoherencyOfTinyInfo (const MEDCouplingFieldDouble *field) const throw (INTERP_KERNEL::Exception)
- Protected Member Functions inherited from ParaMEDMEM::RefCountObject
 RefCountObject ()
 RefCountObject (const RefCountObject &other)
virtual ~RefCountObject ()

Protected Attributes

std::string _name
std::vector< std::string > _infos
int _field_type
std::vector
< MEDCouplingAutoRefCountObjectPtr
< MEDFileField1TSWithoutDAS > > 
_time_steps

Constructor & Destructor Documentation

MEDFileFieldMultiTSWithoutDAS::MEDFileFieldMultiTSWithoutDAS ( )
protected
MEDFileFieldMultiTSWithoutDAS::MEDFileFieldMultiTSWithoutDAS ( const char *  fieldName)
protected
MEDFileFieldMultiTSWithoutDAS::MEDFileFieldMultiTSWithoutDAS ( med_idt  fid,
const char *  fieldName,
int  id,
int  ft,
const std::vector< std::string > &  infos,
int  nbOfStep 
) throw (INTERP_KERNEL::Exception)
protected

Member Function Documentation

MEDFileFieldMultiTSWithoutDAS * MEDFileFieldMultiTSWithoutDAS::New ( med_idt  fid,
const char *  fieldName,
int  id,
int  ft,
const std::vector< std::string > &  infos,
int  nbOfStep 
) throw (INTERP_KERNEL::Exception)
static
int MEDFileFieldMultiTSWithoutDAS::getNumberOfTS ( ) const

References _time_steps.

std::vector< std::pair< int, int > > MEDFileFieldMultiTSWithoutDAS::getIterations ( ) const

References _time_steps.

int MEDFileFieldMultiTSWithoutDAS::getNonEmptyLevels ( int  iteration,
int  order,
const char *  mname,
std::vector< int > &  levs 
) const throw (INTERP_KERNEL::Exception)

This method has 3 inputs 'iteration' 'order' 'mname'. 'mname' can be null if the user is the general case where there is only one meshName lying on 'this' This method returns two things.

  • The absolute dimension of 'this' in first parameter.
  • The available ext levels relative to the absolute dimension returned in first parameter. These relative levels are relative to the first output parameter. The values in 'levs' will be returned in decreasing order.

This method is designed for MEDFileFieldMultiTS instances that have a discritization ON_CELLS, ON_GAUSS_NE and ON_GAUSS. Only these 3 discretizations will be taken into account here.

If 'this' is empty this method will throw an INTERP_KERNEL::Exception. If there is only node fields defined in 'this' -1 is returned and 'levs' output parameter will be empty. In this case the caller has to know the underlying mesh it refers to. By defaut it is the level 0 of the corresponding mesh.

This method is usefull to make the link between meshDimension of the underlying mesh in 'this' and the levels on 'this'. It is possible (even if it is not common) that the highest level in 'this' were not equal to the meshDimension of the underlying mesh in 'this'.

Let's consider the typical following case :

  • a mesh 'm1' has a meshDimension 3 and has the following non empty levels [0,-1,-2] for example 'm1' lies on TETRA4, HEXA8 TRI3 and SEG2
  • 'f1' lies on 'm1' and is defined on 3D and 1D cells for example TETRA4 and SEG2
  • 'f2' lies on 'm1' too and is defined on 2D and 1D cells for example TRI3 and SEG2

In this case f1->getNonEmptyLevelsExt will return (3,[0,-2]) and f2->getNonEmptyLevelsExt will return (2,[0,-1])

To retrieve the highest level of f1 it should be done, f1->getFieldAtLevel(ON_CELLS,3-3+0);//absDim-meshDim+relativeLev To retrieve the lowest level of f1 it should be done, f1->getFieldAtLevel(ON_CELLS,3-3+(-2));//absDim-meshDim+relativeLev To retrieve the highest level of f2 it should be done, f1->getFieldAtLevel(ON_CELLS,2-3+0);//absDim-meshDim+relativeLev To retrieve the lowest level of f2 it should be done, f1->getFieldAtLevel(ON_CELLS,2-3+(-1));//absDim-meshDim+relativeLev

std::vector< std::vector< TypeOfField > > MEDFileFieldMultiTSWithoutDAS::getTypesOfFieldAvailable ( ) const throw (INTERP_KERNEL::Exception)

References _time_steps.

std::vector< std::vector< std::pair< int, int > > > MEDFileFieldMultiTSWithoutDAS::getFieldSplitedByType ( int  iteration,
int  order,
const char *  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 throw (INTERP_KERNEL::Exception)

entry point for users that want to iterate into MEDFile DataStructure without any overhead.

References ParaMEDMEM::MEDFileField1TSWithoutDAS::getFieldSplitedByType(), and getTimeStepEntry().

std::vector< std::vector< DataArrayDouble * > > MEDFileFieldMultiTSWithoutDAS::getFieldSplitedByType2 ( int  iteration,
int  order,
const char *  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 throw (INTERP_KERNEL::Exception)

entry point for users that want to iterate into MEDFile DataStructure with a reduced overhead because output arrays are extracted (created) specially for the call of this method. That's why the DataArrayDouble instance in returned vector of vector should be dealed by the caller.

References ParaMEDMEM::MEDFileField1TSWithoutDAS::getFieldSplitedByType2(), and getTimeStepEntry().

void MEDFileFieldMultiTSWithoutDAS::writeLL ( med_idt  fid) const throw (INTERP_KERNEL::Exception)
virtual
std::string MEDFileFieldMultiTSWithoutDAS::getName ( ) const
void MEDFileFieldMultiTSWithoutDAS::simpleRepr ( int  bkOffset,
std::ostream &  oss,
int  fmtsId 
) const
std::vector< std::pair< int, int > > MEDFileFieldMultiTSWithoutDAS::getTimeSteps ( std::vector< double > &  ret1) const throw (INTERP_KERNEL::Exception)
std::string MEDFileFieldMultiTSWithoutDAS::getMeshName ( ) const throw (INTERP_KERNEL::Exception)

References _time_steps.

const std::vector< std::string > & MEDFileFieldMultiTSWithoutDAS::getInfo ( ) const throw (INTERP_KERNEL::Exception)

References _time_steps.

DataArrayDouble * MEDFileFieldMultiTSWithoutDAS::getUndergroundDataArray ( int  iteration,
int  order 
) const throw (INTERP_KERNEL::Exception)
DataArrayDouble * MEDFileFieldMultiTSWithoutDAS::getUndergroundDataArrayExt ( int  iteration,
int  order,
std::vector< std::pair< std::pair< INTERP_KERNEL::NormalizedCellType, int >, std::pair< int, int > > > &  entries 
) const throw (INTERP_KERNEL::Exception)
std::vector< std::string > MEDFileFieldMultiTSWithoutDAS::getPflsReallyUsed2 ( ) const

References _time_steps.

std::vector< std::string > MEDFileFieldMultiTSWithoutDAS::getLocsReallyUsed2 ( ) const

References _time_steps.

std::vector< std::string > MEDFileFieldMultiTSWithoutDAS::getPflsReallyUsedMulti2 ( ) const

References _time_steps.

std::vector< std::string > MEDFileFieldMultiTSWithoutDAS::getLocsReallyUsedMulti2 ( ) const

References _time_steps.

void MEDFileFieldMultiTSWithoutDAS::changePflsRefsNamesGen2 ( const std::vector< std::pair< std::vector< std::string >, std::string > > &  mapOfModif) throw (INTERP_KERNEL::Exception)

References _time_steps.

void MEDFileFieldMultiTSWithoutDAS::changeLocsRefsNamesGen2 ( const std::vector< std::pair< std::vector< std::string >, std::string > > &  mapOfModif) throw (INTERP_KERNEL::Exception)

References _time_steps.

const MEDFileField1TSWithoutDAS & MEDFileFieldMultiTSWithoutDAS::getTimeStepEntry ( int  iteration,
int  order 
) const throw (INTERP_KERNEL::Exception)
protected
MEDFileField1TSWithoutDAS & MEDFileFieldMultiTSWithoutDAS::getTimeStepEntry ( int  iteration,
int  order 
) throw (INTERP_KERNEL::Exception)
protected
std::string MEDFileFieldMultiTSWithoutDAS::getDtUnit ( ) const throw (INTERP_KERNEL::Exception)
protected

References _time_steps.

void MEDFileFieldMultiTSWithoutDAS::finishLoading ( med_idt  fid,
int  nbPdt 
) throw (INTERP_KERNEL::Exception)
protected
void MEDFileFieldMultiTSWithoutDAS::copyTinyInfoFrom ( const MEDCouplingFieldDouble field) throw (INTERP_KERNEL::Exception)
protected
void MEDFileFieldMultiTSWithoutDAS::checkCoherencyOfTinyInfo ( const MEDCouplingFieldDouble field) const throw (INTERP_KERNEL::Exception)
protected

Member Data Documentation

std::string ParaMEDMEM::MEDFileFieldMultiTSWithoutDAS::_name
protected

Referenced by getName(), and simpleRepr().

std::vector<std::string> ParaMEDMEM::MEDFileFieldMultiTSWithoutDAS::_infos
protected

Referenced by simpleRepr().

int ParaMEDMEM::MEDFileFieldMultiTSWithoutDAS::_field_type
mutableprotected

only useable on reading. 0 is for float, 1 for int32, 2 for int64

std::vector< MEDCouplingAutoRefCountObjectPtr<MEDFileField1TSWithoutDAS> > ParaMEDMEM::MEDFileFieldMultiTSWithoutDAS::_time_steps
protected
Copyright © 2007-2012 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