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

Public Member Functions

MEDCouplingMeshType getType () const
void copyTinyStringsFrom (const MEDCouplingMesh *other) throw (INTERP_KERNEL::Exception)
int getNumberOfCells () const
int getNumberOfNodes () const
int getSpaceDimension () const
int getMeshDimension () const
MEDCouplingMeshdeepCpy () const
MEDCouplingExtrudedMeshclone (bool recDeepCpy) const
bool isEqual (const MEDCouplingMesh *other, double prec) const
bool isEqualWithoutConsideringStr (const MEDCouplingMesh *other, double prec) const
void checkDeepEquivalWith (const MEDCouplingMesh *other, int cellCompPol, double prec, DataArrayInt *&cellCor, DataArrayInt *&nodeCor) const throw (INTERP_KERNEL::Exception)
void checkDeepEquivalOnSameNodesWith (const MEDCouplingMesh *other, int cellCompPol, double prec, DataArrayInt *&cellCor) const throw (INTERP_KERNEL::Exception)
INTERP_KERNEL::NormalizedCellType getTypeOfCell (int cellId) const
std::set
< INTERP_KERNEL::NormalizedCellType
getAllGeoTypes () const
int getNumberOfCellsWithType (INTERP_KERNEL::NormalizedCellType type) const
void getNodeIdsOfCell (int cellId, std::vector< int > &conn) const
void getCoordinatesOfNode (int nodeId, std::vector< double > &coo) const throw (INTERP_KERNEL::Exception)
std::string simpleRepr () const
std::string advancedRepr () const
void checkCoherency () const throw (INTERP_KERNEL::Exception)
void checkCoherency1 (double eps=1e-12) const throw (INTERP_KERNEL::Exception)
void checkCoherency2 (double eps=1e-12) const throw (INTERP_KERNEL::Exception)
void getBoundingBox (double *bbox) const
void updateTime () const
void renumberCells (const int *old2NewBg, bool check) throw (INTERP_KERNEL::Exception)
MEDCouplingUMeshgetMesh2D () const
MEDCouplingUMeshgetMesh1D () const
DataArrayIntgetMesh3DIds () const
MEDCouplingUMeshbuild3DUnstructuredMesh () const
MEDCouplingUMeshbuildUnstructured () const throw (INTERP_KERNEL::Exception)
MEDCouplingFieldDoublegetMeasureField (bool) const
MEDCouplingFieldDoublegetMeasureFieldOnNode (bool) const
MEDCouplingFieldDoublebuildOrthogonalField () const
int getCellContainingPoint (const double *pos, double eps) const
void rotate (const double *center, const double *vector, double angle)
void translate (const double *vector)
void scale (const double *point, double factor)
std::vector< int > getDistributionOfTypes () const throw (INTERP_KERNEL::Exception)
DataArrayIntcheckTypeConsistencyAndContig (const std::vector< int > &code, const std::vector< const DataArrayInt * > &idsPerType) const throw (INTERP_KERNEL::Exception)
void splitProfilePerType (const DataArrayInt *profile, std::vector< int > &code, std::vector< DataArrayInt * > &idsInPflPerType, std::vector< DataArrayInt * > &idsPerType) const throw (INTERP_KERNEL::Exception)
MEDCouplingMeshbuildPart (const int *start, const int *end) const
MEDCouplingMeshbuildPartAndReduceNodes (const int *start, const int *end, DataArrayInt *&arr) const
DataArrayIntsimplexize (int policy) throw (INTERP_KERNEL::Exception)
MEDCouplingMeshmergeMyselfWith (const MEDCouplingMesh *other) const
DataArrayDoublegetCoordinatesAndOwner () const
DataArrayDoublegetBarycenterAndOwner () const
void getTinySerializationInformation (std::vector< double > &tinyInfoD, std::vector< int > &tinyInfo, std::vector< std::string > &littleStrings) const
void resizeForUnserialization (const std::vector< int > &tinyInfo, DataArrayInt *a1, DataArrayDouble *a2, std::vector< std::string > &littleStrings) const
void serialize (DataArrayInt *&a1, DataArrayDouble *&a2) const
void unserialization (const std::vector< double > &tinyInfoD, const std::vector< int > &tinyInfo, const DataArrayInt *a1, DataArrayDouble *a2, const std::vector< std::string > &littleStrings)
- Public Member Functions inherited from ParaMEDMEM::MEDCouplingMesh
void setName (const char *name)
const char * getName () const
void setDescription (const char *descr)
const char * getDescription () const
double getTime (int &iteration, int &order) const
void setTime (double val, int iteration, int order)
void setTimeUnit (const char *unit)
const char * getTimeUnit () const
bool isStructured () const
virtual void copyTinyInfoFrom (const MEDCouplingMesh *other) throw (INTERP_KERNEL::Exception)
virtual void checkFastEquivalWith (const MEDCouplingMesh *other, double prec) const throw (INTERP_KERNEL::Exception)
void checkGeoEquivalWith (const MEDCouplingMesh *other, int levOfCheck, double prec, DataArrayInt *&cellCor, DataArrayInt *&nodeCor) const throw (INTERP_KERNEL::Exception)
virtual DataArrayIntgetCellIdsFullyIncludedInNodeIds (const int *partBg, const int *partEnd) const
virtual void getCellsContainingPoint (const double *pos, double eps, std::vector< int > &elts) const
virtual void getCellsContainingPoints (const double *pos, int nbOfPoints, double eps, std::vector< int > &elts, std::vector< int > &eltsIndex) const
virtual MEDCouplingFieldDoublefillFromAnalytic (TypeOfField t, int nbOfComp, FunctionToEvaluate func) const
virtual MEDCouplingFieldDoublefillFromAnalytic (TypeOfField t, int nbOfComp, const char *func) const
virtual MEDCouplingFieldDoublefillFromAnalytic2 (TypeOfField t, int nbOfComp, const char *func) const
virtual MEDCouplingFieldDoublefillFromAnalytic3 (TypeOfField t, int nbOfComp, const std::vector< std::string > &varsOrder, const char *func) const
virtual bool areCompatibleForMerge (const MEDCouplingMesh *other) const
void writeVTK (const char *fileName) const throw (INTERP_KERNEL::Exception)
virtual void writeVTKLL (std::ostream &ofs, const std::string &cellData, const std::string &pointData) const =0 throw (INTERP_KERNEL::Exception)
- Public Member Functions inherited from ParaMEDMEM::RefCountObject
bool decrRef () const
void incrRef () const
- Public Member Functions inherited from ParaMEDMEM::TimeLabel
TimeLabeloperator= (const TimeLabel &other)
void declareAsNew () const
unsigned int getTimeOfThis () const

