[P]arallel [Hi]gh-order [Li]brary for [P]DEs  Latest
Parallel High-Order Library for PDEs through hp-adaptive Discontinuous Galerkin methods
parameters_manufactured_solution.h
1 #ifndef __PARAMETERS_MANUFACTURED_SOLUTION_H__
2 #define __PARAMETERS_MANUFACTURED_SOLUTION_H__
3 
4 #include <deal.II/base/parameter_handler.h>
5 #include "parameters/parameters.h"
6 
7 #include <deal.II/base/tensor.h>
8 
9 namespace PHiLiP {
10 
11 namespace Parameters {
12 
15 {
16 public:
19 
22  zero_solution,
23  sine_solution,
24  cosine_solution,
25  additive_solution,
26  exp_solution,
27  poly_solution,
28  even_poly_solution,
29  atan_solution,
30  boundary_layer_solution,
31  s_shock_solution,
32  quadratic_solution,
33  example_solution,
34  navah_solution_1,
35  navah_solution_2,
36  navah_solution_3,
37  navah_solution_4,
38  navah_solution_5
39  };
41 
43  dealii::Tensor<2,3,double> diffusion_tensor;
44 
46  dealii::Tensor<1,3,double> advection_vector;
47 
50 
52  static void declare_parameters (dealii::ParameterHandler &prm);
54  void parse_parameters (dealii::ParameterHandler &prm);
55 
57  static dealii::Tensor<2,3,double> get_default_diffusion_tensor();
59  static dealii::Tensor<1,3,double> get_default_advection_vector();
61  static double get_default_diffusion_coefficient();
62 };
63 
64 } // Parameters namespace
65 
66 } // PHiLiP namespace
67 
68 #endif // __PARAMETERS_MANUFACTURED_SOLUTION_H__
69 
70 
ManufacturedSolutionType
Selects the manufactured solution to be used if use_manufactured_source_term=true.
static dealii::Tensor< 1, 3, double > get_default_advection_vector()
gets the default advection vector
Parameters related to the manufactured convergence study.
void parse_parameters(dealii::ParameterHandler &prm)
Parses input file and sets the variables.
Files for the baseline physics.
Definition: ADTypes.hpp:10
static dealii::Tensor< 2, 3, double > get_default_diffusion_tensor()
gets the default diffusion tensor
bool use_manufactured_source_term
Uses non-zero source term based on the manufactured solution and the PDE.
dealii::Tensor< 1, 3, double > advection_vector
Advection velocity.
dealii::Tensor< 2, 3, double > diffusion_tensor
Diffusion tensor.
static double get_default_diffusion_coefficient()
gets the default diffusion coefficient;
ManufacturedSolutionType manufactured_solution_type
Selected ManufacturedSolutionType from the input file.
static void declare_parameters(dealii::ParameterHandler &prm)
Declares the possible variables and sets the defaults.