16 #ifndef dealii_grid_out_h 17 #define dealii_grid_out_h 21 #include <deal.II/base/config.h> 23 #include <deal.II/base/data_out_base.h> 24 #include <deal.II/base/exceptions.h> 25 #include <deal.II/base/point.h> 29 DEAL_II_NAMESPACE_OPEN
32 template <
int dim,
int spacedim>
34 template <
int dim,
int spacedim>
286 Gnuplot(
const bool write_cell_number =
false,
398 const unsigned int size = 300,
443 const unsigned int size = 300,
444 const double line_width = 0.5,
445 const bool color_lines_on_user_flag =
false,
446 const unsigned int n_boundary_face_points = 2);
497 const unsigned int size = 300,
498 const double line_width = 0.5,
499 const bool color_lines_on_user_flag =
false,
500 const unsigned int n_boundary_face_points = 2,
501 const bool write_cell_numbers =
false,
502 const bool write_cell_number_level =
true,
503 const bool write_vertex_numbers =
false,
504 const bool color_lines_level =
false);
547 const unsigned int size = 300,
548 const double line_width = 0.5,
549 const bool color_lines_on_user_flag =
false,
550 const unsigned int n_boundary_face_points = 2,
551 const double azimut_angle = 60,
552 const double turn_angle = 30);
954 template <
int dim,
int spacedim>
988 template <
int dim,
int spacedim>
1012 template <
int dim,
int spacedim>
1035 template <
int dim,
int spacedim>
1068 template <
int dim,
int spacedim>
1092 template <
int dim,
int spacedim>
1124 template <
int dim,
int spacedim>
1143 template <
int dim,
int spacedim>
1146 std::ostream & out)
const;
1186 template <
int dim,
int spacedim>
1207 template <
int dim,
int spacedim>
1241 template <
int dim,
int spacedim>
1244 const std::string &filename_without_extension,
1245 const bool view_levels =
false,
1246 const bool include_artificial =
false)
const;
1252 template <
int dim,
int spacedim>
1262 template <
int dim,
int spacedim>
1509 template <
int dim,
int spacedim>
1512 const unsigned int next_element_index,
1513 std::ostream & out)
const;
1520 const unsigned int next_element_index,
1521 std::ostream & out)
const;
1528 const unsigned int next_element_index,
1529 std::ostream & out)
const;
1532 const unsigned int next_element_index,
1533 std::ostream & out)
const;
1562 template <
int dim,
int spacedim>
1565 const unsigned int next_element_index,
1566 std::ostream & out)
const;
1573 const unsigned int next_element_index,
1574 std::ostream & out)
const;
1582 const unsigned int next_element_index,
1583 std::ostream & out)
const;
1586 const unsigned int next_element_index,
1587 std::ostream & out)
const;
1593 const unsigned int next_element_index,
1594 std::ostream & out)
const;
1601 const unsigned int next_element_index,
1602 std::ostream & out)
const;
1629 template <
int dim,
int spacedim>
1632 const unsigned int next_element_index,
1633 std::ostream & out)
const;
1640 const unsigned int next_element_index,
1641 std::ostream & out)
const;
1649 const unsigned int next_element_index,
1650 std::ostream & out)
const;
1653 const unsigned int next_element_index,
1654 std::ostream & out)
const;
1682 template <
int dim,
int spacedim>
1685 const unsigned int next_element_index,
1686 std::ostream & out)
const;
1693 const unsigned int next_element_index,
1694 std::ostream & out)
const;
1701 const unsigned int next_element_index,
1702 std::ostream & out)
const;
1705 const unsigned int next_element_index,
1706 std::ostream & out)
const;
1714 const unsigned int next_element_index,
1715 std::ostream & out)
const;
1722 const unsigned int next_element_index,
1723 std::ostream & out)
const;
1740 float camera_focus);
1754 template <
int dim,
int spacedim>
1786 template <
int dim,
int spacedim>
1822 DEAL_II_NAMESPACE_CLOSE
void parse_parameters(ParameterHandler ¶m)
void parse_parameters(ParameterHandler ¶m)
unsigned int n_boundary_faces(const Triangulation< dim, spacedim > &tria) const
OutputFormat default_format
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 OutputFormat parse_output_format(const std::string &format_name)
bool margin
Margin around the plotted area.
bool write_additional_boundary_lines
void write_xfig(const Triangulation< dim, spacedim > &tria, std::ostream &out, const Mapping< dim, spacedim > *mapping=nullptr) const
unsigned int n_boundary_face_points
static void declare_parameters(ParameterHandler ¶m)
GridOutFlags::Eps< 2 > eps_flags_2
void write_vtu(const Triangulation< dim, spacedim > &tria, std::ostream &out) const
Use transparent value of SVG.
void parse_parameters(ParameterHandler ¶m)
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
static void declare_parameters(ParameterHandler ¶m)
Convert the level number into the cell color.
write() calls write_eps()
unsigned int line_thickness
Thickness of the lines between cells.
bool convert_level_number_to_height
static Point< 2 > svg_project_point(Point< 3 > point, Point< 3 > camera_position, Point< 3 > camera_direction, Point< 3 > camera_horizontal, float camera_focus)
void write_mathgl(const Triangulation< dim, spacedim > &tria, std::ostream &out) const
unsigned int boundary_line_thickness
Thickness of lines at the boundary.
unsigned int write_msh_faces(const Triangulation< dim, spacedim > &tria, const unsigned int next_element_index, std::ostream &out) const
void parse_parameters(ParameterHandler ¶m)
unsigned int n_extra_curved_line_points
write() calls write_ucd()
void write_gnuplot(const Triangulation< dim, spacedim > &tria, std::ostream &out, const Mapping< dim, spacedim > *mapping=nullptr) const
unsigned int n_boundary_lines(const Triangulation< dim, spacedim > &tria) const
GridOutFlags::Vtk vtk_flags
bool label_cell_index
Write cell index into each cell. Defaults to true.
GridOutFlags::Gnuplot gnuplot_flags
void write_svg(const Triangulation< 2, 2 > &tria, std::ostream &out) const
Convert the global subdomain id into the cell color.
unsigned int & n_boundary_face_points
Convert the material id into the cell color.
static void declare_parameters(ParameterHandler ¶m)
std::size_t memory_consumption() const
GridOutFlags::MathGL mathgl_flags
write() calls write_mathgl()
GridOutFlags::DX dx_flags
GridOutFlags::Msh msh_flags
GridOutFlags::Eps< 1 > eps_flags_1
write() calls write_gnuplot()
bool write_cell_number_level
bool label_material_id
Write material id of each cell. Defaults to false.
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)
Abstract base class for mapping classes.
GridOutFlags::XFig xfig_flags
bool label_subdomain_id
Write subdomain id of each cell. Defaults to false.
#define DeclException0(Exception0)
Ucd(const bool write_preamble=false, const bool write_faces=false, const bool write_lines=false)
static void declare_parameters(ParameterHandler ¶m)
bool label_level_subdomain_id
Write level subdomain id of each cell. Defaults to false.
static std::string get_output_format_names()
Convert the subdomain id into the cell color.
Msh(const bool write_faces=false, const bool write_lines=false)
void write_vtk(const Triangulation< dim, spacedim > &tria, std::ostream &out) const
GridOutFlags::Ucd ucd_flags
static void declare_parameters(ParameterHandler ¶m)
static void declare_parameters(ParameterHandler ¶m)
float cell_font_scaling
Scaling of the font for cell annotations. Defaults to 1.
Convert the level subdomain id into the cell color.
write() calls write_xfig()
bool write_vertex_numbers
Convert the level subdomain id into the cell color.
Convert the level into the cell color.
void parse_parameters(ParameterHandler ¶m)
unsigned int n_boundary_face_points
static void declare_parameters(ParameterHandler ¶m)
unsigned int write_ucd_faces(const Triangulation< dim, spacedim > &tria, const unsigned int next_element_index, std::ostream &out) const
write() calls write_msh()
void write_ucd(const Triangulation< dim, spacedim > &tria, std::ostream &out) const
unsigned int write_ucd_lines(const Triangulation< dim, spacedim > &tria, const unsigned int next_element_index, std::ostream &out) const
write() calls write_svg()
unsigned int write_msh_lines(const Triangulation< dim, spacedim > &tria, const unsigned int next_element_index, std::ostream &out) const
GridOutFlags::Svg svg_flags
Svg(const unsigned int line_thickness=2, const unsigned int boundary_line_thickness=4, 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=true, const bool label_cell_index=true, const bool label_material_id=false, const bool label_subdomain_id=false, const bool draw_colorbar=true, const bool draw_legend=true)
bool color_lines_on_user_flag
void parse_parameters(ParameterHandler ¶m)
void write_eps(const Triangulation< dim, spacedim > &tria, std::ostream &out, const Mapping< dim, spacedim > *mapping=nullptr) const
Convert the material id into the cell color (default)
float level_height_factor
GridOutFlags::Eps< 3 > eps_flags_3
static ::ExceptionBase & ExcInvalidState()
write() calls write_vtu()
static void declare_parameters(ParameterHandler ¶m)
void set_flags(const GridOutFlags::DX &flags)
bool label_level_number
Write level number into each cell. Defaults to true.
void parse_parameters(ParameterHandler ¶m)
void write_dx(const Triangulation< dim, spacedim > &tria, std::ostream &out) const
void write(const Triangulation< dim, spacedim > &tria, std::ostream &out, const OutputFormat output_format, const Mapping< dim, spacedim > *mapping=nullptr) const
Gnuplot & operator=(const Gnuplot &flags)
GridOutFlags::Vtu vtu_flags
write() calls write_vtk()
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)
void write_msh(const Triangulation< dim, spacedim > &tria, std::ostream &out) const
std::string default_suffix() const