Static Public Member Functions

static MEDCouplingExtrudedMeshNew (const MEDCouplingUMesh *mesh3D, const MEDCouplingUMesh *mesh2D, int cell2DId) throw (INTERP_KERNEL::Exception)
static MEDCouplingExtrudedMeshNew ()
static int FindCorrespCellByNodalConn (const std::vector< int > &nodalConnec, const int *revNodalPtr, const int *revNodalIndxPtr) throw (INTERP_KERNEL::Exception)
static void Project1DMeshes (const MEDCouplingUMesh *m1, const MEDCouplingUMesh *m2, double eps, MEDCouplingUMesh *&m1r, MEDCouplingUMesh *&m2r, double *v) throw (INTERP_KERNEL::Exception)
- Static Public Member Functions inherited from ParaMEDMEM::MEDCouplingMesh
static MEDCouplingMeshMergeMeshes (const MEDCouplingMesh *mesh1, const MEDCouplingMesh *mesh2) throw (INTERP_KERNEL::Exception)
static MEDCouplingMeshMergeMeshes (std::vector< const MEDCouplingMesh * > &meshes) throw (INTERP_KERNEL::Exception)

Additional Inherited Members

- Protected Member Functions inherited from ParaMEDMEM::MEDCouplingMesh
 MEDCouplingMesh ()
 MEDCouplingMesh (const MEDCouplingMesh &other)
virtual std::string getVTKDataSetType () const =0 throw (INTERP_KERNEL::Exception)
virtual ~MEDCouplingMesh ()

Member Function Documentation

MEDCouplingExtrudedMesh * MEDCouplingExtrudedMesh::New ( const MEDCouplingUMesh mesh3D,
const MEDCouplingUMesh mesh2D,
int  cell2DId 
) throw (INTERP_KERNEL::Exception)
static

Build an extruded mesh instance from 3D and 2D unstructured mesh lying on the same coords.

Parameters
mesh3D3D unstructured mesh.
mesh2D2D unstructured mesh lying on the same coordinates than mesh3D. Warning mesh2D is not const because the mesh is aggregated and potentially modified by rotate or translate method.
cell2DIdId of cell in mesh2D mesh where the computation of 1D mesh will be done.
MEDCouplingExtrudedMesh * MEDCouplingExtrudedMesh::New ( )
static

This constructor is here only for unserialisation process. This constructor is normally completely useless for end user.

Referenced by getCoordinatesAndOwner(), getMeasureField(), resizeForUnserialization(), serialize(), and unserialization().

