OpenBEM
Open-source framework for electromagnetic simulation with the boundary element method.
Loading...
Searching...
No Matches
bem::MeshTransfer Class Reference

Class that collects mesh input and output static methods. More...

#include <mesh_transfer.hpp>

Detailed Description

Class that collects mesh input and output static methods.

Definition at line 41 of file mesh_transfer.hpp.

Member Function Documentation

◆ read_gmsh_v2()

void bem::MeshTransfer::read_gmsh_v2 ( Structure< TriangleMesh< 3 > > &  structure,
const std::string  msh_filename,
const bool  decoupled_edges = false 
)
static

Reads a GMSH v2 mesh file and populates a TriangleMesh in a Structure.

Parameters
[out]structure- The Structure to populate with mesh data.
[in]msh_filename- Path to the GMSH v2 mesh file.
[in]decoupled_edges- If true, edges are unique to each face (optional).

It is assumed that all physical surfaces are numbered consecutively from 1 onwards.

Examples
/examples/ex01_start_here.cpp, and /examples/ex02_assemblers.cpp.

Definition at line 36 of file mesh_transfer.cpp.

◆ write_gmsh_v2()

void bem::MeshTransfer::write_gmsh_v2 ( const Structure< TriangleMesh< 3 > > &  structure,
const std::string  msh_filename,
const std::string  extension = "msh" 
)
static

Writes a GMSH v2 mesh file from a TriangleMesh in a Structure.

Parameters
[in]structure- The Structure whose mesh is written to file.
[in]msh_filename- Path to the output GMSH v2 mesh file.
[in]extension- Custom file extension for the output mesh file (optional).

Definition at line 255 of file mesh_transfer.cpp.

◆ write_gmsh_v2_scalar_field()

void bem::MeshTransfer::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" 
)
static

Writes a GMSH v2 mesh file from a TriangleMesh in a Structure with a superimposed scalar field.

Parameters
[in]structure- The Structure associated with the scalar field.
[in]msh_filename- Path to the output GMSH v2 mesh file.
[in]field- Scalar field to superimpose on the mesh.
[in]field_name- Name for the field (optional).

Definition at line 315 of file mesh_transfer.cpp.

◆ write_gmsh_v2_vector_field()

void bem::MeshTransfer::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" 
)
static

Writes a GMSH v2 mesh file from a TriangleMesh in a Structure with a superimposed vector field.

Parameters
[in]structure- The Structure associated with the vector field.
[in]msh_filename- Path to the output GMSH v2 mesh file.
[in]field- Vector field to superimpose on the mesh.
[in]field_name- Name for the field (optional).
Examples
/examples/ex01_start_here.cpp, and /examples/ex02_assemblers.cpp.

Definition at line 345 of file mesh_transfer.cpp.


The documentation for this class was generated from the following files: