64 const int& resumeSimulation,
65 bool pretraitementParallele =
true,
70 return std::string(
"");
107 return std::string(
"");
113 return {0, 0, 0, 0, 0, 0};
117 virtual void getCoord(std::vector<double>& ,
Axis ,
bool global =
false)
const
125 virtual size_t getNodes(std::vector<double>& , std::vector<Cell*>* )
const
147 Errors::errorMessage(
"getConnectivity not available for considered mesh and storage in 'int' vector");
156 Errors::errorMessage(
"getConnectivity not available for considered mesh and storage in 'int' vector");
164 virtual void getOffsets(std::vector<double>& , std::vector<Cell*>* )
const
170 virtual void getOffsets(std::vector<int64_t>& , std::vector<Cell*>* )
const
172 Errors::errorMessage(
"getOffsets not available for considered mesh and storage in 'int64_t' vector");
176 virtual void getOffsets(std::vector<int32_t>& , std::vector<Cell*>* )
const
178 Errors::errorMessage(
"getOffsets not available for considered mesh and storage in 'int32_t' vector");
181 virtual void getTypeCell(std::vector<double>& , std::vector<Cell*>* )
const
185 virtual void getTypeCell(std::vector<unsigned char>& , std::vector<Cell*>* )
const
187 Errors::errorMessage(
"'getTypeCell' not available for considered mesh and storage in 'unsigned char' vector");
196 virtual void getData(std::vector<Cell*>* , std::vector<double>& ,
const int ,
int )
const
200 virtual void getData(std::vector<Cell*>* , std::vector<float>& ,
const int ,
int )
const
211 virtual void setDataSet(std::vector<double>& , std::vector<Cell*>* ,
const int ,
int )
const
248 std::vector<CellInterface*>* ,
249 const std::vector<AddPhys*>& ,
250 int& nbCellsTotalAMR,
251 std::vector<GeometricalDomain*>& ,
255 std::vector<GeometricalDomain*>& )
261 std::vector<CellInterface*>* ,
263 const std::vector<AddPhys*>& ,
273 std::vector<CellInterface*>* ,
275 const std::vector<AddPhys*>& ,
278 std::vector<GeometricalDomain*>& ,
286 return std::string(
"");
319 template <
typename T>
void getData_body(
Cell* cell, std::vector<T>& dataset,
const int var,
const int phase,
const bool isAMR)
const;
Base class for a mesh cell.
Definition Cell.h:59
General class for Equation of State (EOS).
Definition Eos.h:62
static void errorMessage(const std::string &message_)
Definition Errors.cpp:56
Abstract class for geometric object.
Definition GeometricObject.h:41
virtual void getOffsets(std::vector< int64_t > &, std::vector< Cell * > *) const
Store offsets in connectivity array of mesh cells.
Definition Mesh.h:170
void writeResultsGnuplot(std::vector< Cell * > *cellsLvl, std::ofstream &fileStream, GeometricObject *objet=0, bool recordPsat=false) const
Definition Mesh.cpp:43
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.
Definition Mesh.h:154
virtual void setDataSet(std::vector< double > &, std::vector< Cell * > *, const int, int) const
Extracting data for printing results.
Definition Mesh.h:211
virtual void getData(std::vector< Cell * > *, std::vector< float > &, const int, int) const
Definition Mesh.h:200
int m_numFile
Definition Mesh.h:302
virtual void parallelLoadBalancingAMR(std::vector< Cell * > *, TypeMeshContainer< Cell * > *, std::vector< CellInterface * > *, SimulationOrder, const std::vector< AddPhys * > &, Eos **, int &, std::vector< GeometricalDomain * > &, bool=false)
Definition Mesh.h:271
const TypeM & getType() const
Definition Mesh.h:81
virtual int getNumberCellsX() const
Definition Mesh.h:82
virtual int getOffsetY() const
Definition Mesh.h:89
virtual void getCoord(std::vector< double > &, Axis, bool global=false) const
For structured grid, get coordinates along a given axis.
Definition Mesh.h:117
virtual size_t getConnectivity(std::vector< double > &, std::vector< Cell * > *) const
Store connectivities of mesh cells in a flat vector of double.
Definition Mesh.h:136
TypeM m_type
Definition Mesh.h:310
Mesh()
Definition Mesh.cpp:35
virtual int getNumberCpuX() const
Definition Mesh.h:91
const int & getNumberCellsTotal() const
Definition Mesh.h:78
virtual void getOffsets(std::vector< double > &, std::vector< Cell * > *) const
Store offsets in connectivity array of mesh cells.
Definition Mesh.h:164
virtual void finalizeParallele(const int &lvlMax)
Definition Mesh.cpp:93
virtual int getNumberCpuZ() const
Definition Mesh.h:93
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.
Definition Mesh.cpp:97
virtual std::string getStringExtent(bool=false) const
Definition Mesh.h:104
virtual size_t getNodes(std::vector< double > &, std::vector< Cell * > *) const
Store coordinates of mesh nodes in a flat vector.
Definition Mesh.h:125
const int & getNumberCells() const
Definition Mesh.h:77
virtual void assignLimits(std::vector< BoundCond * > &boundCond)=0
virtual int getLvlMax() const
Definition Mesh.h:95
virtual std::string getMeshExtension() const
Definition Mesh.h:283
virtual void getOffsets(std::vector< int32_t > &, std::vector< Cell * > *) const
Store offsets in connectivity array of mesh cells.
Definition Mesh.h:176
virtual void initCpuMeshSequential(TypeMeshContainer< Cell * > &, SimulationOrder &)
Initialize mesh of a single partition for restart with mesh mapping option.
Definition Mesh.h:290
virtual std::array< int, 6 > getArrayGlobalExtent() const
For structured grid, get global grid extent under the form of an array.
Definition Mesh.h:110
virtual ~Mesh()
Definition Mesh.cpp:39
virtual void getTypeCell(std::vector< unsigned char > &, std::vector< Cell * > *) const
Definition Mesh.h:185
virtual void extractReferenceLength(std::vector< Cell * > *, std::vector< double > &) const
Definition Mesh.h:232
virtual int getNumberCellsZGlobal() const
Definition Mesh.h:87
virtual int getNumberCellsY() const
Definition Mesh.h:83
virtual void printDomainDecomposition(std::ofstream &)
Definition Mesh.h:241
virtual void extractAbsVelocityMRF(std::vector< Cell * > *, std::vector< double > &, Source *) const
Extracting absolute velocity for specific Moving Reference Frame computations.
Definition Mesh.h:223
virtual void readDomainDecomposition(std::ifstream &)
Definition Mesh.h:242
const int & getProblemDimension() const
Definition Mesh.h:76
virtual int getNumberCellsYGlobal() const
Definition Mesh.h:86
virtual int getNumberCpuY() const
Definition Mesh.h:92
int m_numberCellsCalcul
Definition Mesh.h:307
virtual void extractAbsVelocityMRF(std::vector< Cell * > *, std::vector< float > &, Source *) const
Definition Mesh.h:227
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 * > &)
Definition Mesh.h:246
const int & getNumberFaces() const
Definition Mesh.h:79
int m_numberElements
Definition Mesh.h:305
virtual void setImmersedBoundaries(TypeMeshContainer< CellInterface * > *, SimulationOrder) const
Definition Mesh.h:72
virtual void getData(std::vector< Cell * > *, std::vector< double > &, const int, int) const
Extracting data for printing results.
Definition Mesh.h:196
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.
Definition Mesh.h:145
int m_problemDimension
Definition Mesh.h:304
virtual void writeHeaderPiece(std::ofstream &, std::vector< Cell * > *) const
Definition Mesh.h:100
virtual void refineCellAndCellInterfaces(Cell *, const std::vector< AddPhys * > &, int &)
Definition Mesh.h:215
virtual void extractReferenceLength(std::vector< Cell * > *, std::vector< float > &) const
Definition Mesh.h:236
virtual void procedureRaffinement(std::vector< Cell * > *, TypeMeshContainer< Cell * > *, std::vector< CellInterface * > *, const int &, const std::vector< AddPhys * > &, int &, Eos **)
Definition Mesh.h:259
virtual void getTypeCell(std::vector< double > &, std::vector< Cell * > *) const
Definition Mesh.h:181
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 int getNumberCellsZ() const
Definition Mesh.h:84
int m_numberFacesTotal
Definition Mesh.h:306
virtual std::string whoAmI() const
Definition Mesh.h:67
virtual void initializePersistentCommunications(const TypeMeshContainer< Cell * > &cells, SimulationOrder schemeOrder)
Definition Mesh.cpp:54
virtual int getOffsetZ() const
Definition Mesh.h:90
const int & getNumFichier() const
Definition Mesh.h:80
virtual int getOffsetX() const
Definition Mesh.h:88
virtual int getNumberCellsXGlobal() const
Definition Mesh.h:85
virtual void initCpuMeshParallel(TypeMeshContainer< Cell * > &, SimulationOrder &, int)
Initialize mesh of a single partition of a partionned mesh for restart with mesh mapping option.
Definition Mesh.h:296
int m_numberCellsTotal
Definition Mesh.h:308
Abstract class for source terms.
Definition Source.h:43