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

Public Member Functions

TypeOfField getEnum () const
MEDCouplingFieldDiscretizationclone () const
std::string getStringRepr () const
const char * getRepr () const
bool isEqual (const MEDCouplingFieldDiscretization *other, double eps) const
int getNumberOfTuples (const MEDCouplingMesh *mesh) const
int getNumberOfMeshPlaces (const MEDCouplingMesh *mesh) const
DataArrayIntgetOffsetArr (const MEDCouplingMesh *mesh) const
void renumberArraysForCell (const MEDCouplingMesh *mesh, const std::vector< DataArrayDouble * > &arrays, const int *old2NewBg, bool check) throw (INTERP_KERNEL::Exception)
DataArrayDoublegetLocalizationOfDiscValues (const MEDCouplingMesh *mesh) const
void computeMeshRestrictionFromTupleIds (const MEDCouplingMesh *mesh, const int *partBg, const int *partEnd, DataArrayInt *&cellRest)
void checkCompatibilityWithNature (NatureOfField nat) const throw (INTERP_KERNEL::Exception)
void checkCoherencyBetween (const MEDCouplingMesh *mesh, const DataArrayDouble *da) const throw (INTERP_KERNEL::Exception)
MEDCouplingFieldDoublegetMeasureField (const MEDCouplingMesh *mesh, bool isAbs) const
void getValueOn (const DataArrayDouble *arr, const MEDCouplingMesh *mesh, const double *loc, double *res) const
void getValueOnPos (const DataArrayDouble *arr, const MEDCouplingMesh *mesh, int i, int j, int k, double *res) const
DataArrayDoublegetValueOnMulti (const DataArrayDouble *arr, const MEDCouplingMesh *mesh, const double *loc, int nbOfPoints) const
MEDCouplingMeshbuildSubMeshData (const MEDCouplingMesh *mesh, const int *start, const int *end, DataArrayInt *&di) const
void renumberValuesOnNodes (double epsOnVals, const int *old2New, DataArrayDouble *arr) const
void renumberValuesOnCells (double epsOnVals, const MEDCouplingMesh *mesh, const int *old2New, DataArrayDouble *arr) const
void renumberValuesOnCellsR (const MEDCouplingMesh *mesh, const int *new2old, int newSz, DataArrayDouble *arr) const
- Public Member Functions inherited from ParaMEDMEM::MEDCouplingFieldDiscretization
double getPrecision () const
void setPrecision (double val)
void updateTime () const
virtual bool isEqualWithoutConsideringStr (const MEDCouplingFieldDiscretization *other, double eps) const
virtual void normL1 (const MEDCouplingMesh *mesh, const DataArrayDouble *arr, double *res) const throw (INTERP_KERNEL::Exception)
virtual void normL2 (const MEDCouplingMesh *mesh, const DataArrayDouble *arr, double *res) const throw (INTERP_KERNEL::Exception)
virtual void integral (const MEDCouplingMesh *mesh, const DataArrayDouble *arr, bool isWAbs, double *res) const throw (INTERP_KERNEL::Exception)
virtual void renumberCells (const int *old2NewBg, bool check) throw (INTERP_KERNEL::Exception)
virtual double getIJK (const MEDCouplingMesh *mesh, const DataArrayDouble *da, int cellId, int nodeIdInCell, int compoId) const throw (INTERP_KERNEL::Exception)
virtual void getSerializationIntArray (DataArrayInt *&arr) const
virtual void getTinySerializationIntInformation (std::vector< int > &tinyInfo) const
virtual void getTinySerializationDbleInformation (std::vector< double > &tinyInfo) const
virtual void finishUnserialization (const std::vector< double > &tinyInfo)
virtual void resizeForUnserialization (const std::vector< int > &tinyInfo, DataArrayInt *&arr)
virtual void setGaussLocalizationOnType (const MEDCouplingMesh *m, INTERP_KERNEL::NormalizedCellType type, const std::vector< double > &refCoo, const std::vector< double > &gsCoo, const std::vector< double > &wg) throw (INTERP_KERNEL::Exception)
virtual void setGaussLocalizationOnCells (const MEDCouplingMesh *m, const int *begin, const int *end, const std::vector< double > &refCoo, const std::vector< double > &gsCoo, const std::vector< double > &wg) throw (INTERP_KERNEL::Exception)
virtual void clearGaussLocalizations () throw (INTERP_KERNEL::Exception)
virtual
MEDCouplingGaussLocalization & 
getGaussLocalization (int locId) throw (INTERP_KERNEL::Exception)
virtual int getNbOfGaussLocalization () const throw (INTERP_KERNEL::Exception)
virtual int getGaussLocalizationIdOfOneCell (int cellId) const throw (INTERP_KERNEL::Exception)
virtual int getGaussLocalizationIdOfOneType (INTERP_KERNEL::NormalizedCellType type) const throw (INTERP_KERNEL::Exception)
virtual void getCellIdsHavingGaussLocalization (int locId, std::vector< int > &cellIds) const throw (INTERP_KERNEL::Exception)
virtual const
MEDCouplingGaussLocalization & 
getGaussLocalization (int locId) const throw (INTERP_KERNEL::Exception)
virtual ~MEDCouplingFieldDiscretization ()
- Public Member Functions inherited from ParaMEDMEM::TimeLabel
TimeLabeloperator= (const TimeLabel &other)
void declareAsNew () const
unsigned int getTimeOfThis () const

