|
Reference documentation for deal.II version 9.2.0
|
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\)
\(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\)
\(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\)
\(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
Go to the documentation of this file.
16 #ifndef dealii_grid_out_h
17 #define dealii_grid_out_h
34 template <
int dim,
int spacedim>
36 template <
int dim,
int spacedim>
289 Gnuplot(
const bool write_cell_number =
false,
401 const unsigned int size = 300,
446 const unsigned int size = 300,
447 const double line_width = 0.5,
448 const bool color_lines_on_user_flag =
false,
449 const unsigned int n_boundary_face_points = 2);
500 const unsigned int size = 300,
501 const double line_width = 0.5,
502 const bool color_lines_on_user_flag =
false,
503 const unsigned int n_boundary_face_points = 2,
504 const bool write_cell_numbers =
false,
505 const bool write_cell_number_level =
true,
506 const bool write_vertex_numbers =
false,
507 const bool color_lines_level =
false);
550 const unsigned int size = 300,
551 const double line_width = 0.5,
552 const bool color_lines_on_user_flag =
false,
553 const unsigned int n_boundary_face_points = 2,
554 const double azimut_angle = 60,
555 const double turn_angle = 30);
1067 template <
int dim,
int spacedim>
1101 template <
int dim,
int spacedim>
1125 template <
int dim,
int spacedim>
1148 template <
int dim,
int spacedim>
1181 template <
int dim,
int spacedim>
1205 template <
int dim,
int spacedim>
1239 template <
int dim,
int spacedim>
1258 template <
int dim,
int spacedim>
1261 std::ostream & out)
const;
1301 template <
int dim,
int spacedim>
1322 template <
int dim,
int spacedim>
1356 template <
int dim,
int spacedim>
1359 const std::string &filename_without_extension,
1360 const bool view_levels =
false,
1361 const bool include_artificial =
false)
const;
1367 template <
int dim,
int spacedim>
1377 template <
int dim,
int spacedim>
1624 template <
int dim,
int spacedim>
1627 const unsigned int next_element_index,
1628 std::ostream & out)
const;
1635 const unsigned int next_element_index,
1636 std::ostream & out)
const;
1643 const unsigned int next_element_index,
1644 std::ostream & out)
const;
1647 const unsigned int next_element_index,
1648 std::ostream & out)
const;
1677 template <
int dim,
int spacedim>
1680 const unsigned int next_element_index,
1681 std::ostream & out)
const;
1688 const unsigned int next_element_index,
1689 std::ostream & out)
const;
1697 const unsigned int next_element_index,
1698 std::ostream & out)
const;
1706 const unsigned int next_element_index,
1707 std::ostream & out)
const;
1713 const unsigned int next_element_index,
1714 std::ostream & out)
const;
1721 const unsigned int next_element_index,
1722 std::ostream & out)
const;
1749 template <
int dim,
int spacedim>
1752 const unsigned int next_element_index,
1753 std::ostream & out)
const;
1760 const unsigned int next_element_index,
1761 std::ostream & out)
const;
1769 const unsigned int next_element_index,
1770 std::ostream & out)
const;
1773 const unsigned int next_element_index,
1774 std::ostream & out)
const;
1802 template <
int dim,
int spacedim>
1805 const unsigned int next_element_index,
1806 std::ostream & out)
const;
1813 const unsigned int next_element_index,
1814 std::ostream & out)
const;
1821 const unsigned int next_element_index,
1822 std::ostream & out)
const;
1829 const unsigned int next_element_index,
1830 std::ostream & out)
const;
1838 const unsigned int next_element_index,
1839 std::ostream & out)
const;
1846 const unsigned int next_element_index,
1847 std::ostream & out)
const;
1862 template <
int dim,
int spacedim>
1899 template <
int dim,
int spacedim>
GridOutFlags::XFig xfig_flags
static void declare_parameters(ParameterHandler ¶m)
@ gnuplot
write() calls write_gnuplot()
float level_height_factor
unsigned int n_boundary_lines(const Triangulation< dim, spacedim > &tria) const
unsigned int & n_boundary_face_points
static void declare_parameters(ParameterHandler ¶m)
bool output_only_relevant
Msh(const bool write_faces=false, const bool write_lines=false)
void parse_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)
static void declare_parameters(ParameterHandler ¶m)
static void declare_parameters(ParameterHandler ¶m)
@ none
Do nothing in write()
void parse_parameters(ParameterHandler ¶m)
unsigned int n_boundary_face_points
void write(const Triangulation< dim, spacedim > &tria, std::ostream &out, const OutputFormat output_format, const Mapping< dim, spacedim > *mapping=nullptr) const
@ xfig
write() calls write_xfig()
static std::string get_output_format_names()
static void declare_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_vtk(const Triangulation< dim, spacedim > &tria, std::ostream &out) const
@ level_number
Convert the level number into the cell color.
GridOutFlags::Svg svg_flags
bool label_level_subdomain_id
void parse_parameters(ParameterHandler ¶m)
@ level_subdomain_id
Convert the level subdomain id into the cell color.
std::size_t memory_consumption() const
@ svg
write() calls write_svg()
void parse_parameters(ParameterHandler ¶m)
GridOutFlags::Gnuplot gnuplot_flags
void write_eps(const Triangulation< dim, spacedim > &tria, std::ostream &out, const Mapping< dim, spacedim > *mapping=nullptr) const
GridOutFlags::Eps< 3 > eps_flags_3
void parse_parameters(ParameterHandler ¶m)
void set_flags(const GridOutFlags::DX &flags)
@ msh
write() calls write_msh()
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)
bool write_additional_boundary_lines
Abstract base class for mapping classes.
Vtu(const bool serialize_triangulation=false)
unsigned int write_msh_faces(const Triangulation< dim, spacedim > &tria, const unsigned int next_element_index, std::ostream &out) const
unsigned int write_ucd_lines(const Triangulation< dim, spacedim > &tria, const unsigned int next_element_index, std::ostream &out) const
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
static void declare_parameters(ParameterHandler ¶m)
void write_ucd(const Triangulation< dim, spacedim > &tria, std::ostream &out) const
static void declare_parameters(ParameterHandler ¶m)
unsigned int n_extra_curved_line_points
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)
void write_vtu(const Triangulation< dim, spacedim > &tria, std::ostream &out) const
void write_gnuplot(const Triangulation< dim, spacedim > &tria, std::ostream &out, const Mapping< dim, spacedim > *mapping=nullptr) const
@ vtu
write() calls write_vtu()
@ vtk
write() calls write_vtk()
std::string default_suffix() const
#define DEAL_II_NAMESPACE_OPEN
GridOutFlags::Vtk vtk_flags
@ material_id
Convert the material id into the cell color.
unsigned int n_boundary_faces(const Triangulation< dim, spacedim > &tria) const
@ level_number
Convert the level into the cell color.
unsigned int line_thickness
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
@ subdomain_id
Convert the subdomain id into the cell color.
void parse_parameters(ParameterHandler ¶m)
GridOutFlags::MathGL mathgl_flags
#define DEAL_II_DEPRECATED
@ subdomain_id
Convert the global subdomain id into the cell color.
@ level_subdomain_id
Convert the level subdomain id into the cell color.
void write_xfig(const Triangulation< dim, spacedim > &tria, std::ostream &out, const Mapping< dim, spacedim > *mapping=nullptr) const
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)
@ dx
write() calls write_dx()
GridOutFlags::Ucd ucd_flags
static void declare_parameters(ParameterHandler ¶m)
bool serialize_triangulation
bool convert_level_number_to_height
GridOutFlags::Eps< 2 > eps_flags_2
types::global_dof_index size_type
@ eps
write() calls write_eps()
void write_svg(const Triangulation< 2, 2 > &tria, std::ostream &out) const
bool write_cell_number_level
Gnuplot & operator=(const Gnuplot &flags)
GridOutFlags::DX dx_flags
OutputFormat default_format
GridOutFlags::Eps< 1 > eps_flags_1
#define DeclException0(Exception0)
bool color_lines_on_user_flag
static OutputFormat parse_output_format(const std::string &format_name)
@ mathgl
write() calls write_mathgl()
unsigned int boundary_line_thickness
void write_mathgl(const Triangulation< dim, spacedim > &tria, std::ostream &out) const
@ material_id
Convert the material id into the cell color (default)
@ ucd
write() calls write_ucd()
enum GridOutFlags::XFig::Coloring color_by
unsigned int write_ucd_faces(const Triangulation< dim, spacedim > &tria, const unsigned int next_element_index, std::ostream &out) const
GridOutFlags::Vtu vtu_flags
Ucd(const bool write_preamble=false, const bool write_faces=false, const bool write_lines=false)
#define DEAL_II_NAMESPACE_CLOSE
unsigned int n_boundary_face_points
static ::ExceptionBase & ExcInvalidState()
GridOutFlags::Msh msh_flags
void parse_parameters(ParameterHandler ¶m)
void write_dx(const Triangulation< dim, spacedim > &tria, std::ostream &out) const
bool write_vertex_numbers