MEDCouplingMeshType MEDCouplingExtrudedMesh::getType ( ) const
virtual
void MEDCouplingExtrudedMesh::copyTinyStringsFrom ( const MEDCouplingMesh other) throw (INTERP_KERNEL::Exception)
virtual

This method copyies all tiny strings from other (name and components name).

Exceptions
ifother and this have not same mesh type.

Reimplemented from ParaMEDMEM::MEDCouplingMesh.

References ParaMEDMEM::MEDCouplingMesh::copyTinyStringsFrom().

int MEDCouplingExtrudedMesh::getNumberOfCells ( ) const
virtual
int MEDCouplingExtrudedMesh::getNumberOfNodes ( ) const
virtual
int MEDCouplingExtrudedMesh::getSpaceDimension ( ) const
virtual
int MEDCouplingExtrudedMesh::getMeshDimension ( ) const
virtual
MEDCouplingMesh * MEDCouplingExtrudedMesh::deepCpy ( ) const
virtual

Implements ParaMEDMEM::MEDCouplingMesh.

References clone().

MEDCouplingExtrudedMesh * MEDCouplingExtrudedMesh::clone ( bool  recDeepCpy) const

Referenced by deepCpy().

bool MEDCouplingExtrudedMesh::isEqual ( const MEDCouplingMesh other,
double  prec 
) const
virtual
bool MEDCouplingExtrudedMesh::isEqualWithoutConsideringStr ( const MEDCouplingMesh other,
double  prec 
) const
virtual
void MEDCouplingExtrudedMesh::checkDeepEquivalWith ( const MEDCouplingMesh other,
int  cellCompPol,
double  prec,
DataArrayInt *&  cellCor,
DataArrayInt *&  nodeCor 
) const throw (INTERP_KERNEL::Exception)
virtual
void MEDCouplingExtrudedMesh::checkDeepEquivalOnSameNodesWith ( const MEDCouplingMesh other,
int  cellCompPol,
double  prec,
DataArrayInt *&  cellCor 
) const throw (INTERP_KERNEL::Exception)
virtual
INTERP_KERNEL::NormalizedCellType MEDCouplingExtrudedMesh::getTypeOfCell ( int  cellId) const
virtual
std::set< INTERP_KERNEL::NormalizedCellType > MEDCouplingExtrudedMesh::getAllGeoTypes ( ) const
virtual
int MEDCouplingExtrudedMesh::getNumberOfCellsWithType ( INTERP_KERNEL::NormalizedCellType  type) const
virtual
void MEDCouplingExtrudedMesh::getNodeIdsOfCell ( int  cellId,
std::vector< int > &  conn 
) const
virtual
void MEDCouplingExtrudedMesh::getCoordinatesOfNode ( int  nodeId,
std::vector< double > &  coo 
) const throw (INTERP_KERNEL::Exception)
virtual
std::string MEDCouplingExtrudedMesh::simpleRepr ( ) const
virtual
std::string MEDCouplingExtrudedMesh::advancedRepr ( ) const
virtual
void MEDCouplingExtrudedMesh::checkCoherency ( ) const throw (INTERP_KERNEL::Exception)
virtual
void MEDCouplingExtrudedMesh::checkCoherency1 ( double  eps = 1e-12) const throw (INTERP_KERNEL::Exception)
virtual
void MEDCouplingExtrudedMesh::checkCoherency2 ( double  eps = 1e-12) const throw (INTERP_KERNEL::Exception)
virtual
void MEDCouplingExtrudedMesh::getBoundingBox ( double *  bbox) const
virtual
void MEDCouplingExtrudedMesh::updateTime ( ) const
virtual

This method should be called on high level classes as Field or Mesh to take into acount modifications done in aggregates objects.

Implements ParaMEDMEM::TimeLabel.

References ParaMEDMEM::TimeLabel::updateTimeWith().

void MEDCouplingExtrudedMesh::renumberCells ( const int *  old2NewBg,
bool  check 
) throw (INTERP_KERNEL::Exception)
virtual
MEDCouplingUMesh* ParaMEDMEM::MEDCouplingExtrudedMesh::getMesh2D ( ) const
MEDCouplingUMesh* ParaMEDMEM::MEDCouplingExtrudedMesh::getMesh1D ( ) const
DataArrayInt* ParaMEDMEM::MEDCouplingExtrudedMesh::getMesh3DIds ( ) const
MEDCouplingUMesh * MEDCouplingExtrudedMesh::build3DUnstructuredMesh ( ) const
MEDCouplingUMesh * MEDCouplingExtrudedMesh::buildUnstructured ( ) const throw (INTERP_KERNEL::Exception)
virtual
MEDCouplingFieldDouble * MEDCouplingExtrudedMesh::getMeasureField ( bool  ) const
virtual
MEDCouplingFieldDouble * MEDCouplingExtrudedMesh::getMeasureFieldOnNode ( bool  isAbs) const
virtual
MEDCouplingFieldDouble * MEDCouplingExtrudedMesh::buildOrthogonalField ( ) const
virtual
int MEDCouplingExtrudedMesh::getCellContainingPoint ( const double *  pos,
double  eps 
) const
virtual
int MEDCouplingExtrudedMesh::FindCorrespCellByNodalConn ( const std::vector< int > &  nodalConnec,
const int *  revNodalPtr,
const int *  revNodalIndxPtr 
) throw (INTERP_KERNEL::Exception)
static
void MEDCouplingExtrudedMesh::Project1DMeshes ( const MEDCouplingUMesh m1,
const MEDCouplingUMesh m2,
double  eps,
MEDCouplingUMesh *&  m1r,
MEDCouplingUMesh *&  m2r,
double *  v 
) throw (INTERP_KERNEL::Exception)
static

