29 #ifndef NEMOSYS_FOAMMESH_H_ 30 #define NEMOSYS_FOAMMESH_H_ 38 #include <fvOptions.H> 57 explicit foamMesh(
bool readDB =
false);
64 foamMesh(std::shared_ptr<meshBase> fullMesh);
73 void report()
const override;
81 void read(
const std::string &fname)
override;
86 void readAMR(
const Foam::Time &runTime);
100 std::vector<std::vector<double>>
getVertCrds()
const override;
108 std::map<nemId_t, std::vector<double>>
getCell(
nemId_t id)
const override;
140 void inspectEdges(
const std::string &ofname)
const override;
153 void write(
const std::string &fname)
const override;
195 #endif // NEMOSYS_FOAMMESH_H_ void inspectEdges(const std::string &ofname) const override
get edge lengths of dataSet
std::map< nemId_t, std::vector< double > > getCell(nemId_t id) const override
get cell with id : returns point indices and respective coordinates
std::shared_ptr< meshBase > _volMB
Shared meshBase pointer for foamMesh constructor and some methods.
~foamMesh() override
foamMesh standard destructor
void read(const std::string &fname) override
general purpose mesh information read method
A brief description of meshBase.
void readAMR(const Foam::Time &runTime)
Reads fvMesh for adaptive mesh refinement process.
std::vector< double > getPoint(nemId_t id) const override
get point with id
void genMshDB()
Return a polyMesh Object.
foamMesh class contains methods for reading and writing mesh in OpenFOAM polyMesh format...
std::vector< std::vector< double > > getVertCrds() const override
get 3 vecs with x,y and z coords
std::vector< std::vector< double > > getCellVec(nemId_t id) const override
get cell points ids and their coordinates
virtual void write() const
write the mesh to file named after the private var 'filename'.
int getCellType() const override
get cell type as an integer.
foamMesh(bool readDB=false)
foamMesh default constructor.
std::vector< double > getCellLengths() const override
get diameter of circumsphere of each cell
void createFoamDicts()
Created necessary dictionaries for OpenFOAM runtime environment.
std::vector< double > getCellCenter(nemId_t cellID) const override
get center of a cell
vtkSmartPointer< vtkDataSet > extractSurface() override
Extracts foam mesh surface using VTK data set.
std::vector< nemId_t > getConnectivities() const override
get vtk cell connectivities in terms of point ids
void report() const override
generate a report of the mesh