7 #ifndef cf3_mesh_Gmsh_Reader_hpp
8 #define cf3_mesh_Gmsh_Reader_hpp
13 #include <boost/tuple/tuple.hpp>
27 class MergedParallelDistribution;
50 virtual std::vector<std::string> get_extensions();
54 void get_file_positions();
58 void find_used_nodes();
60 void read_coordinates();
62 void read_connectivity();
64 void read_element_node_data();
66 void read_element_data();
68 void read_node_data();
134 std::stringstream ss;
135 for (
Uint var=0; var<var_names.size(); ++var)
137 ss << var_names[var] <<
"["<<var_type_gmsh_to_cf(var_types[var])<<
"]";
138 if (var<var_names.size()-1)
145 switch (var_type_gmsh)
158 std::string dict_name()
const;
159 std::string space_lib_name()
const;
162 void fix_negative_volumes(
Mesh&
mesh);
164 void read_variable_header(std::map<std::string,Field>&
fields);
177 #endif // cf3_mesh_Gmsh_Reader_hpp
std::string name(ComponentWrapper &self)
std::vector< std::streampos > m_element_node_data_positions
std::streampos m_coordinates_position
Safe pointer to an object. This is the supported method for referring to components.
Handle< MergedParallelDistribution > m_hash
std::string var_type_gmsh_to_cf(const Uint &var_type_gmsh) const
std::set< Uint > element_types
virtual std::string get_format()
std::streampos m_region_names_position
std::string m_file_basename
boost::filesystem::fstream m_file
std::string description() const
std::map< Uint, std::pair< Handle< Elements >, Uint > > m_elem_idx_gmsh_to_cf
std::string interpolation_scheme
Handle< Region > m_region
std::vector< std::streampos > m_node_data_positions
Top-level namespace for coolfluid.
static std::string type_name()
Gets the Class name.
std::vector< std::string > var_names
std::vector< std::streampos > m_element_data_positions
std::set< Uint > m_ghost_nodes
std::set< Uint > m_used_nodes
std::vector< URI > fields
unsigned int Uint
typedef for unsigned int
std::vector< Uint > var_types
std::vector< std::vector< Uint > > m_nb_gmsh_elem_in_region
std::vector< RegionData > m_region_list
std::map< Uint, Uint > m_node_idx_gmsh_to_cf
std::vector< std::set< Uint > > m_node_to_glb_elements
std::streampos m_elements_position
std::vector< std::streampos > file_data_positions