ExaDG
Loading...
Searching...
No Matches
parameters.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_LAPLACE_INPUT_PARAMETERS_H_
23#define INCLUDE_LAPLACE_INPUT_PARAMETERS_H_
24
25#include <exadg/grid/grid_data.h>
26#include <exadg/poisson/user_interface/enum_types.h>
27#include <exadg/solvers_and_preconditioners/multigrid/multigrid_parameters.h>
28#include <exadg/solvers_and_preconditioners/solvers/solver_data.h>
29#include <exadg/utilities/print_functions.h>
30
31namespace ExaDG
32{
33namespace Poisson
34{
36{
37public:
38 // standard constructor that initializes parameters with default values
39 Parameters();
40
41 void
42 check() const;
43
44 bool
45 involves_h_multigrid() const;
46
47 void
48 print(dealii::ConditionalOStream const & pcout, std::string const & name) const;
49
50private:
51 void
52 print_parameters_mathematical_model(dealii::ConditionalOStream const & pcout) const;
53
54 void
55 print_parameters_spatial_discretization(dealii::ConditionalOStream const & pcout) const;
56
57 void
58 print_parameters_solver(dealii::ConditionalOStream const & pcout) const;
59
60 void
61 print_parameters_numerical_parameters(dealii::ConditionalOStream const & pcout) const;
62
63public:
64 /**************************************************************************************/
65 /* */
66 /* MATHEMATICAL MODEL */
67 /* */
68 /**************************************************************************************/
69
70 // if the right-hand side f is unequal zero, set right_hand_side = true
71 bool right_hand_side;
72
73 /**************************************************************************************/
74 /* */
75 /* SPATIAL DISCRETIZATION */
76 /* */
77 /**************************************************************************************/
78
79 // Grid data
80 GridData grid;
81
82 // Mapping
83 unsigned int mapping_degree;
84
85 // mapping degree for coarser grids in h-multigrid
86 unsigned int mapping_degree_coarse_grids;
87
88 // type of spatial discretization approach
89 SpatialDiscretization spatial_discretization;
90
91 // polynomial degree of shape functions
92 unsigned int degree;
93
94 // Symmetric interior penalty Galerkin (SIPG) discretization
95 // interior penalty parameter scaling factor: default value is 1.0
96 double IP_factor;
97
98
99 /**************************************************************************************/
100 /* */
101 /* SOLVER */
102 /* */
103 /**************************************************************************************/
104
105 // description: see enum declaration
106 LinearSolver solver;
107
108 // solver data
109 SolverData solver_data;
110 bool compute_performance_metrics;
111
112 // description: see enum declaration
113 Preconditioner preconditioner;
114
115 // description: see declaration of MultigridData
116 MultigridData multigrid_data;
117
118 /**************************************************************************************/
119 /* */
120 /* NUMERICAL PARAMETERS */
121 /* */
122 /**************************************************************************************/
123
124 // By default, the matrix-free implementation performs separate loops over all cells,
125 // interior faces, and boundary faces. For a certain type of operations, however, it
126 // is necessary to perform the face-loop as a loop over all faces of a cell with an
127 // outer loop over all cells, e.g., preconditioners operating on the level of
128 // individual cells (for example block Jacobi). With this parameter, the loop structure
129 // can be changed to such an algorithm (cell_based_face_loops).
130 bool enable_cell_based_face_loops;
131};
132
133} // namespace Poisson
134} // namespace ExaDG
135
136#endif /* INCLUDE_LAPLACE_INPUT_PARAMETERS_H_ */
Definition parameters.h:36
Definition driver.cpp:33
Definition grid_data.h:88
Definition multigrid_parameters.h:259
Definition solver_data.h:34