43 MeshUnStruct(
const std::string& meshFile,
const std::string& meshExtension);
49 void assignLimits(std::vector<BoundCond*>& boundCond)
override;
54 bool pretraitementParallele =
true,
83 size_t getNodes(std::vector<double>& dataset, std::vector<Cell*>* )
const override;
84 size_t getConnectivity(std::vector<double>& dataset, std::vector<Cell*>* )
const override;
85 size_t getConnectivity(std::vector<int64_t>& dataset, std::vector<Cell*>* )
const override;
86 size_t getConnectivity(std::vector<int32_t>& dataset, std::vector<Cell*>* )
const override;
87 void getOffsets(std::vector<double>& dataset, std::vector<Cell*>* )
const override;
88 void getOffsets(std::vector<int64_t>& dataset, std::vector<Cell*>* )
const override;
89 void getOffsets(std::vector<int32_t>& dataset, std::vector<Cell*>* )
const override;
90 void getTypeCell(std::vector<double>& dataset, std::vector<Cell*>* )
const override;
91 void getTypeCell(std::vector<unsigned char>& dataset, std::vector<Cell*>* )
const override;
Class for a coordinate system object such as coordinates of the vertex or a vector.
Definition Coord.h:43
Definition ElementNS.h:40
static const std::string defaultString
Definition Errors.h:100
int m_numberElements0D
Definition MeshUnStruct.h:122
void extractAbsVelocityMRF(TypeMeshContainer< Cell * > *cellsLvl, std::vector< double > &dataset, Source *sourceMRF) const override
Definition MeshUnStruct.cpp:435
int m_numberGhostCells
Number of ghost cells.
Definition MeshUnStruct.h:120
void extractReferenceLength_private(std::vector< Cell * > *cellsLvl, std::vector< T > &dataset) const
Definition MeshUnStruct.cpp:490
int m_numberElements3D
Definition MeshUnStruct.h:125
std::vector< BoundCond * > m_bound
Array of boundary conditions.
Definition MeshUnStruct.h:114
void assignLimits(std::vector< BoundCond * > &boundCond) override
Definition MeshUnStruct.cpp:110
int m_numberElements1D
Definition MeshUnStruct.h:123
int initializeGeometrie(TypeMeshContainer< Cell * > &cells, TypeMeshContainer< Cell * > &cellsGhost, TypeMeshContainer< CellInterface * > &cellInterfaces, const int &, bool pretraitementParallele=true, SimulationOrder schemeOrder=SimulationOrder::first) override
renvoi le number de dimensions (1,2 ou 3)
Definition MeshUnStruct.cpp:136
int m_numberInnerNodes
Number of inner nodes (except from ghosts).
Definition MeshUnStruct.h:107
void getTypeCell(std::vector< double > &dataset, std::vector< Cell * > *) const override
Definition MeshUnStruct.cpp:350
FaceNS ** m_faces
Array of geometrical faces.
Definition MeshUnStruct.h:113
void getData_private(TypeMeshContainer< Cell * > *cellsLvl, std::vector< T > &dataset, const int var, int phase) const
Definition MeshUnStruct.cpp:372
void getOffsets(std::vector< double > &dataset, std::vector< Cell * > *) const override
Store offsets in connectivity array of mesh cells.
Definition MeshUnStruct.cpp:322
int m_numberElements2D
Definition MeshUnStruct.h:124
int m_numberFacesParallel
Number of faces between a compute cell and a ghost cell.
Definition MeshUnStruct.h:118
void writeMeshInfoData() const
write monocpu mesh information
Definition MeshUnStruct.cpp:166
void initCpuMeshParallel(TypeMeshContainer< Cell * > &cells, SimulationOrder &schemeOrder, int cpu) override=0
Initialize mesh of a single partition of a partionned mesh for restart with mesh mapping option.
int m_numberPoints
Definition MeshUnStruct.h:131
int m_numberQuadrangles
Definition MeshUnStruct.h:128
std::string m_meshFile
Name of the mesh file read.
Definition MeshUnStruct.h:103
int m_numberSegments
Definition MeshUnStruct.h:126
MeshUnStruct(const std::string &meshFile, const std::string &meshExtension)
Definition MeshUnStruct.cpp:40
void getOffsets_private(std::vector< T > &dataset) const
Definition MeshUnStruct.cpp:294
virtual void preProcessMeshFileForParallel()=0
split original mesh file for computation on several CPUs
ElementNS ** m_elements
Array of internal geometric elements.
Definition MeshUnStruct.h:112
size_t getConnectivity(std::vector< double > &dataset, std::vector< Cell * > *) const override
Store connectivities of mesh cells in a flat vector of double.
Definition MeshUnStruct.cpp:288
int m_numberHexahedrons
Definition MeshUnStruct.h:132
std::string whoAmI() const override
Definition MeshUnStruct.h:56
int m_numberNodes
Number of nodes of the geometric domain.
Definition MeshUnStruct.h:106
double m_totalVolume
Sum of 3D element volumes.
Definition MeshUnStruct.h:136
int m_numberInnerElements
Number of elements of n dimension of internal compute.
Definition MeshUnStruct.h:109
int m_numberGhostElements
Number of ghost elements of dimension n for parallel computation.
Definition MeshUnStruct.h:110
int m_numberBoundFaces
Number of faces between a compute cell and a boundary.
Definition MeshUnStruct.h:117
size_t getConnectivity_private(std::vector< T > &dataset) const
Definition MeshUnStruct.cpp:257
std::string m_nameMesh
Name of the mesh file without extension.
Definition MeshUnStruct.h:104
int m_numberPyramids
Definition MeshUnStruct.h:130
int m_numberCommunicatingElements
Real number of communicating elements.
Definition MeshUnStruct.h:111
void setDataSet(std::vector< double > &dataset, TypeMeshContainer< Cell * > *cellsLvl, const int var, int phase) const override
Definition MeshUnStruct.cpp:386
~MeshUnStruct() override
Definition MeshUnStruct.cpp:86
virtual void initGeometryMonoCPU(TypeMeshContainer< Cell * > &cells, TypeMeshContainer< CellInterface * > &cellInterfaces, SimulationOrder schemeOrder=SimulationOrder::first)=0
initialize the geometry for single CPU computation
virtual void initGeometryParallel(TypeMeshContainer< Cell * > &cells, TypeMeshContainer< Cell * > &cellsGhost, TypeMeshContainer< CellInterface * > &cellInterfaces, SimulationOrder schemeOrder=SimulationOrder::first)=0
initialize the geometry for multi CPUs computation
void getData(TypeMeshContainer< Cell * > *cellsLvl, std::vector< double > &dataset, const int var, int phase) const override
Definition MeshUnStruct.cpp:358
double m_totalSurface
Sum of 2D element surfaces.
Definition MeshUnStruct.h:135
void writeHeaderPiece(std::ofstream &fileStream, TypeMeshContainer< Cell * > *) const override
Definition MeshUnStruct.cpp:236
Coord * m_nodes
Array of node coordinates in the geometric domain.
Definition MeshUnStruct.h:108
void initCpuMeshSequential(TypeMeshContainer< Cell * > &cells, SimulationOrder &schemeOrder) override=0
Initialize mesh of a single partition for restart with mesh mapping option.
size_t getNodes(std::vector< double > &dataset, std::vector< Cell * > *) const override
Store coordinates of mesh nodes in a flat vector.
Definition MeshUnStruct.cpp:244
int m_numberInnerFaces
Number of faces between two cells of compute.
Definition MeshUnStruct.h:116
void extractReferenceLength(std::vector< Cell * > *cellsLvl, std::vector< double > &dataset) const override
Definition MeshUnStruct.cpp:476
void extractAbsVelocityMRF_private(TypeMeshContainer< Cell * > *cellsLvl, std::vector< T > &dataset, Source *sourceMRF) const
Definition MeshUnStruct.cpp:450
int m_numberTetrahedrons
Definition MeshUnStruct.h:129
int m_numberTriangles
Definition MeshUnStruct.h:127
static std::string readMeshFileExtension(const std::string &meshFile)
Definition MeshUnStruct.cpp:98
void getTypeCell_private(std::vector< T > &dataset) const
Definition MeshUnStruct.cpp:337
Mesh()
Definition Mesh.cpp:35
Abstract class for source terms.
Definition Source.h:43