29 #ifndef NEMOSYS_GMSHMESH_H_ 30 #define NEMOSYS_GMSHMESH_H_ 32 #include "nemosys_export.h" 34 #include <gmsh/GModel.h> 48 explicit gmshMesh(
const std::string &fname);
54 void report()
const override;
61 std::vector<std::vector<double>>
getVertCrds()
const override;
63 std::map<nemId_t, std::vector<double>>
68 void inspectEdges(
const std::string& ofname)
const override;
86 void read(
const std::string &fname);
89 void write(
const std::string &fname)
const override;
90 void write(
const std::string &fname,
double mshFileVersion,
98 #endif // NEMOSYS_GMSHMESH_H_ virtual void inspectEdges(const std::string &ofname) const =0
get edge lengths of dataSet
virtual std::vector< double > getCellLengths() const =0
get diameter of circumsphere of each cell
A brief description of meshBase.
virtual std::vector< std::vector< double > > getCellVec(nemId_t id) const =0
get vector of coords of cell with id
virtual int getCellType() const =0
get cell type as an integer assumes all elements are the same type
virtual std::vector< nemId_t > getConnectivities() const =0
get connectivities.
virtual std::map< nemId_t, std::vector< double > > getCell(nemId_t id) const =0
get cell with id
virtual vtkSmartPointer< vtkDataSet > extractSurface()=0
extract the surface mesh
virtual void write() const
write the mesh to file named after the private var 'filename'.
virtual std::vector< std::vector< double > > getVertCrds() const =0
get 3 vecs with x,y and z coords
virtual std::vector< double > getCellCenter(nemId_t cellID) const =0
get center of a cell
virtual void report() const
generate a report of the mesh
virtual void read(const std::string &fname)=0
abstract read method reserved for derived classes
virtual std::vector< double > getPoint(nemId_t id) const =0
get point with id