16 #ifndef dealii_grid_in_h 17 #define dealii_grid_in_h 20 #include <deal.II/base/config.h> 22 #include <deal.II/base/exceptions.h> 23 #include <deal.II/base/point.h> 24 #include <deal.II/base/smartpointer.h> 30 DEAL_II_NAMESPACE_OPEN
32 template <
int dim,
int space_dim>
303 template <
int dim,
int spacedim = dim>
391 const bool apply_all_indicators_to_manifolds =
false);
434 const bool apply_all_indicators_to_manifolds =
false);
513 const bool remove_duplicates =
true,
514 const double tol = 1e-12,
515 const bool ignore_unsupported_element_types =
true);
542 <<
"The section type <" << arg1 <<
"> in an UNV " 543 <<
"input file is not implemented.");
550 <<
"The element type <" << arg1 <<
"> in an UNV " 551 <<
"input file is not implemented.");
558 <<
"The identifier <" << arg1 <<
"> as name of a " 559 <<
"part in an UCD input file is unknown or the " 560 <<
"respective input routine is not implemented." 561 <<
"(Maybe the space dimension of triangulation and " 562 <<
"input file do not match?");
574 <<
"While creating cell " << arg1
575 <<
", you are referencing a vertex with index " << arg2
576 <<
" but no vertex with this index has been described in the input file.");
585 <<
"While creating cell " << arg1 <<
" (which is numbered as " << arg2
586 <<
" in the input file), you are referencing a vertex with index " << arg3
587 <<
" but no vertex with this index has been described in the input file.");
597 <<
"The string <" << arg1
598 <<
"> is not recognized at the present" 599 <<
" position of a DB Mesh file.");
607 <<
"The specified dimension " << arg1
608 <<
" is not the same as that of the triangulation to be created.");
612 <<
"The string <" << arg1
613 <<
"> is not recognized at the present" 614 <<
" position of a Gmsh Mesh file.");
618 <<
"The Element Identifier <" << arg1 <<
"> is not " 619 <<
"supported in the deal.II library when " 620 <<
"reading meshes in " << dim <<
" dimensions.\n" 621 <<
"Supported elements are: \n" 623 <<
"1 Line (2 nodes, 1 edge).\n" 624 <<
"3 Quadrilateral (4 nodes, 4 edges).\n" 625 <<
"5 Hexahedron (8 nodes, 12 edges, 6 faces) when in 3d.\n" 626 <<
"15 Point (1 node, ignored when read)");
689 std::vector<unsigned int> &tecplot2deal,
690 unsigned int & n_vars,
691 unsigned int & n_vertices,
692 unsigned int & n_cells,
693 std::vector<unsigned int> &IJK,
710 const std::vector<
Point<2>> & vertices,
717 const std::vector<
Point<3>> & vertices,
722 const std::vector<
Point<3>> & vertices,
726 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)
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)
SmartPointer< Triangulation< dim, spacedim >, GridIn< dim, spacedim > > tria
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 void debug_output_grid(const std::vector< CellData< dim >> &cells, const std::vector< Point< spacedim >> &vertices, std::ostream &out)
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::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()