16 #ifndef dealii_grid_in_h 17 #define dealii_grid_in_h 20 #include <deal.II/base/config.h> 21 #include <deal.II/base/exceptions.h> 22 #include <deal.II/base/smartpointer.h> 23 #include <deal.II/base/point.h> 28 DEAL_II_NAMESPACE_OPEN
299 template <
int dim,
int spacedim=dim>
381 const bool apply_all_indicators_to_manifolds=
false);
423 const bool apply_all_indicators_to_manifolds=
false);
496 const bool remove_duplicates=
true,
497 const double tol = 1e-12,
498 const bool ignore_unsupported_element_types =
true);
522 <<
"The section type <" << arg1 <<
"> in an UNV " 523 <<
"input file is not implemented.");
530 <<
"The element type <" << arg1 <<
"> in an UNV " 531 <<
"input file is not implemented.");
538 <<
"The identifier <" << arg1 <<
"> as name of a " 539 <<
"part in an UCD input file is unknown or the " 540 <<
"respective input routine is not implemented." 541 <<
"(Maybe the space dimension of triangulation and " 542 <<
"input file do not match?");
552 <<
"While creating cell " << arg1
553 <<
", you are referencing a vertex with index " << arg2
554 <<
" but no vertex with this index has been described in the input file.");
560 <<
"While creating cell " << arg1
561 <<
" (which is numbered as " << arg2
562 <<
" in the input file), you are referencing a vertex with index " << arg3
563 <<
" but no vertex with this index has been described in the input file.");
573 <<
"The string <" << arg1 <<
"> is not recognized at the present" 574 <<
" position of a DB Mesh file.");
581 <<
"The specified dimension " << arg1
582 <<
" is not the same as that of the triangulation to be created.");
586 <<
"The string <" << arg1 <<
"> is not recognized at the present" 587 <<
" position of a Gmsh Mesh file.");
591 <<
"The Element Identifier <" << arg1 <<
"> is not " 592 <<
"supported in the deal.II library when " 593 <<
"reading meshes in " << dim <<
" dimensions.\n" 594 <<
"Supported elements are: \n" 596 <<
"1 Line (2 nodes, 1 edge).\n" 597 <<
"3 Quadrilateral (4 nodes, 4 edges).\n" 598 <<
"5 Hexahedron (8 nodes, 12 edges, 6 faces) when in 3d.\n" 599 <<
"15 Point (1 node, ignored when read)");
649 const char comment_start);
659 std::vector<unsigned int> &tecplot2deal,
660 unsigned int &n_vars,
661 unsigned int &n_vertices,
662 unsigned int &n_cells,
663 std::vector<unsigned int> &IJK,
680 const std::vector<
Point<2> > &vertices,
687 const std::vector<
Point<3> > &vertices,
692 const std::vector<
Point<3> > &vertices,
696 DEAL_II_NAMESPACE_CLOSE
static std::string get_format_names()
static const unsigned int invalid_unsigned_int
#define DeclException2(Exception2, type1, type2, outsequence)
static ::ExceptionBase & ExcUnknownElementType(int arg1)
SmartPointer< Triangulation< dim, spacedim >, GridIn< dim, spacedim > > tria
static Format parse_format(const std::string &format_name)
static void skip_empty_lines(std::istream &in)
void read_vtk(std::istream &in)
static ::ExceptionBase & ExcDBMESHWrongDimension(int arg1)
void read_dbmesh(std::istream &in)
void read_tecplot(std::istream &in)
static void parse_tecplot_header(std::string &header, std::vector< unsigned int > &tecplot2deal, unsigned int &n_vars, unsigned int &n_vertices, unsigned int &n_cells, std::vector< unsigned int > &IJK, bool &structured, bool &blocked)
#define DeclException1(Exception1, type1, outsequence)
static ::ExceptionBase & ExcInvalidVertexIndexGmsh(int arg1, int arg2, int arg3)
static void skip_comment_lines(std::istream &in, const char comment_start)
#define DeclException0(Exception0)
void read_ucd(std::istream &in, const bool apply_all_indicators_to_manifolds=false)
static ::ExceptionBase & ExcInvalidDBMESHInput(std::string arg1)
static ::ExceptionBase & ExcUnknownIdentifier(std::string arg1)
void read_xda(std::istream &in)
void read_msh(std::istream &in)
void read_netcdf(const std::string &filename)
static std::string default_suffix(const Format format)
void read_unv(std::istream &in)
void read(std::istream &in, Format format=Default)
static ::ExceptionBase & ExcNoTriangulationSelected()
static ::ExceptionBase & ExcInvalidDBMeshFormat()
#define DeclException3(Exception3, type1, type2, type3, outsequence)
void read_assimp(const std::string &filename, const unsigned int mesh_index=numbers::invalid_unsigned_int, const bool remove_duplicates=true, const double tol=1e-12, const bool ignore_unsupported_element_types=true)
Use GridIn::default_format stored in this object.
void read_abaqus(std::istream &in, const bool apply_all_indicators_to_manifolds=false)
static void debug_output_grid(const std::vector< CellData< dim > > &cells, const std::vector< Point< spacedim > > &vertices, std::ostream &out)
static ::ExceptionBase & ExcInvalidGMSHInput(std::string arg1)
static ::ExceptionBase & ExcGmshUnsupportedGeometry(int arg1)
static ::ExceptionBase & ExcUnknownSectionType(int arg1)
void attach_triangulation(Triangulation< dim, spacedim > &tria)
static ::ExceptionBase & ExcInvalidVertexIndex(int arg1, int arg2)
static ::ExceptionBase & ExcGmshNoCellInformation()