This method is callable on 1Dmeshes (meshDim==1 && spaceDim==3) returned by MEDCouplingExtrudedMesh::getMesh1D typically. These 1Dmeshes (meshDim==1 && spaceDim==3) have a special semantic because these meshes do not specify a static location but a translation along a path. This method checks that 'm1' and 'm2' are compatible, if not an exception is thrown. In case these meshes ('m1' and 'm2') are compatible 2 corresponding meshes are created ('m1r' and 'm2r') that can be used for interpolation.

Parameters
m1input mesh with meshDim==1 and spaceDim==3
m2input mesh with meshDim==1 and spaceDim==3
epstolerance acceptable to determine compatibility
m1routput mesh with ref count equal to 1 with meshDim==1 and spaceDim==1
m2routput mesh with ref count equal to 1 with meshDim==1 and spaceDim==1
vis the output normalized vector of the common direction of 'm1' and 'm2'
Exceptions
incase that m1 and m2 are not compatible each other.
void MEDCouplingExtrudedMesh::rotate ( const double *  center,
const double *  vector,
double  angle 
)
virtual
void MEDCouplingExtrudedMesh::translate ( const double *  vector)
virtual
void MEDCouplingExtrudedMesh::scale ( const double *  point,
double  factor 
)
virtual
std::vector< int > MEDCouplingExtrudedMesh::getDistributionOfTypes ( ) const throw (INTERP_KERNEL::Exception)
virtual
DataArrayInt * MEDCouplingExtrudedMesh::checkTypeConsistencyAndContig ( const std::vector< int > &  code,
const std::vector< const DataArrayInt * > &  idsPerType 
) const throw (INTERP_KERNEL::Exception)
virtual
void MEDCouplingExtrudedMesh::splitProfilePerType ( const DataArrayInt profile,
std::vector< int > &  code,
std::vector< DataArrayInt * > &  idsInPflPerType,
std::vector< DataArrayInt * > &  idsPerType 
) const throw (INTERP_KERNEL::Exception)
virtual
MEDCouplingMesh * MEDCouplingExtrudedMesh::buildPart ( const int *  start,
const int *  end 
) const
virtual
MEDCouplingMesh * MEDCouplingExtrudedMesh::buildPartAndReduceNodes ( const int *  start,
const int *  end,
DataArrayInt *&  arr 
) const
virtual
DataArrayInt * MEDCouplingExtrudedMesh::simplexize ( int  policy) throw (INTERP_KERNEL::Exception)
virtual
MEDCouplingMesh * MEDCouplingExtrudedMesh::mergeMyselfWith ( const MEDCouplingMesh other) const
virtual
DataArrayDouble * MEDCouplingExtrudedMesh::getCoordinatesAndOwner ( ) const
virtual
DataArrayDouble * MEDCouplingExtrudedMesh::getBarycenterAndOwner ( ) const
virtual
void MEDCouplingExtrudedMesh::getTinySerializationInformation ( std::vector< double > &  tinyInfoD,
std::vector< int > &  tinyInfo,
std::vector< std::string > &  littleStrings 
) const
virtual
void MEDCouplingExtrudedMesh::resizeForUnserialization ( const std::vector< int > &  tinyInfo,
DataArrayInt a1,
DataArrayDouble a2,
std::vector< std::string > &  littleStrings 
) const
virtual
void MEDCouplingExtrudedMesh::serialize ( DataArrayInt *&  a1,
DataArrayDouble *&  a2 
) const
virtual
void MEDCouplingExtrudedMesh::unserialization ( const std::vector< double > &  tinyInfoD,
const std::vector< int > &  tinyInfo,
const DataArrayInt a1,
DataArrayDouble a2,
const std::vector< std::string > &  littleStrings 
)
virtual
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