ExaDG
Loading...
Searching...
No Matches
output_data_base.h
1/* ______________________________________________________________________
2 *
3 * ExaDG - High-Order Discontinuous Galerkin for the Exa-Scale
4 *
5 * Copyright (C) 2021 by the ExaDG authors
6 *
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <https://www.gnu.org/licenses/>.
19 * ______________________________________________________________________
20 */
21
22#ifndef INCLUDE_EXADG_POSTPROCESSOR_OUTPUT_DATA_BASE_H_
23#define INCLUDE_EXADG_POSTPROCESSOR_OUTPUT_DATA_BASE_H_
24
25#include <exadg/postprocessor/time_control.h>
26#include <exadg/utilities/print_functions.h>
27
28namespace ExaDG
29{
31{
33 : directory("output/"),
34 filename("name"),
35 write_surface_mesh(false),
36 write_boundary_IDs(false),
37 write_grid(false),
38 write_processor_id(false),
39 write_higher_order(true),
40 degree(1)
41 {
42 }
43
44 void
45 print(dealii::ConditionalOStream & pcout, bool unsteady)
46 {
47 if(time_control_data.is_active)
48 {
49 time_control_data.print(pcout, unsteady);
50
51 print_parameter(pcout, "Output directory", directory);
52 print_parameter(pcout, "Name of output files", filename);
53
54 print_parameter(pcout, "Write surface mesh", write_surface_mesh);
55 print_parameter(pcout, "Write boundary IDs", write_boundary_IDs);
56
57 print_parameter(pcout, "Write processor ID", write_processor_id);
58
59 print_parameter(pcout, "Write higher order", write_higher_order);
60 print_parameter(pcout, "Polynomial degree", degree);
61 }
62 }
63
64 TimeControlData time_control_data;
65
66 // output directory
67 std::string directory;
68
69 // name of generated output files
70 std::string filename;
71
72 // this variable decides whether the surface mesh is written separately
73 bool write_surface_mesh;
74
75 // this variable decides whether a vtk-file is written that allows a visualization of boundary
76 // IDs, e.g., to verify that boundary IDs have been set correctly. Note that in the current
77 // version of deal.II, boundaries with ID = 0 (default) are not visible, but only those with
78 // ID != 0.
79 bool write_boundary_IDs;
80
81 // write grid output for debug meshing
82 bool write_grid;
83
84 // write processor ID to scalar field in order to visualize the
85 // distribution of cells to processors
86 bool write_processor_id;
87
88 // write higher order output (NOTE: requires at least ParaView version 5.5, switch off if ParaView
89 // version is lower)
90 bool write_higher_order;
91
92 // defines polynomial degree used for output (for visualization in ParaView: Properties >
93 // Miscellaneous > Nonlinear Subdivision Level (use a value > 1)) if write_higher_order = true. In
94 // case of write_higher_order = false, this variable defines the number of subdivisions of a cell,
95 // with ParaView using linear interpolation for visualization on these subdivided cells.
96 unsigned int degree;
97};
98
99} // namespace ExaDG
100
101#endif /* INCLUDE_EXADG_POSTPROCESSOR_OUTPUT_DATA_BASE_H_ */
Definition driver.cpp:33
Definition output_data_base.h:31
Definition time_control.h:40