16#ifndef dealii_grid_out_h
17#define dealii_grid_out_h
34template <
int dim,
int spacedim>
37template <
int dim,
int spacedim>
278 Gnuplot(
const bool write_cell_number =
false,
377 const unsigned int size = 300,
422 const unsigned int size = 300,
423 const double line_width = 0.5,
424 const bool color_lines_on_user_flag =
false,
425 const unsigned int n_boundary_face_points = 2);
476 const unsigned int size = 300,
477 const double line_width = 0.5,
478 const bool color_lines_on_user_flag =
false,
479 const unsigned int n_boundary_face_points = 2,
480 const bool write_cell_numbers =
false,
481 const bool write_cell_number_level =
true,
482 const bool write_vertex_numbers =
false,
483 const bool color_lines_level =
false);
526 const unsigned int size = 300,
527 const double line_width = 0.5,
528 const bool color_lines_on_user_flag =
false,
529 const unsigned int n_boundary_face_points = 2,
530 const double azimut_angle = 60,
531 const double turn_angle = 30);
1040 template <
int dim,
int spacedim>
1074 template <
int dim,
int spacedim>
1098 template <
int dim,
int spacedim>
1102#ifdef DEAL_II_GMSH_WITH_API
1143 template <
int dim,
int spacedim>
1146 const std::string & filename)
const;
1168 template <
int dim,
int spacedim>
1201 template <
int dim,
int spacedim>
1225 template <
int dim,
int spacedim>
1259 template <
int dim,
int spacedim>
1278 template <
int dim,
int spacedim>
1281 std::ostream & out)
const;
1319 template <
int dim,
int spacedim>
1341 template <
int dim,
int spacedim>
1375 template <
int dim,
int spacedim>
1378 const std::string &filename_without_extension,
1379 const bool view_levels =
false,
1380 const bool include_artificial =
false)
const;
1386 template <
int dim,
int spacedim>
1396 template <
int dim,
int spacedim>
1643 template <
int dim,
int spacedim>
1646 const unsigned int next_element_index,
1647 std::ostream & out)
const;
1654 const unsigned int next_element_index,
1655 std::ostream & out)
const;
1662 const unsigned int next_element_index,
1663 std::ostream & out)
const;
1666 const unsigned int next_element_index,
1667 std::ostream & out)
const;
1696 template <
int dim,
int spacedim>
1699 const unsigned int next_element_index,
1700 std::ostream & out)
const;
1707 const unsigned int next_element_index,
1708 std::ostream & out)
const;
1716 const unsigned int next_element_index,
1717 std::ostream & out)
const;
1725 const unsigned int next_element_index,
1726 std::ostream & out)
const;
1732 const unsigned int next_element_index,
1733 std::ostream & out)
const;
1740 const unsigned int next_element_index,
1741 std::ostream & out)
const;
1768 template <
int dim,
int spacedim>
1771 const unsigned int next_element_index,
1772 std::ostream & out)
const;
1779 const unsigned int next_element_index,
1780 std::ostream & out)
const;
1788 const unsigned int next_element_index,
1789 std::ostream & out)
const;
1792 const unsigned int next_element_index,
1793 std::ostream & out)
const;
1821 template <
int dim,
int spacedim>
1824 const unsigned int next_element_index,
1825 std::ostream & out)
const;
1832 const unsigned int next_element_index,
1833 std::ostream & out)
const;
1840 const unsigned int next_element_index,
1841 std::ostream & out)
const;
1848 const unsigned int next_element_index,
1849 std::ostream & out)
const;
1857 const unsigned int next_element_index,
1858 std::ostream & out)
const;
1865 const unsigned int next_element_index,
1866 std::ostream & out)
const;
1881 template <
int dim,
int spacedim>
1918 template <
int dim,
int spacedim>
unsigned int n_boundary_faces(const Triangulation< dim, spacedim > &tria) const
GridOutFlags::Vtu vtu_flags
GridOutFlags::Eps< 2 > eps_flags_2
unsigned int write_ucd_lines(const Triangulation< dim, spacedim > &tria, const unsigned int next_element_index, std::ostream &out) const
void parse_parameters(ParameterHandler ¶m)
void write_svg(const Triangulation< 2, 2 > &tria, std::ostream &out) const
void set_flags(const GridOutFlags::DX &flags)
GridOutFlags::Eps< 1 > eps_flags_1
GridOutFlags::XFig xfig_flags
unsigned int write_ucd_faces(const Triangulation< dim, spacedim > &tria, const unsigned int next_element_index, std::ostream &out) const
void write_mathgl(const Triangulation< dim, spacedim > &tria, std::ostream &out) const
std::string default_suffix() const
static void declare_parameters(ParameterHandler ¶m)
static OutputFormat parse_output_format(const std::string &format_name)
void write_vtk(const Triangulation< dim, spacedim > &tria, std::ostream &out) const
GridOutFlags::Gnuplot gnuplot_flags
void write_msh(const Triangulation< dim, spacedim > &tria, std::ostream &out) const
unsigned int write_msh_lines(const Triangulation< dim, spacedim > &tria, const unsigned int next_element_index, std::ostream &out) const
void write_eps(const Triangulation< dim, spacedim > &tria, std::ostream &out, const Mapping< dim, spacedim > *mapping=nullptr) const
static std::string get_output_format_names()
GridOutFlags::Eps< 3 > eps_flags_3
void write(const Triangulation< dim, spacedim > &tria, std::ostream &out, const OutputFormat output_format, const Mapping< dim, spacedim > *mapping=nullptr) const
void write_vtu(const Triangulation< dim, spacedim > &tria, std::ostream &out) const
GridOutFlags::Ucd ucd_flags
void write_dx(const Triangulation< dim, spacedim > &tria, std::ostream &out) const
std::size_t memory_consumption() const
unsigned int n_boundary_lines(const Triangulation< dim, spacedim > &tria) const
GridOutFlags::DX dx_flags
unsigned int write_msh_faces(const Triangulation< dim, spacedim > &tria, const unsigned int next_element_index, std::ostream &out) const
void write_ucd(const Triangulation< dim, spacedim > &tria, std::ostream &out) const
GridOutFlags::Svg svg_flags
OutputFormat default_format
void write_xfig(const Triangulation< dim, spacedim > &tria, std::ostream &out, const Mapping< dim, spacedim > *mapping=nullptr) const
void write_gnuplot(const Triangulation< dim, spacedim > &tria, std::ostream &out, const Mapping< dim, spacedim > *mapping=nullptr) const
GridOutFlags::Vtk vtk_flags
GridOutFlags::Msh msh_flags
void write_mesh_per_processor_as_vtu(const Triangulation< dim, spacedim > &tria, const std::string &filename_without_extension, const bool view_levels=false, const bool include_artificial=false) const
@ vtk
write() calls write_vtk()
@ eps
write() calls write_eps()
@ msh
write() calls write_msh()
@ xfig
write() calls write_xfig()
@ dx
write() calls write_dx()
@ ucd
write() calls write_ucd()
@ gnuplot
write() calls write_gnuplot()
@ mathgl
write() calls write_mathgl()
@ svg
write() calls write_svg()
@ none
Do nothing in write()
@ vtu
write() calls write_vtu()
GridOutFlags::MathGL mathgl_flags
Abstract base class for mapping classes.
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_CXX20_REQUIRES(condition)
#define DEAL_II_NAMESPACE_CLOSE
#define DeclException0(Exception0)
static ::ExceptionBase & ExcInvalidState()
static void declare_parameters(ParameterHandler ¶m)
void parse_parameters(ParameterHandler ¶m)
static void declare_parameters(ParameterHandler ¶m)
bool color_lines_on_user_flag
unsigned int n_boundary_face_points
void parse_parameters(ParameterHandler ¶m)
bool write_cell_number_level
bool write_vertex_numbers
unsigned int n_extra_curved_line_points
void parse_parameters(ParameterHandler ¶m)
static void declare_parameters(ParameterHandler ¶m)
bool write_additional_boundary_lines
void parse_parameters(ParameterHandler ¶m)
static void declare_parameters(ParameterHandler ¶m)
void parse_parameters(ParameterHandler ¶m)
static void declare_parameters(ParameterHandler ¶m)
bool label_level_subdomain_id
unsigned int line_thickness
bool convert_level_number_to_height
@ level_subdomain_id
Convert the level subdomain id into the cell color.
@ subdomain_id
Convert the subdomain id into the cell color.
@ material_id
Convert the material id into the cell color (default)
@ level_number
Convert the level number into the cell color.
unsigned int boundary_line_thickness
float level_height_factor
static void declare_parameters(ParameterHandler ¶m)
void parse_parameters(ParameterHandler ¶m)
Vtk(const bool output_cells=true, const bool output_faces=true, const bool output_edges=true, const bool output_only_relevant=true)
bool output_only_relevant
bool serialize_triangulation
Vtu(const bool serialize_triangulation=false)
unsigned int n_boundary_face_points
@ level_number
Convert the level into the cell color.
@ material_id
Convert the material id into the cell color.
@ level_subdomain_id
Convert the level subdomain id into the cell color.
@ subdomain_id
Convert the global subdomain id into the cell color.
void parse_parameters(ParameterHandler ¶m)
static void declare_parameters(ParameterHandler ¶m)
enum GridOutFlags::XFig::Coloring color_by
const ::Triangulation< dim, spacedim > & tria