Static Public Attributes

static const char REPR [] = "P1"
static const TypeOfField TYPE = ON_NODES

Protected Member Functions

void getValueInCell (const MEDCouplingMesh *mesh, int cellId, const DataArrayDouble *arr, const double *loc, double *res) const
- Protected Member Functions inherited from ParaMEDMEM::MEDCouplingFieldDiscretization
 MEDCouplingFieldDiscretization ()
- Protected Member Functions inherited from ParaMEDMEM::TimeLabel
 TimeLabel ()
virtual ~TimeLabel ()
void updateTimeWith (const TimeLabel &other) const

Additional Inherited Members

- Static Public Member Functions inherited from ParaMEDMEM::MEDCouplingFieldDiscretization
static
MEDCouplingFieldDiscretization
New (TypeOfField type)
static TypeOfField getTypeOfFieldFromStringRepr (const char *repr) throw (INTERP_KERNEL::Exception)
- Static Protected Member Functions inherited from ParaMEDMEM::MEDCouplingFieldDiscretization
static void renumberEntitiesFromO2NArr (double epsOnVals, const int *old2NewPtr, DataArrayDouble *arr, const char *msg)
static void renumberEntitiesFromN2OArr (const int *new2OldPtr, int new2OldSz, DataArrayDouble *arr, const char *msg)
- Protected Attributes inherited from ParaMEDMEM::MEDCouplingFieldDiscretization
double _precision
- Static Protected Attributes inherited from ParaMEDMEM::MEDCouplingFieldDiscretization
static const double DFLT_PRECISION = 1.e-12

Member Function Documentation

TypeOfField MEDCouplingFieldDiscretizationP1::getEnum ( ) const
virtual
MEDCouplingFieldDiscretization * MEDCouplingFieldDiscretizationP1::clone ( ) const
virtual
std::string MEDCouplingFieldDiscretizationP1::getStringRepr ( ) const
virtual
const char * MEDCouplingFieldDiscretizationP1::getRepr ( ) const
virtual
bool MEDCouplingFieldDiscretizationP1::isEqual ( const MEDCouplingFieldDiscretization other,
double  eps 
) const
virtual
int MEDCouplingFieldDiscretizationP1::getNumberOfTuples ( const MEDCouplingMesh mesh) const
virtual
int MEDCouplingFieldDiscretizationP1::getNumberOfMeshPlaces ( const MEDCouplingMesh mesh) const
virtual
DataArrayInt * MEDCouplingFieldDiscretizationP1::getOffsetArr ( const MEDCouplingMesh mesh) const
virtual
void MEDCouplingFieldDiscretizationP1::renumberArraysForCell ( const MEDCouplingMesh mesh,
const std::vector< DataArrayDouble * > &  arrays,
const int *  old2NewBg,
bool  check 
) throw (INTERP_KERNEL::Exception)
virtual

Nothing to do here.

Implements ParaMEDMEM::MEDCouplingFieldDiscretization.

