15#ifndef dealii_grid_out_h
16#define dealii_grid_out_h
33template <
int dim,
int spacedim>
36template <
int dim,
int spacedim>
277 Gnuplot(
const bool write_cell_number =
false,
376 const unsigned int size = 300,
421 const unsigned int size = 300,
422 const double line_width = 0.5,
423 const bool color_lines_on_user_flag =
false,
424 const unsigned int n_boundary_face_points = 2);
475 const unsigned int size = 300,
476 const double line_width = 0.5,
477 const bool color_lines_on_user_flag =
false,
478 const unsigned int n_boundary_face_points = 2,
479 const bool write_cell_numbers =
false,
480 const bool write_cell_number_level =
true,
481 const bool write_vertex_numbers =
false,
482 const bool color_lines_level =
false);
525 const unsigned int size = 300,
526 const double line_width = 0.5,
527 const bool color_lines_on_user_flag =
false,
528 const unsigned int n_boundary_face_points = 2,
529 const double azimut_angle = 60,
530 const double turn_angle = 30);
1039 template <
int dim,
int spacedim>
1073 template <
int dim,
int spacedim>
1097 template <
int dim,
int spacedim>
1101#ifdef DEAL_II_GMSH_WITH_API
1142 template <
int dim,
int spacedim>
1145 const std::string &filename)
const;
1167 template <
int dim,
int spacedim>
1200 template <
int dim,
int spacedim>
1224 template <
int dim,
int spacedim>
1258 template <
int dim,
int spacedim>
1277 template <
int dim,
int spacedim>
1280 std::ostream &out)
const;
1318 template <
int dim,
int spacedim>
1340 template <
int dim,
int spacedim>
1374 template <
int dim,
int spacedim>
1377 const std::string &filename_without_extension,
1378 const bool view_levels =
false,
1379 const bool include_artificial =
false)
const;
1385 template <
int dim,
int spacedim>
1389 const OutputFormat output_format,
1395 template <
int dim,
int spacedim>
1642 template <
int dim,
int spacedim>
1645 const unsigned int next_element_index,
1646 std::ostream &out)
const;
1653 const unsigned int next_element_index,
1654 std::ostream &out)
const;
1661 const unsigned int next_element_index,
1662 std::ostream &out)
const;
1665 const unsigned int next_element_index,
1666 std::ostream &out)
const;
1695 template <
int dim,
int spacedim>
1698 const unsigned int next_element_index,
1699 std::ostream &out)
const;
1706 const unsigned int next_element_index,
1707 std::ostream &out)
const;
1715 const unsigned int next_element_index,
1716 std::ostream &out)
const;
1724 const unsigned int next_element_index,
1725 std::ostream &out)
const;
1731 const unsigned int next_element_index,
1732 std::ostream &out)
const;
1739 const unsigned int next_element_index,
1740 std::ostream &out)
const;
1767 template <
int dim,
int spacedim>
1770 const unsigned int next_element_index,
1771 std::ostream &out)
const;
1778 const unsigned int next_element_index,
1779 std::ostream &out)
const;
1787 const unsigned int next_element_index,
1788 std::ostream &out)
const;
1791 const unsigned int next_element_index,
1792 std::ostream &out)
const;
1820 template <
int dim,
int spacedim>
1823 const unsigned int next_element_index,
1824 std::ostream &out)
const;
1831 const unsigned int next_element_index,
1832 std::ostream &out)
const;
1839 const unsigned int next_element_index,
1840 std::ostream &out)
const;
1847 const unsigned int next_element_index,
1848 std::ostream &out)
const;
1856 const unsigned int next_element_index,
1857 std::ostream &out)
const;
1864 const unsigned int next_element_index,
1865 std::ostream &out)
const;
1880 template <
int dim,
int spacedim>
1917 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)
DX(const bool write_cells=true, const bool write_faces=false, const bool write_diameter=false, const bool write_measure=false, const bool write_all_faces=true)
static void declare_parameters(ParameterHandler ¶m)
bool color_lines_on_user_flag
unsigned int n_boundary_face_points
void parse_parameters(ParameterHandler ¶m)
EpsFlagsBase(const SizeType size_type=width, const unsigned int size=300, const double line_width=0.5, const bool color_lines_on_user_flag=false, const unsigned int n_boundary_face_points=2, const bool color_lines_level=false)
bool write_cell_number_level
bool write_vertex_numbers
unsigned int n_extra_curved_line_points
void parse_parameters(ParameterHandler ¶m)
Gnuplot(const bool write_cell_number=false, const unsigned int n_extra_curved_line_points=2, const bool curved_inner_cells=false, const bool write_additional_boundary_lines=true)
static void declare_parameters(ParameterHandler ¶m)
bool write_additional_boundary_lines
void parse_parameters(ParameterHandler ¶m)
static void declare_parameters(ParameterHandler ¶m)
Msh(const bool write_faces=false, const bool write_lines=false)
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
Svg(const unsigned int line_thickness=2, const unsigned int boundary_line_thickness=4, const bool margin=true, const Background background=white, const int azimuth_angle=0, const int polar_angle=0, const Coloring coloring=level_number, const bool convert_level_number_to_height=false, const bool label_level_number=false, const bool label_cell_index=false, const bool label_material_id=false, const bool label_subdomain_id=false, const bool draw_colorbar=false, const bool draw_legend=false, const bool label_boundary_id=false)
@ 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
Ucd(const bool write_preamble=false, const bool write_faces=false, const bool write_lines=false)
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