38 #ifndef GETFEM_IMPORT_H__
39 #define GETFEM_IMPORT_H__
107 void import_mesh(
const std::string& filename,
const std::string& format,
109 void import_mesh(std::istream& f,
const std::string& format,
111 void import_mesh(
const std::string& filename, mesh& m);
143 std::map<std::string, size_type> ®ion_map,
144 bool remove_last_dimension =
true,
145 std::map<
size_type, std::set<size_type>> *nodal_map = NULL,
146 bool remove_duplicated_nodes =
true);
149 std::map<std::string, size_type> ®ion_map,
150 bool remove_last_dimension =
true,
151 std::map<
size_type, std::set<size_type>> *nodal_map = NULL,
152 bool remove_duplicated_nodes =
true);
155 bool add_all_element_type =
false,
156 std::set<size_type> *lower_dim_convex_rg = NULL,
157 std::map<std::string, size_type> *region_map = NULL,
158 bool remove_last_dimension =
true,
159 std::map<
size_type, std::set<size_type>> *nodal_map = NULL,
160 bool remove_duplicated_nodes =
true);
163 bool add_all_element_type =
false,
164 std::set<size_type> *lower_dim_convex_rg = NULL,
165 std::map<std::string, size_type> *region_map = NULL,
166 bool remove_last_dimension =
true,
167 std::map<
size_type, std::set<size_type>> *nodal_map = NULL,
168 bool remove_duplicated_nodes =
true);
defines and typedefs for namespace bgeot
size_t size_type
used as the common size type in the library
GEneric Tool for Finite Element Methods.
void maybe_remove_last_dimension(mesh &msh)
for gmsh and gid meshes, the mesh nodes are always 3D, so for a 2D mesh the z-component of nodes shou...
void import_mesh(const std::string &filename, const std::string &format, mesh &m)
imports a mesh file.
void import_mesh_gmsh(const std::string &filename, mesh &m, std::map< std::string, size_type > ®ion_map, bool remove_last_dimension=true, std::map< size_type, std::set< size_type >> *nodal_map=NULL, bool remove_duplicated_nodes=true)
Import a mesh file in format generated by Gmsh.
std::map< std::string, size_type > read_region_names_from_gmsh_mesh_file(std::istream &f)
for gmsh meshes, create table linking region name to region_id.