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\}}\)
grid_out.h
Go to the documentation of this file.
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 1999 - 2020 by the deal.II authors
4 //
5 // This file is part of the deal.II library.
6 //
7 // The deal.II library is free software; you can use it, redistribute
8 // it, and/or modify it under the terms of the GNU Lesser General
9 // Public License as published by the Free Software Foundation; either
10 // version 2.1 of the License, or (at your option) any later version.
11 // The full text of the license can be found in the file LICENSE.md at
12 // the top level directory of deal.II.
13 //
14 // ---------------------------------------------------------------------
15 
16 #ifndef dealii_grid_out_h
17 #define dealii_grid_out_h
18 
19 
20 
21 #include <deal.II/base/config.h>
22 
25 #include <deal.II/base/point.h>
26 
27 #include <string>
28 
30 
31 // Forward declarations
32 #ifndef DOXYGEN
33 class ParameterHandler;
34 template <int dim, int spacedim>
35 class Triangulation;
36 template <int dim, int spacedim>
37 class Mapping;
38 #endif
39 
40 
49 namespace GridOutFlags
50 {
56  struct DX
57  {
62 
67 
72 
77 
83 
87  DX(const bool write_cells = true,
88  const bool write_faces = false,
89  const bool write_diameter = false,
90  const bool write_measure = false,
91  const bool write_all_faces = true);
92 
96  static void
98 
102  void
104  };
105 
111  struct Msh
112  {
141 
145  Msh(const bool write_faces = false, const bool write_lines = false);
149  static void
151 
155  void
157  };
158 
159 
165  struct Ucd
166  {
177 
191 
207 
211  Ucd(const bool write_preamble = false,
212  const bool write_faces = false,
213  const bool write_lines = false);
214 
218  static void
220 
224  void
226  };
227 
228 
234  struct Gnuplot
235  {
246 
254 
266 
272 
285 
289  Gnuplot(const bool write_cell_number = false,
290  const unsigned int n_extra_curved_line_points = 2,
291  const bool curved_inner_cells = false,
292  const bool write_additional_boundary_lines = true);
293 
298  Gnuplot(const Gnuplot &flags);
299 
304  Gnuplot &
305  operator=(const Gnuplot &flags);
306 
310  static void
312 
316  void
318  };
319 
332  {
338  enum SizeType
339  {
348  };
349 
354 
362  unsigned int size;
363 
367  double line_width;
368 
376 
388 
396 
401  const unsigned int size = 300,
402  const double line_width = 0.5,
403  const bool color_lines_on_user_flag = false,
404  const unsigned int n_boundary_face_points = 2,
405  const bool color_lines_level = false);
409  static void
411 
415  void
417  };
418 
419 
430  template <int dim>
431  struct Eps
432  {};
433 
439  template <>
440  struct Eps<1> : public EpsFlagsBase
441  {
445  Eps(const SizeType size_type = width,
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);
453  static void
454  declare_parameters(ParameterHandler &param);
455 
459  void
460  parse_parameters(ParameterHandler &param);
461  };
462 
463 
469  template <>
470  struct Eps<2> : public EpsFlagsBase
471  {
489 
495 
499  Eps(const SizeType size_type = width,
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);
511  static void
512  declare_parameters(ParameterHandler &param);
513 
517  void
518  parse_parameters(ParameterHandler &param);
519  };
520 
526  template <>
527  struct Eps<3> : public EpsFlagsBase
528  {
534  double azimut_angle;
535 
544  double turn_angle;
545 
549  Eps(const SizeType size_type = width,
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);
559  static void
560  declare_parameters(ParameterHandler &param);
561 
565  void
566  parse_parameters(ParameterHandler &param);
567  };
568 
574  struct XFig
575  {
580 
584  enum Coloring
585  {
594  } color_by;
595 
603 
608 
613 
619 
626 
632 
639 
644 
649 
653  XFig();
657  static void
659 
663  void
665  };
666 
667 
680  struct Svg
681  {
686  unsigned int height;
687 
692  unsigned int width;
693 
697  unsigned int line_thickness;
702 
706  bool margin;
707 
712  {
717 
722 
728  };
729 
734 
735  // View angles for the perspective view of the grid; Default is 0, 0 (top
736  // view).
737 
742 
747 
751  enum Coloring
752  {
763  };
764 
766 
770 
776 
785 
790 
795 
800 
805 
814 
820 
826 
830  Svg(const unsigned int line_thickness = 2,
831  const unsigned int boundary_line_thickness = 4,
832  const bool margin = true,
833  const Background background = white,
834  const int azimuth_angle = 0,
835  const int polar_angle = 0,
837  const bool convert_level_number_to_height = false,
838  const bool label_level_number = false,
839  const bool label_cell_index = false,
840  const bool label_material_id = false,
841  const bool label_subdomain_id = false,
842  const bool draw_colorbar = false,
843  const bool draw_legend = false,
844  const bool label_boundary_id = false);
845  };
846 
852  struct MathGL
853  {
857  MathGL();
858 
863 
867  static void
869 
873  void
875  };
876 
877 
884  struct Vtk : public DataOutBase::VtkFlags
885  {
889  Vtk(const bool output_cells = true,
890  const bool output_faces = true,
891  const bool output_edges = true,
892  const bool output_only_relevant = true)
897  {}
898 
903 
908 
913 
919  };
920 
921 
930  struct Vtu : public DataOutBase::VtkFlags
931  {
932  Vtu(const bool serialize_triangulation = false)
934  {}
935 
940  };
941 } // namespace GridOutFlags
942 
943 
944 
1020 class GridOut
1021 {
1022 public:
1029  {
1052  };
1053 
1057  GridOut();
1058 
1067  template <int dim, int spacedim>
1068  void
1069  write_dx(const Triangulation<dim, spacedim> &tria, std::ostream &out) const;
1070 
1101  template <int dim, int spacedim>
1102  void
1104  std::ostream & out,
1105  const Mapping<dim, spacedim> * mapping = nullptr) const;
1106 
1125  template <int dim, int spacedim>
1126  void
1127  write_msh(const Triangulation<dim, spacedim> &tria, std::ostream &out) const;
1128 
1148  template <int dim, int spacedim>
1149  void
1150  write_ucd(const Triangulation<dim, spacedim> &tria, std::ostream &out) const;
1151 
1181  template <int dim, int spacedim>
1182  void
1184  std::ostream & out,
1185  const Mapping<dim, spacedim> * mapping = nullptr) const;
1186 
1205  template <int dim, int spacedim>
1206  void
1208  std::ostream & out,
1209  const Mapping<dim, spacedim> * mapping = nullptr) const;
1210 
1231  void
1232  write_svg(const Triangulation<2, 2> &tria, std::ostream &out) const;
1233 
1239  template <int dim, int spacedim>
1240  void
1241  write_svg(const Triangulation<dim, spacedim> &tria, std::ostream &out) const;
1242 
1243 
1258  template <int dim, int spacedim>
1259  void
1261  std::ostream & out) const;
1262 
1301  template <int dim, int spacedim>
1302  void
1303  write_vtk(const Triangulation<dim, spacedim> &tria, std::ostream &out) const;
1304 
1322  template <int dim, int spacedim>
1323  void
1324  write_vtu(const Triangulation<dim, spacedim> &tria, std::ostream &out) const;
1325 
1356  template <int dim, int spacedim>
1357  void
1359  const std::string &filename_without_extension,
1360  const bool view_levels = false,
1361  const bool include_artificial = false) const;
1362 
1367  template <int dim, int spacedim>
1368  void
1369  write(const Triangulation<dim, spacedim> &tria,
1370  std::ostream & out,
1371  const OutputFormat output_format,
1372  const Mapping<dim, spacedim> * mapping = nullptr) const;
1373 
1377  template <int dim, int spacedim>
1378  void
1379  write(const Triangulation<dim, spacedim> &tria,
1380  std::ostream & out,
1381  const Mapping<dim, spacedim> * mapping = nullptr) const;
1382 
1386  void
1387  set_flags(const GridOutFlags::DX &flags);
1388 
1392  void
1393  set_flags(const GridOutFlags::Msh &flags);
1394 
1398  void
1399  set_flags(const GridOutFlags::Ucd &flags);
1400 
1404  void
1405  set_flags(const GridOutFlags::Gnuplot &flags);
1406 
1410  void
1411  set_flags(const GridOutFlags::Eps<1> &flags);
1412 
1416  void
1417  set_flags(const GridOutFlags::Eps<2> &flags);
1418 
1422  void
1423  set_flags(const GridOutFlags::Eps<3> &flags);
1424 
1428  void
1429  set_flags(const GridOutFlags::XFig &flags);
1430 
1434  void
1435  set_flags(const GridOutFlags::Svg &flags);
1436 
1440  void
1441  set_flags(const GridOutFlags::MathGL &flags);
1442 
1446  void
1447  set_flags(const GridOutFlags::Vtk &flags);
1448 
1452  void
1453  set_flags(const GridOutFlags::Vtu &flags);
1454 
1469  static std::string
1470  default_suffix(const OutputFormat output_format);
1471 
1476  std::string
1477  default_suffix() const;
1478 
1492  static OutputFormat
1493  parse_output_format(const std::string &format_name);
1494 
1500  static std::string
1502 
1506  static void
1508 
1512  void
1514 
1519  std::size_t
1520  memory_consumption() const;
1521 
1526 
1527 private:
1532 
1537 
1543 
1549 
1555 
1561 
1567 
1573 
1578 
1583 
1588 
1593 
1598 
1624  template <int dim, int spacedim>
1625  unsigned int
1627  const unsigned int next_element_index,
1628  std::ostream & out) const;
1629 
1633  unsigned int
1635  const unsigned int next_element_index,
1636  std::ostream & out) const;
1641  unsigned int
1643  const unsigned int next_element_index,
1644  std::ostream & out) const;
1645  unsigned int
1647  const unsigned int next_element_index,
1648  std::ostream & out) const;
1649 
1650 
1651 
1677  template <int dim, int spacedim>
1678  unsigned int
1680  const unsigned int next_element_index,
1681  std::ostream & out) const;
1682 
1686  unsigned int
1688  const unsigned int next_element_index,
1689  std::ostream & out) const;
1690 
1695  unsigned int
1697  const unsigned int next_element_index,
1698  std::ostream & out) const;
1699 
1704  unsigned int
1706  const unsigned int next_element_index,
1707  std::ostream & out) const;
1711  unsigned int
1713  const unsigned int next_element_index,
1714  std::ostream & out) const;
1719  unsigned int
1721  const unsigned int next_element_index,
1722  std::ostream & out) const;
1723 
1749  template <int dim, int spacedim>
1750  unsigned int
1752  const unsigned int next_element_index,
1753  std::ostream & out) const;
1754 
1758  unsigned int
1760  const unsigned int next_element_index,
1761  std::ostream & out) const;
1762 
1767  unsigned int
1769  const unsigned int next_element_index,
1770  std::ostream & out) const;
1771  unsigned int
1773  const unsigned int next_element_index,
1774  std::ostream & out) const;
1775 
1776 
1802  template <int dim, int spacedim>
1803  unsigned int
1805  const unsigned int next_element_index,
1806  std::ostream & out) const;
1807 
1811  unsigned int
1813  const unsigned int next_element_index,
1814  std::ostream & out) const;
1819  unsigned int
1821  const unsigned int next_element_index,
1822  std::ostream & out) const;
1827  unsigned int
1829  const unsigned int next_element_index,
1830  std::ostream & out) const;
1831 
1832 
1836  unsigned int
1838  const unsigned int next_element_index,
1839  std::ostream & out) const;
1844  unsigned int
1846  const unsigned int next_element_index,
1847  std::ostream & out) const;
1848 
1849 
1862  template <int dim, int spacedim>
1863  unsigned int
1865 
1870  unsigned int
1871  n_boundary_faces(const Triangulation<1, 1> &tria) const;
1872 
1877  unsigned int
1878  n_boundary_faces(const Triangulation<1, 2> &tria) const;
1879 
1884  unsigned int
1885  n_boundary_faces(const Triangulation<1, 3> &tria) const;
1886 
1899  template <int dim, int spacedim>
1900  unsigned int
1902 
1907  unsigned int
1908  n_boundary_lines(const Triangulation<1, 1> &tria) const;
1909 
1914  unsigned int
1915  n_boundary_lines(const Triangulation<1, 2> &tria) const;
1916 
1921  unsigned int
1922  n_boundary_lines(const Triangulation<1, 3> &tria) const;
1923 
1928  unsigned int
1929  n_boundary_lines(const Triangulation<2, 2> &tria) const;
1934  unsigned int
1935  n_boundary_lines(const Triangulation<2, 3> &tria) const;
1936 };
1937 
1938 
1939 
1941 
1942 #endif
GridOut::xfig_flags
GridOutFlags::XFig xfig_flags
Definition: grid_out.h:1577
GridOutFlags::Gnuplot::declare_parameters
static void declare_parameters(ParameterHandler &param)
Definition: grid_out.cc:187
GridOut::gnuplot
@ gnuplot
write() calls write_gnuplot()
Definition: grid_out.h:1035
GridOutFlags::Svg::level_height_factor
float level_height_factor
Definition: grid_out.h:775
GridOutFlags::Gnuplot
Definition: grid_out.h:234
GridOutFlags::Svg::background
Background background
Definition: grid_out.h:733
GridOutFlags::EpsFlagsBase::height
@ height
Definition: grid_out.h:347
GridOutFlags::XFig::boundary_thickness
int boundary_thickness
Definition: grid_out.h:648
GridOut::n_boundary_lines
unsigned int n_boundary_lines(const Triangulation< dim, spacedim > &tria) const
Definition: grid_out.cc:3604
GridOutFlags::Eps< 3 >::turn_angle
double turn_angle
Definition: grid_out.h:544
GridOutFlags::XFig::Coloring
Coloring
Definition: grid_out.h:584
GridOutFlags::XFig::line_thickness
int line_thickness
Definition: grid_out.h:638
GridOutFlags::Msh
Definition: grid_out.h:111
GridOutFlags::Gnuplot::curved_inner_cells
bool curved_inner_cells
Definition: grid_out.h:271
GridOutFlags::Gnuplot::n_boundary_face_points
unsigned int & n_boundary_face_points
Definition: grid_out.h:265
GridOutFlags::XFig::declare_parameters
static void declare_parameters(ParameterHandler &param)
Definition: grid_out.cc:401
GridOutFlags::Vtk::output_only_relevant
bool output_only_relevant
Definition: grid_out.h:918
GridOutFlags::Svg::none
@ none
No cell coloring.
Definition: grid_out.h:754
GridOutFlags::Msh::Msh
Msh(const bool write_faces=false, const bool write_lines=false)
Definition: grid_out.cc:100
dealii
Definition: namespace_dealii.h:25
GridOutFlags::MathGL::parse_parameters
void parse_parameters(ParameterHandler &param)
Definition: grid_out.cc:477
GridOutFlags::Eps< 3 >
Definition: grid_out.h:527
GridOutFlags::XFig::line_style
int line_style
Definition: grid_out.h:631
GridOutFlags::EpsFlagsBase::parse_parameters
void parse_parameters(ParameterHandler &param)
Definition: grid_out.cc:251
GridOutFlags::Eps< 3 >::azimut_angle
double azimut_angle
Definition: grid_out.h:534
Triangulation
Definition: tria.h:1109
GridOutFlags::Vtk::Vtk
Vtk(const bool output_cells=true, const bool output_faces=true, const bool output_edges=true, const bool output_only_relevant=true)
Definition: grid_out.h:889
GridOutFlags::Ucd::declare_parameters
static void declare_parameters(ParameterHandler &param)
Definition: grid_out.cc:132
GridOutFlags::XFig::fill_style
int fill_style
Definition: grid_out.h:625
GridOutFlags::MathGL::declare_parameters
static void declare_parameters(ParameterHandler &param)
Definition: grid_out.cc:471
GridOut::none
@ none
Do nothing in write()
Definition: grid_out.h:1031
GridOutFlags::Svg::Coloring
Coloring
Definition: grid_out.h:751
GridOutFlags::Msh::parse_parameters
void parse_parameters(ParameterHandler &param)
Definition: grid_out.cc:114
GridOutFlags::XFig::n_boundary_face_points
unsigned int n_boundary_face_points
Definition: grid_out.h:607
GridOut::write
void write(const Triangulation< dim, spacedim > &tria, std::ostream &out, const OutputFormat output_format, const Mapping< dim, spacedim > *mapping=nullptr) const
Definition: grid_out.cc:4862
GridOutFlags::Svg::label_cell_index
bool label_cell_index
Definition: grid_out.h:789
GridOut::xfig
@ xfig
write() calls write_xfig()
Definition: grid_out.h:1041
GridOutFlags::Svg::transparent
@ transparent
Definition: grid_out.h:716
GridOutFlags::EpsFlagsBase::width
@ width
Definition: grid_out.h:343
GridOut::get_output_format_names
static std::string get_output_format_names()
Definition: grid_out.cc:664
GridOutFlags::XFig
Definition: grid_out.h:574
GridOutFlags::Ucd::write_preamble
bool write_preamble
Definition: grid_out.h:176
GridOutFlags::Msh::declare_parameters
static void declare_parameters(ParameterHandler &param)
Definition: grid_out.cc:106
GridOutFlags::Gnuplot::Gnuplot
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)
Definition: grid_out.cc:150
GridOut::write_vtk
void write_vtk(const Triangulation< dim, spacedim > &tria, std::ostream &out) const
Definition: grid_out.cc:3148
GridOutFlags::Svg::level_number
@ level_number
Convert the level number into the cell color.
Definition: grid_out.h:758
GridOut::svg_flags
GridOutFlags::Svg svg_flags
Definition: grid_out.h:1582
GridOutFlags::Ucd
Definition: grid_out.h:165
GridOutFlags::Svg
Definition: grid_out.h:680
GridOutFlags::Svg::label_level_subdomain_id
bool label_level_subdomain_id
Definition: grid_out.h:804
GridOutFlags::DX
Definition: grid_out.h:56
GridOutFlags::XFig::parse_parameters
void parse_parameters(ParameterHandler &param)
Definition: grid_out.cc:417
GridOutFlags::XFig::level_subdomain_id
@ level_subdomain_id
Convert the level subdomain id into the cell color.
Definition: grid_out.h:593
GridOutFlags::Svg::draw_colorbar
bool draw_colorbar
Definition: grid_out.h:819
GridOut::memory_consumption
std::size_t memory_consumption() const
Definition: grid_out.cc:766
GridOut::svg
@ svg
write() calls write_svg()
Definition: grid_out.h:1045
GridOut::parse_parameters
void parse_parameters(ParameterHandler &param)
Definition: grid_out.cc:720
GridOut::gnuplot_flags
GridOutFlags::Gnuplot gnuplot_flags
Definition: grid_out.h:1554
GridOutFlags::EpsFlagsBase::size
unsigned int size
Definition: grid_out.h:362
GridOut::write_eps
void write_eps(const Triangulation< dim, spacedim > &tria, std::ostream &out, const Mapping< dim, spacedim > *mapping=nullptr) const
Definition: grid_out.cc:4852
GridOutFlags::DX::write_cells
bool write_cells
Definition: grid_out.h:61
GridOut::eps_flags_3
GridOutFlags::Eps< 3 > eps_flags_3
Definition: grid_out.h:1572
GridOutFlags::Ucd::parse_parameters
void parse_parameters(ParameterHandler &param)
Definition: grid_out.cc:141
GridOutFlags::Svg::width
unsigned int width
Definition: grid_out.h:692
GridOutFlags::Svg::label_level_number
bool label_level_number
Definition: grid_out.h:784
GridOutFlags::Ucd::write_faces
bool write_faces
Definition: grid_out.h:190
GridOutFlags::XFig::boundary_style
int boundary_style
Definition: grid_out.h:643
GridOut::set_flags
void set_flags(const GridOutFlags::DX &flags)
Definition: grid_out.cc:491
data_out_base.h
GridOutFlags::EpsFlagsBase::size_type
SizeType size_type
Definition: grid_out.h:353
GridOut::msh
@ msh
write() calls write_msh()
Definition: grid_out.h:1043
GridOutFlags::DX::DX
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)
Definition: grid_out.cc:49
GridOutFlags::Gnuplot::write_additional_boundary_lines
bool write_additional_boundary_lines
Definition: grid_out.h:284
Mapping
Abstract base class for mapping classes.
Definition: mapping.h:302
GridOutFlags::Eps< 1 >
Definition: grid_out.h:440
GridOutFlags::Vtu::Vtu
Vtu(const bool serialize_triangulation=false)
Definition: grid_out.h:932
GridOut::write_msh_faces
unsigned int write_msh_faces(const Triangulation< dim, spacedim > &tria, const unsigned int next_element_index, std::ostream &out) const
Definition: grid_out.cc:3708
GridOut::write_ucd_lines
unsigned int write_ucd_lines(const Triangulation< dim, spacedim > &tria, const unsigned int next_element_index, std::ostream &out) const
Definition: grid_out.cc:3911
GridOut::write_msh
void write_msh(const Triangulation< dim, spacedim > &tria, std::ostream &out) const
Definition: grid_out.cc:1040
GridOut::write_msh_lines
unsigned int write_msh_lines(const Triangulation< dim, spacedim > &tria, const unsigned int next_element_index, std::ostream &out) const
Definition: grid_out.cc:3750
GridOutFlags::EpsFlagsBase::declare_parameters
static void declare_parameters(ParameterHandler &param)
Definition: grid_out.cc:218
GridOut::write_ucd
void write_ucd(const Triangulation< dim, spacedim > &tria, std::ostream &out) const
Definition: grid_out.cc:1179
GridOutFlags::Eps< 2 >::write_cell_numbers
bool write_cell_numbers
Definition: grid_out.h:479
GridOutFlags::MathGL::MathGL
MathGL()
Definition: grid_out.cc:466
GridOut::OutputFormat
OutputFormat
Definition: grid_out.h:1028
GridOutFlags::Svg::margin
bool margin
Definition: grid_out.h:706
GridOutFlags::XFig::draw_boundary
bool draw_boundary
Definition: grid_out.h:579
GridOutFlags::DX::write_faces
bool write_faces
Definition: grid_out.h:66
GridOutFlags::DX::declare_parameters
static void declare_parameters(ParameterHandler &param)
Definition: grid_out.cc:62
GridOutFlags::Gnuplot::n_extra_curved_line_points
unsigned int n_extra_curved_line_points
Definition: grid_out.h:253
GridOutFlags::Svg::Svg
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)
Definition: grid_out.cc:429
GridOut::write_vtu
void write_vtu(const Triangulation< dim, spacedim > &tria, std::ostream &out) const
Definition: grid_out.cc:3360
GridOut::write_gnuplot
void write_gnuplot(const Triangulation< dim, spacedim > &tria, std::ostream &out, const Mapping< dim, spacedim > *mapping=nullptr) const
Definition: grid_out.cc:4337
GridOut::vtu
@ vtu
write() calls write_vtu()
Definition: grid_out.h:1051
GridOutFlags::MathGL
Definition: grid_out.h:852
GridOutFlags::Eps
Definition: grid_out.h:431
GridOut::vtk
@ vtk
write() calls write_vtk()
Definition: grid_out.h:1049
GridOut::default_suffix
std::string default_suffix() const
Definition: grid_out.cc:613
DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:358
GridOut::vtk_flags
GridOutFlags::Vtk vtk_flags
Definition: grid_out.h:1592
GridOutFlags::XFig::material_id
@ material_id
Convert the material id into the cell color.
Definition: grid_out.h:587
GridOut::n_boundary_faces
unsigned int n_boundary_faces(const Triangulation< dim, spacedim > &tria) const
Definition: grid_out.cc:3588
GridOutFlags::XFig::level_number
@ level_number
Convert the level into the cell color.
Definition: grid_out.h:589
GridOutFlags::Svg::line_thickness
unsigned int line_thickness
Definition: grid_out.h:697
GridOut::write_mesh_per_processor_as_vtu
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
Definition: grid_out.cc:3407
GridOutFlags::EpsFlagsBase::line_width
double line_width
Definition: grid_out.h:367
GridOutFlags::XFig::level_depth
bool level_depth
Definition: grid_out.h:602
GridOutFlags::Svg::subdomain_id
@ subdomain_id
Convert the subdomain id into the cell color.
Definition: grid_out.h:760
GridOutFlags::Svg::height
unsigned int height
Definition: grid_out.h:686
GridOutFlags::DX::parse_parameters
void parse_parameters(ParameterHandler &param)
Definition: grid_out.cc:90
GridOut::mathgl_flags
GridOutFlags::MathGL mathgl_flags
Definition: grid_out.h:1587
DEAL_II_DEPRECATED
#define DEAL_II_DEPRECATED
Definition: config.h:98
GridOutFlags::XFig::subdomain_id
@ subdomain_id
Convert the global subdomain id into the cell color.
Definition: grid_out.h:591
GridOutFlags::EpsFlagsBase
Definition: grid_out.h:331
GridOutFlags::Vtu
Definition: grid_out.h:930
GridOutFlags::DX::write_measure
bool write_measure
Definition: grid_out.h:76
GridOutFlags::DX::write_all_faces
bool write_all_faces
Definition: grid_out.h:82
GridOutFlags::EpsFlagsBase::color_lines_level
bool color_lines_level
Definition: grid_out.h:395
GridOutFlags::Svg::level_subdomain_id
@ level_subdomain_id
Convert the level subdomain id into the cell color.
Definition: grid_out.h:762
GridOut::write_xfig
void write_xfig(const Triangulation< dim, spacedim > &tria, std::ostream &out, const Mapping< dim, spacedim > *mapping=nullptr) const
Definition: grid_out.cc:1296
exceptions.h
DataOutBase::VtkFlags
Definition: data_out_base.h:1095
GridOutFlags::EpsFlagsBase::EpsFlagsBase
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)
Definition: grid_out.cc:202
GridOut::dx
@ dx
write() calls write_dx()
Definition: grid_out.h:1033
GridOutFlags
Definition: grid_out.h:49
GridOutFlags::Svg::coloring
Coloring coloring
Definition: grid_out.h:765
GridOutFlags::DX::write_diameter
bool write_diameter
Definition: grid_out.h:71
GridOut::ucd_flags
GridOutFlags::Ucd ucd_flags
Definition: grid_out.h:1548
GridOut::declare_parameters
static void declare_parameters(ParameterHandler &param)
Definition: grid_out.cc:671
GridOutFlags::Vtu::serialize_triangulation
bool serialize_triangulation
Definition: grid_out.h:939
GridOutFlags::Svg::convert_level_number_to_height
bool convert_level_number_to_height
Definition: grid_out.h:769
GridOut::eps_flags_2
GridOutFlags::Eps< 2 > eps_flags_2
Definition: grid_out.h:1566
LinearAlgebra::CUDAWrappers::kernel::size_type
types::global_dof_index size_type
Definition: cuda_kernels.h:45
GridOutFlags::Svg::draw_legend
bool draw_legend
Definition: grid_out.h:825
GridOut::eps
@ eps
write() calls write_eps()
Definition: grid_out.h:1037
GridOut::write_svg
void write_svg(const Triangulation< 2, 2 > &tria, std::ostream &out) const
Definition: grid_out.cc:1544
GridOutFlags::Eps< 2 >::write_cell_number_level
bool write_cell_number_level
Definition: grid_out.h:488
GridOutFlags::Ucd::write_lines
bool write_lines
Definition: grid_out.h:206
GridOutFlags::XFig::XFig
XFig()
Definition: grid_out.cc:386
GridOutFlags::Gnuplot::operator=
Gnuplot & operator=(const Gnuplot &flags)
Definition: grid_out.cc:174
GridOut::GridOut
GridOut()
Definition: grid_out.cc:485
GridOutFlags::Svg::azimuth_angle
int azimuth_angle
Definition: grid_out.h:741
GridOutFlags::EpsFlagsBase::SizeType
SizeType
Definition: grid_out.h:338
GridOut::dx_flags
GridOutFlags::DX dx_flags
Definition: grid_out.h:1536
GridOut::default_format
OutputFormat default_format
Definition: grid_out.h:1531
GridOut::eps_flags_1
GridOutFlags::Eps< 1 > eps_flags_1
Definition: grid_out.h:1560
GridOutFlags::Svg::label_material_id
bool label_material_id
Definition: grid_out.h:794
DeclException0
#define DeclException0(Exception0)
Definition: exceptions.h:473
GridOutFlags::Vtk
Definition: grid_out.h:884
GridOutFlags::EpsFlagsBase::color_lines_on_user_flag
bool color_lines_on_user_flag
Definition: grid_out.h:375
GridOut::parse_output_format
static OutputFormat parse_output_format(const std::string &format_name)
Definition: grid_out.cc:621
GridOut::mathgl
@ mathgl
write() calls write_mathgl()
Definition: grid_out.h:1047
Point< 2 >
GridOutFlags::Svg::boundary_line_thickness
unsigned int boundary_line_thickness
Definition: grid_out.h:701
GridOut::write_mathgl
void write_mathgl(const Triangulation< dim, spacedim > &tria, std::ostream &out) const
Definition: grid_out.cc:2819
GridOutFlags::Svg::polar_angle
int polar_angle
Definition: grid_out.h:746
GridOutFlags::Svg::material_id
@ material_id
Convert the material id into the cell color (default)
Definition: grid_out.h:756
GridOut::ucd
@ ucd
write() calls write_ucd()
Definition: grid_out.h:1039
GridOutFlags::XFig::color_by
enum GridOutFlags::XFig::Coloring color_by
GridOut::write_ucd_faces
unsigned int write_ucd_faces(const Triangulation< dim, spacedim > &tria, const unsigned int next_element_index, std::ostream &out) const
Definition: grid_out.cc:3869
GridOutFlags::Svg::Background
Background
Definition: grid_out.h:711
ParameterHandler
Definition: parameter_handler.h:845
config.h
GridOut::vtu_flags
GridOutFlags::Vtu vtu_flags
Definition: grid_out.h:1597
GridOutFlags::Gnuplot::write_cell_numbers
bool write_cell_numbers
Definition: grid_out.h:245
GridOutFlags::Ucd::Ucd
Ucd(const bool write_preamble=false, const bool write_faces=false, const bool write_lines=false)
Definition: grid_out.cc:121
GridOutFlags::XFig::offset
Point< 2 > offset
Definition: grid_out.h:618
DEAL_II_NAMESPACE_CLOSE
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:359
GridOutFlags::Eps< 2 >
Definition: grid_out.h:470
GridOut
Definition: grid_out.h:1020
GridOutFlags::EpsFlagsBase::n_boundary_face_points
unsigned int n_boundary_face_points
Definition: grid_out.h:387
GridOut::ExcInvalidState
static ::ExceptionBase & ExcInvalidState()
GridOutFlags::Svg::label_boundary_id
bool label_boundary_id
Definition: grid_out.h:813
GridOutFlags::Msh::write_faces
bool write_faces
Definition: grid_out.h:125
GridOutFlags::Svg::label_subdomain_id
bool label_subdomain_id
Definition: grid_out.h:799
GridOutFlags::Msh::write_lines
bool write_lines
Definition: grid_out.h:140
GridOutFlags::Svg::white
@ white
Definition: grid_out.h:721
GridOut::msh_flags
GridOutFlags::Msh msh_flags
Definition: grid_out.h:1542
GridOutFlags::Gnuplot::parse_parameters
void parse_parameters(ParameterHandler &param)
Definition: grid_out.cc:195
GridOutFlags::Vtk::output_faces
bool output_faces
Definition: grid_out.h:907
GridOutFlags::Vtk::output_edges
bool output_edges
Definition: grid_out.h:912
GridOutFlags::Svg::cell_font_scaling
float cell_font_scaling
Definition: grid_out.h:780
GridOutFlags::MathGL::draw_bounding_box
bool draw_bounding_box
Definition: grid_out.h:862
GridOut::write_dx
void write_dx(const Triangulation< dim, spacedim > &tria, std::ostream &out) const
Definition: grid_out.cc:801
GridOutFlags::Eps< 2 >::write_vertex_numbers
bool write_vertex_numbers
Definition: grid_out.h:494
GridOutFlags::Vtk::output_cells
bool output_cells
Definition: grid_out.h:902
GridOutFlags::XFig::scaling
Point< 2 > scaling
Definition: grid_out.h:612
point.h