[P]arallel [Hi]gh-order [Li]brary for [P]DEs  Latest
Parallel High-Order Library for PDEs through hp-adaptive Discontinuous Galerkin methods
euler_entropy_waves.h
1 #ifndef __EULER_ENTROPY_WAVES_H__
2 #define __EULER_ENTROPY_WAVES_H__
3 
4 #include "dg/dg_base.hpp"
5 #include "parameters/all_parameters.h"
6 #include "physics/euler.h"
7 #include "tests.h"
8 
9 namespace PHiLiP {
10 namespace Tests {
11 
13 
15 template <int dim, typename real>
16 class EulerEntropyWavesFunction : public dealii::Function<dim,real>
17 {
18 public:
20 
25 
27 
29  real Q_inf;
30 
32 
53  real value (const dealii::Point<dim> &point, const unsigned int istate = 0) const;
54 
55 private:
57  dealii::Point<2> advected_location(const dealii::Point<2> old_location) const;
58 
59 };
60 
62 template <int dim, int nstate>
64 {
65 public:
67  EulerEntropyWaves () = delete;
69 
71  explicit EulerEntropyWaves(const Parameters::AllParameters *const parameters_input);
72 
74 
84  int run_test () const;
85 
86 };
87 
88 
89 } // Tests namespace
90 } // PHiLiP namespace
91 #endif
92 
Files for the baseline physics.
Definition: ADTypes.hpp:10
real value(const dealii::Point< dim > &point, const unsigned int istate=0) const
Manufactured solution exact value.
Main parameter class that contains the various other sub-parameter classes.
dealii::Point< 2 > advected_location(const dealii::Point< 2 > old_location) const
Exact solution using the current time provided by the dealii::Function class.
Performs grid convergence for various polynomial degrees.
EulerEntropyWavesFunction(const Physics::Euler< dim, dim+2, real > euler_physics, const real dimensional_density_inf)
Constructor that initializes base_values, amplitudes, frequencies.
const real dimensional_density_inf
Dimensional density at infinity.
Base class of all the tests.
Definition: tests.h:17
const Physics::Euler< dim, dim+2, real > euler_physics
Euler physics.