36#include "../Order2/CellInterfaceO2NS.h"
37#include "../Order2/CellO2NS.h"
38#include "../InputOutput/IO.h"
43 MeshUnStruct(
const std::string& meshFile,
const std::string& meshExtension);
49 virtual void assignLimits(std::vector<BoundCond*>& boundCond);
51 const int& ,
bool pretraitementParallele =
true, std::string ordreCalcul =
"FIRSTORDER");
52 virtual std::string
whoAmI()
const {
return 0; };
74 virtual void getNodes(std::vector<double>& dataset, std::vector<Cell*>* )
const;
75 virtual void getConnectivity(std::vector<double>& dataset, std::vector<Cell*>* )
const;
76 virtual void getOffsets(std::vector<double>& dataset, std::vector<Cell*>* )
const;
77 virtual void getTypeCell(std::vector<double>& dataset, std::vector<Cell*>* )
const;
Class for a coordinate system object such as coordinates of the vertex or a vector.
Definition Coord.h:43
Definition ElementNS.h:40
Definition MeshUnStruct.h:41
int m_numberElements0D
Definition MeshUnStruct.h:103
virtual void getData(TypeMeshContainer< Cell * > *cellsLvl, std::vector< double > &dataset, const int var, int phase) const
Definition MeshUnStruct.cpp:270
int m_numberGhostCells
Number of ghost cells.
Definition MeshUnStruct.h:101
virtual void getConnectivity(std::vector< double > &dataset, std::vector< Cell * > *) const
Definition MeshUnStruct.cpp:226
virtual void assignLimits(std::vector< BoundCond * > &boundCond)
Definition MeshUnStruct.cpp:103
int m_numberElements3D
Definition MeshUnStruct.h:106
std::vector< BoundCond * > m_bound
Array of boundary conditions.
Definition MeshUnStruct.h:95
int m_numberElements1D
Definition MeshUnStruct.h:104
int m_numberInnerNodes
Number of inner nodes (except from ghosts)
Definition MeshUnStruct.h:88
virtual void initCpuMeshSequential(TypeMeshContainer< Cell * > &cells, std::string &computeOrder)=0
Initialize mesh of a single partition for restart with mesh mapping option.
FaceNS ** m_faces
Array of geometrical faces.
Definition MeshUnStruct.h:94
int m_numberElements2D
Definition MeshUnStruct.h:105
virtual ~MeshUnStruct()
Definition MeshUnStruct.cpp:82
virtual void getTypeCell(std::vector< double > &dataset, std::vector< Cell * > *) const
Definition MeshUnStruct.cpp:257
int m_numberFacesParallel
Number of faces between a compute cell and a ghost cell.
Definition MeshUnStruct.h:99
void writeMeshInfoData() const
write monocpu mesh information
Definition MeshUnStruct.cpp:147
virtual void getOffsets(std::vector< double > &dataset, std::vector< Cell * > *) const
Definition MeshUnStruct.cpp:242
int m_numberPoints
Definition MeshUnStruct.h:112
int m_numberQuadrangles
Definition MeshUnStruct.h:109
std::string m_meshFile
Name of the mesh file read.
Definition MeshUnStruct.h:84
int m_numberSegments
Definition MeshUnStruct.h:107
virtual void preProcessMeshFileForParallel()=0
split original mesh file for computation on several CPUs
ElementNS ** m_elements
Array of internal geometric elements.
Definition MeshUnStruct.h:93
int m_numberHexahedrons
Definition MeshUnStruct.h:113
int m_numberNodes
Number of nodes of the geometric domain.
Definition MeshUnStruct.h:87
double m_totalVolume
Sum of 3D element volumes.
Definition MeshUnStruct.h:117
int m_numberInnerElements
Number of elements of n dimension of internal compute.
Definition MeshUnStruct.h:90
int m_numberGhostElements
Number of ghost elements of dimension n for parallel computation.
Definition MeshUnStruct.h:91
int m_numberBoundFaces
Number of faces between a compute cell and a boundary.
Definition MeshUnStruct.h:98
std::string m_nameMesh
Name of the mesh file without extension.
Definition MeshUnStruct.h:85
int m_numberPyramids
Definition MeshUnStruct.h:111
virtual void extractReferenceLength(std::vector< Cell * > *cellsLvl, std::vector< double > &dataset) const
Definition MeshUnStruct.cpp:377
int m_numberCommunicatingElements
Real number of communicating elements.
Definition MeshUnStruct.h:92
virtual std::string whoAmI() const
Definition MeshUnStruct.h:52
virtual void extractAbsVelocityMRF(TypeMeshContainer< Cell * > *cellsLvl, std::vector< double > &dataset, Source *sourceMRF) const
Definition MeshUnStruct.cpp:349
virtual void writeHeaderPiece(std::ofstream &fileStream, TypeMeshContainer< Cell * > *) const
Definition MeshUnStruct.cpp:207
virtual void getNodes(std::vector< double > &dataset, std::vector< Cell * > *) const
Definition MeshUnStruct.cpp:214
virtual void initGeometryMonoCPU(TypeMeshContainer< Cell * > &cells, TypeMeshContainer< CellInterface * > &cellInterfaces, std::string computeOrder="FIRSTORDER")=0
initialize the geometry for single CPU computation
double m_totalSurface
Sum of 2D element surfaces.
Definition MeshUnStruct.h:116
Coord * m_nodes
Array of node coordinates in the geometric domain.
Definition MeshUnStruct.h:89
int m_numberInnerFaces
Number of faces between two cells of compute.
Definition MeshUnStruct.h:97
int m_numberTetrahedrons
Definition MeshUnStruct.h:110
virtual void initGeometryParallel(TypeMeshContainer< Cell * > &cells, TypeMeshContainer< Cell * > &cellsGhost, TypeMeshContainer< CellInterface * > &cellInterfaces, std::string computeOrder="FIRSTORDER")=0
initialize the geometry for multi CPUs computation
int m_numberTriangles
Definition MeshUnStruct.h:108
virtual int initializeGeometrie(TypeMeshContainer< Cell * > &cells, TypeMeshContainer< Cell * > &cellsGhost, TypeMeshContainer< CellInterface * > &cellInterfaces, const int &, bool pretraitementParallele=true, std::string ordreCalcul="FIRSTORDER")
renvoi le number de dimensions (1,2 ou 3)
Definition MeshUnStruct.cpp:127
static std::string readMeshFileExtension(const std::string &meshFile)
Definition MeshUnStruct.cpp:91
virtual void initCpuMeshParallel(TypeMeshContainer< Cell * > &cells, std::string &computeOrder, int cpu)=0
Initialize mesh of a single partition of a partionned mesh for restart with mesh mapping option.
virtual void setDataSet(std::vector< double > &dataset, TypeMeshContainer< Cell * > *cellsLvl, const int var, int phase) const
Definition MeshUnStruct.cpp:314
Abstract class for a mesh.
Definition Mesh.h:53
Abstract class for source terms.
Definition Source.h:43