DataArrayDouble * MEDCouplingFieldDiscretizationP1::getLocalizationOfDiscValues ( const MEDCouplingMesh mesh) const
virtual
void MEDCouplingFieldDiscretizationP1::computeMeshRestrictionFromTupleIds ( const MEDCouplingMesh mesh,
const int *  partBg,
const int *  partEnd,
DataArrayInt *&  cellRest 
)
virtual
void MEDCouplingFieldDiscretizationP1::checkCompatibilityWithNature ( NatureOfField  nat) const throw (INTERP_KERNEL::Exception)
virtual
void MEDCouplingFieldDiscretizationP1::checkCoherencyBetween ( const MEDCouplingMesh mesh,
const DataArrayDouble da 
) const throw (INTERP_KERNEL::Exception)
virtual
MEDCouplingFieldDouble * MEDCouplingFieldDiscretizationP1::getMeasureField ( const MEDCouplingMesh mesh,
bool  isAbs 
) const
virtual
void MEDCouplingFieldDiscretizationP1::getValueOn ( const DataArrayDouble arr,
const MEDCouplingMesh mesh,
const double *  loc,
double *  res 
) const
virtual
void MEDCouplingFieldDiscretizationP1::getValueOnPos ( const DataArrayDouble arr,
const MEDCouplingMesh mesh,
int  i,
int  j,
int  k,
double *  res 
) const
virtual
DataArrayDouble * MEDCouplingFieldDiscretizationP1::getValueOnMulti ( const DataArrayDouble arr,
const MEDCouplingMesh mesh,
const double *  loc,
int  nbOfPoints 
) const
virtual
MEDCouplingMesh * MEDCouplingFieldDiscretizationP1::buildSubMeshData ( const MEDCouplingMesh mesh,
const int *  start,
const int *  end,
DataArrayInt *&  di 
) const
virtual

This method returns a submesh of 'mesh' instance constituting cell ids contained in array defined as an interval [start;end).

Parameters
diis an array returned that specifies entity ids (here nodes ids) in mesh 'mesh' of entity in returned submesh. Example : The first node id of returned mesh has the (*di)[0] id in 'mesh'

Implements ParaMEDMEM::MEDCouplingFieldDiscretization.

References ParaMEDMEM::MEDCouplingMesh::buildPartAndReduceNodes(), ParaMEDMEM::RefCountObject::decrRef(), ParaMEDMEM::MEDCouplingMesh::getNumberOfNodes(), and ParaMEDMEM::DataArrayInt::invertArrayO2N2N2O().

void MEDCouplingFieldDiscretizationP1::renumberValuesOnNodes ( double  epsOnVals,
const int *  old2New,
DataArrayDouble arr 
) const
virtual
void MEDCouplingFieldDiscretizationP1::renumberValuesOnCells ( double  epsOnVals,
const MEDCouplingMesh mesh,
const int *  old2New,
DataArrayDouble arr 
) const
virtual

Nothing to do it's not a bug.

Implements ParaMEDMEM::MEDCouplingFieldDiscretization.

void MEDCouplingFieldDiscretizationP1::renumberValuesOnCellsR ( const MEDCouplingMesh mesh,
const int *  new2old,
int  newSz,
DataArrayDouble arr 
) const
virtual

Nothing to do it's not a bug.

Implements ParaMEDMEM::MEDCouplingFieldDiscretization.

void MEDCouplingFieldDiscretizationP1::getValueInCell ( const MEDCouplingMesh mesh,
int  cellId,
const DataArrayDouble arr,
const double *  loc,
double *  res 
) const
protected

This method localizes a point defined by 'loc' in a cell with id 'cellId' into mesh 'mesh'. The result is put into res expected to be of size at least arr->getNumberOfComponents()

References ParaMEDMEM::MEDCouplingMesh::getCoordinatesOfNode(), ParaMEDMEM::MEDCouplingMesh::getNodeIdsOfCell(), ParaMEDMEM::DataArray::getNumberOfComponents(), ParaMEDMEM::MEDCouplingMesh::getSpaceDimension(), and ParaMEDMEM::DataArrayDouble::getTuple().

Referenced by getValueOn(), and getValueOnMulti().

Member Data Documentation

const char MEDCouplingFieldDiscretizationP1::REPR = "P1"
static
const TypeOfField MEDCouplingFieldDiscretizationP1::TYPE = ON_NODES
static
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