30template <
typename MeshType>
class Structure;
31template <u
int8_t dim>
class TriangleMesh;
55 const std::string msh_filename,
56 const bool decoupled_edges =
false
68 const std::string msh_filename,
69 const std::string extension =
"msh"
82 const std::string msh_filename,
84 std::string field_name =
"scalar_field"
97 const std::string msh_filename,
99 std::string field_name =
"vector_field"
Class that collects mesh input and output static methods.
static void read_gmsh_v2(Structure< TriangleMesh< 3 > > &structure, const std::string msh_filename, const bool decoupled_edges=false)
Reads a GMSH v2 mesh file and populates a TriangleMesh in a Structure.
static void write_gmsh_v2_scalar_field(const Structure< TriangleMesh< 3 > > &structure, const std::string msh_filename, ConstEigRef< EigRowVec< Float > > field, std::string field_name="scalar_field")
Writes a GMSH v2 mesh file from a TriangleMesh in a Structure with a superimposed scalar field.
static void write_gmsh_v2_vector_field(const Structure< TriangleMesh< 3 > > &structure, const std::string msh_filename, ConstEigRef< EigMatNX< Float, 3 > > field, std::string field_name="vector_field")
Writes a GMSH v2 mesh file from a TriangleMesh in a Structure with a superimposed vector field.
static void write_gmsh_v2(const Structure< TriangleMesh< 3 > > &structure, const std::string msh_filename, const std::string extension="msh")
Writes a GMSH v2 mesh file from a TriangleMesh in a Structure.
Class that defines a structure.
Class defining a mesh with triangle elements.
const Eigen::Ref< const EigObj > ConstEigRef
Read-only reference to an Eigen object.
Eigen::Matrix< T, 1, Eigen::Dynamic > EigRowVec
Dynamic-size row vector containing type T.
Eigen::Matrix< T, N, Eigen::Dynamic > EigMatNX
Fixed-height matrix with N rows containing type T.
Primary namespace for the OpenBEM library.