29 #ifndef NEMOSYS_FOAMGEOMESH_H_ 30 #define NEMOSYS_FOAMGEOMESH_H_ 32 #include "nemosys_export.h" 35 #include <vtkUnstructuredGrid.h> 39 #include <fvOptions.H> 66 const std::string &phyGrpArrayName = std::string());
81 const std::string &phyGrpArrayName = std::string());
93 void write(
const std::string &fileName)
override;
98 void report(std::ostream &out)
const override;
111 void setFoamMesh(std::unique_ptr<Foam::fvMesh> foamMesh);
116 void resetNative()
override;
122 void InitializeFoam();
133 static GeoMesh foam2GM(Foam::fvMesh *foamMesh,
134 const std::string &phyGrpArrayName = std::string());
144 static std::unique_ptr<Foam::fvMesh> GM2foam(
145 const GeoMesh &geoMesh, Foam::Time *runTime,
146 const std::string &phyGrpArrayName = std::string());
168 #endif // NEMOSYS_FOAMGEOMESH_H_ geoMeshBase * Read(const std::string &fileName)
Read a mesh from file.
geoMeshBase * New(MeshType meshType)
Create a new mesh object.
std::unique_ptr< Foam::dictionary > controlDict_
std::unique_ptr< Foam::dictionary > fvSolution_
const Foam::fvMesh & getFoamMesh() const
Copy the mesh.
std::unique_ptr< Foam::fvMesh > fmesh_
A concrete implementation of geoMeshBase representing a mesh in a fvMesh.
std::unique_ptr< Foam::dictionary > fvSchemes_
abstract class to specify geometry and mesh data
std::unique_ptr< Foam::Time > runTime_