![]() |
ECOGEN 6.0
Evolutive, Compressible, Open, Genuine, Easy, N-phase
|
Abstract class for a mesh. More...
#include <Mesh.h>
Inherited by MeshCartesian, and MeshUnStruct.
Public Member Functions | |
| Mesh () | |
| virtual | ~Mesh () |
| virtual void | assignLimits (std::vector< BoundCond * > &boundCond)=0 |
| virtual int | initializeGeometrie (TypeMeshContainer< Cell * > &cells, TypeMeshContainer< Cell * > &cellsGhost, TypeMeshContainer< CellInterface * > &cellInterfaces, const int &resumeSimulation, bool pretraitementParallele=true, SimulationOrder schemeOrder=SimulationOrder::first)=0 |
| renvoi le number de dimensions (1,2 ou 3) | |
| virtual std::string | whoAmI () const |
| virtual void | setImmersedBoundaries (TypeMeshContainer< CellInterface * > *, SimulationOrder) const |
| const int & | getProblemDimension () const |
| const int & | getNumberCells () const |
| const int & | getNumberCellsTotal () const |
| const int & | getNumberFaces () const |
| const int & | getNumFichier () const |
| const TypeM & | getType () const |
| virtual int | getNumberCellsX () const |
| virtual int | getNumberCellsY () const |
| virtual int | getNumberCellsZ () const |
| virtual int | getNumberCellsXGlobal () const |
| virtual int | getNumberCellsYGlobal () const |
| virtual int | getNumberCellsZGlobal () const |
| virtual int | getOffsetX () const |
| virtual int | getOffsetY () const |
| virtual int | getOffsetZ () const |
| virtual int | getNumberCpuX () const |
| virtual int | getNumberCpuY () const |
| virtual int | getNumberCpuZ () const |
| virtual int | getLvlMax () const |
| void | writeResultsGnuplot (std::vector< Cell * > *cellsLvl, std::ofstream &fileStream, GeometricObject *objet=0, bool recordPsat=false) const |
| virtual void | writeHeaderPiece (std::ofstream &, std::vector< Cell * > *) const |
| virtual std::string | getStringExtent (bool=false) const |
| virtual std::array< int, 6 > | getArrayGlobalExtent () const |
| For structured grid, get global grid extent under the form of an array. | |
| virtual void | getCoord (std::vector< double > &, Axis, bool global=false) const |
| For structured grid, get coordinates along a given axis. | |
| virtual size_t | getNodes (std::vector< double > &, std::vector< Cell * > *) const |
| Store coordinates of mesh nodes in a flat vector. | |
| virtual size_t | getConnectivity (std::vector< double > &, std::vector< Cell * > *) const |
| Store connectivities of mesh cells in a flat vector of double. | |
| virtual size_t | getConnectivity (std::vector< int64_t > &, std::vector< Cell * > *) const |
| Store connectivities of mesh cells in a flat vector of 'ECOGEN_VTKHDF_intType' integers. | |
| virtual size_t | getConnectivity (std::vector< int32_t > &, std::vector< Cell * > *) const |
| Store connectivities of mesh cells in a flat vector of 'ECOGEN_VTKHDF_intType' integers. | |
| virtual void | getOffsets (std::vector< double > &, std::vector< Cell * > *) const |
| Store offsets in connectivity array of mesh cells. | |
| virtual void | getOffsets (std::vector< int64_t > &, std::vector< Cell * > *) const |
| Store offsets in connectivity array of mesh cells. | |
| virtual void | getOffsets (std::vector< int32_t > &, std::vector< Cell * > *) const |
| Store offsets in connectivity array of mesh cells. | |
| virtual void | getTypeCell (std::vector< double > &, std::vector< Cell * > *) const |
| virtual void | getTypeCell (std::vector< unsigned char > &, std::vector< Cell * > *) const |
| virtual void | getData (std::vector< Cell * > *, std::vector< double > &, const int, int) const |
| Extracting data for printing results. | |
| virtual void | getData (std::vector< Cell * > *, std::vector< float > &, const int, int) const |
| virtual void | setDataSet (std::vector< double > &, std::vector< Cell * > *, const int, int) const |
| Extracting data for printing results. | |
| virtual void | refineCellAndCellInterfaces (Cell *, const std::vector< AddPhys * > &, int &) |
| virtual void | extractAbsVelocityMRF (std::vector< Cell * > *, std::vector< double > &, Source *) const |
| Extracting absolute velocity for specific Moving Reference Frame computations. | |
| virtual void | extractAbsVelocityMRF (std::vector< Cell * > *, std::vector< float > &, Source *) const |
| virtual void | extractReferenceLength (std::vector< Cell * > *, std::vector< double > &) const |
| virtual void | extractReferenceLength (std::vector< Cell * > *, std::vector< float > &) const |
| virtual void | printDomainDecomposition (std::ofstream &) |
| virtual void | readDomainDecomposition (std::ifstream &) |
| virtual void | procedureRaffinementInitialization (std::vector< Cell * > *, TypeMeshContainer< Cell * > *, std::vector< CellInterface * > *, const std::vector< AddPhys * > &, int &nbCellsTotalAMR, std::vector< GeometricalDomain * > &, Eos **, const int &, SimulationOrder, std::vector< GeometricalDomain * > &) |
| virtual void | procedureRaffinement (std::vector< Cell * > *, TypeMeshContainer< Cell * > *, std::vector< CellInterface * > *, const int &, const std::vector< AddPhys * > &, int &, Eos **) |
| virtual void | initializePersistentCommunications (const TypeMeshContainer< Cell * > &cells, SimulationOrder schemeOrder) |
| virtual void | finalizeParallele (const int &lvlMax) |
| virtual void | parallelLoadBalancingAMR (std::vector< Cell * > *, TypeMeshContainer< Cell * > *, std::vector< CellInterface * > *, SimulationOrder, const std::vector< AddPhys * > &, Eos **, int &, std::vector< GeometricalDomain * > &, bool=false) |
| virtual std::string | getMeshExtension () const |
| virtual void | initCpuMeshSequential (TypeMeshContainer< Cell * > &, SimulationOrder &) |
| Initialize mesh of a single partition for restart with mesh mapping option. | |
| virtual void | initCpuMeshParallel (TypeMeshContainer< Cell * > &, SimulationOrder &, int) |
| Initialize mesh of a single partition of a partionned mesh for restart with mesh mapping option. | |
Protected Member Functions | |
| template<typename T> | |
| void | getData_body (Cell *cell, std::vector< T > &dataset, const int var, const int phase, const bool isAMR) const |
| Access data of cell cell and append the wanted variable cell in dataset vector. | |
Protected Attributes | |
| int | m_numFile |
| int | m_problemDimension |
| int | m_numberElements |
| int | m_numberFacesTotal |
| int | m_numberCellsCalcul |
| int | m_numberCellsTotal |
| TypeM | m_type |
Abstract class for a mesh.
Can not be instanciated, depend on the mesh properties
| Mesh::Mesh | ( | ) |
|
virtual |
|
pure virtual |
Implemented in MeshCartesian, and MeshUnStruct.
|
inlinevirtual |
Extracting absolute velocity for specific Moving Reference Frame computations.
| cellsLvl | data structure containing pointer to cells |
| sourceMRF | pointer to the corresponding MRF source |
| dataset | double vector containing the extracted data |
|
inlinevirtual |
|
inlinevirtual |
Reimplemented in MeshUnStruct.
|
inlinevirtual |
|
virtual |
Reimplemented in MeshCartesianAMR.
|
inlinevirtual |
For structured grid, get global grid extent under the form of an array.
Reimplemented in MeshCartesian.
|
inlinevirtual |
Store connectivities of mesh cells in a flat vector of double.
Reimplemented in MeshCartesianAMR, and MeshUnStruct.
|
inlinevirtual |
Store connectivities of mesh cells in a flat vector of 'ECOGEN_VTKHDF_intType' integers.
Reimplemented in MeshCartesian, MeshCartesianAMR, and MeshUnStruct.
|
inlinevirtual |
Store connectivities of mesh cells in a flat vector of 'ECOGEN_VTKHDF_intType' integers.
Reimplemented in MeshCartesian, MeshCartesianAMR, and MeshUnStruct.
|
inlinevirtual |
For structured grid, get coordinates along a given axis.
Reimplemented in MeshCartesian.
|
inlinevirtual |
Extracting data for printing results.
This method enable to extract a set of data for mixture or phase, scalar or vetor
| cellsLvl | data structure containing pointer to cells |
| dataset | double vector containing the extracted data |
| var | number of requested varaible to extract (>0 for scalar, <0 for vector) |
| phase | number of requested phase (-1 for mixture, -2 for transport, -3 for xi, -4 for gradient density mixture) |
|
inlinevirtual |
|
protected |
Access data of cell cell and append the wanted variable cell in dataset vector.
Instanciation of previous function with float type to force compilation of the function body and avoid link error.
Instanciation of previous function with double type to force compilation of the function body and avoid link error.
| T | Type of dataset vector. |
| cellsLvl | Cell array. |
| dataset | Vector to fill with cell array variable. |
| var | parameter to choose to get scalar (if strictly positive) or vector (in lower or ewal to 0) variable. |
| phase | identifier of variable to store. |
| isAMR | true if called from AMR. |
|
inlinevirtual |
|
inlinevirtual |
Reimplemented in MUSGmsh.
|
inlinevirtual |
Store coordinates of mesh nodes in a flat vector.
Reimplemented in MeshCartesian, MeshCartesianAMR, and MeshUnStruct.
|
inline |
|
inline |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Reimplemented in MeshCartesian.
|
inlinevirtual |
Reimplemented in MeshCartesian.
|
inlinevirtual |
Reimplemented in MeshCartesian.
|
inline |
|
inline |
|
inlinevirtual |
Store offsets in connectivity array of mesh cells.
Reimplemented in MeshCartesianAMR, and MeshUnStruct.
|
inlinevirtual |
Store offsets in connectivity array of mesh cells.
Reimplemented in MeshCartesian, MeshCartesianAMR, and MeshUnStruct.
|
inlinevirtual |
Store offsets in connectivity array of mesh cells.
Reimplemented in MeshCartesian, MeshCartesianAMR, and MeshUnStruct.
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inline |
|
inlinevirtual |
Reimplemented in MeshCartesian.
|
inline |
|
inlinevirtual |
Reimplemented in MeshCartesianAMR, and MeshUnStruct.
|
inlinevirtual |
Reimplemented in MeshCartesian, MeshCartesianAMR, and MeshUnStruct.
|
inlinevirtual |
Initialize mesh of a single partition of a partionned mesh for restart with mesh mapping option.
This mesh object has only the elements and nodes filled
Reimplemented in MeshUnStruct, MUSGmsh, MUSGmshV2, and MUSGmshV4.
|
inlinevirtual |
Initialize mesh of a single partition for restart with mesh mapping option.
This mesh object has only the elements and nodes filled
Reimplemented in MeshUnStruct, MUSGmsh, MUSGmshV2, and MUSGmshV4.
|
pure virtual |
renvoi le number de dimensions (1,2 ou 3)
Implemented in MeshCartesian, MeshCartesianAMR, and MeshUnStruct.
|
virtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Reimplemented in MeshCartesianAMR.
|
inlinevirtual |
Extracting data for printing results.
This method enable to extract a set of data for mixture or phase, scalar or vetor
| cellsLvl | data structure containing pointer to cells |
| dataset | double vector containing the extracted data |
| var | number of requested varaible to extract (>0 for scalar, <0 for vector) |
| phase | number of requested phase (-1 for mixture, -2 for transport, -3 for xi, -4 for gradient density mixture) |
|
inlinevirtual |
Reimplemented in MeshCartesian.
|
inlinevirtual |
Reimplemented in MeshCartesian, MeshCartesianAMR, and MeshUnStruct.
|
inlinevirtual |
| void Mesh::writeResultsGnuplot | ( | std::vector< Cell * > * | cellsLvl, |
| std::ofstream & | fileStream, | ||
| GeometricObject * | objet = 0, | ||
| bool | recordPsat = false ) const |
|
protected |
|
protected |
|
protected |
|
protected |
|
mutableprotected |
|
protected |
|
protected |