[P]arallel [Hi]gh-order [Li]brary for [P]DEs  Latest
Parallel High-Order Library for PDEs through hp-adaptive Discontinuous Galerkin methods
burgers_stability.h
1 #ifndef __BURGERS_STABILITY_H__
2 #define __BURGERS_STABILITY_H__
3 
4 #include "dg/dg_base.hpp"
5 #include "parameters/all_parameters.h"
6 #include "tests.h"
7 
8 namespace PHiLiP {
9 namespace Tests {
10 
12 template <int dim, int nstate>
14 {
15 public:
17  explicit BurgersEnergyStability(const Parameters::AllParameters *const parameters_input);
18 
20  int run_test () const override;
21 private:
23  double compute_energy(std::shared_ptr < PHiLiP::DGBase<dim, double> > &dg) const;
25  double compute_conservation(std::shared_ptr < PHiLiP::DGBase<dim, double> > &dg, const double poly_degree) const;
26 };
27 
28 } // End of Tests namespace
29 } // End of PHiLiP namespace
30 #endif
double compute_energy(std::shared_ptr< PHiLiP::DGBase< dim, double > > &dg) const
Function computes the energy.
Burgers&#39; periodic unsteady test.
Files for the baseline physics.
Definition: ADTypes.hpp:10
Main parameter class that contains the various other sub-parameter classes.
double compute_conservation(std::shared_ptr< PHiLiP::DGBase< dim, double > > &dg, const double poly_degree) const
Function computes the conservation.
BurgersEnergyStability(const Parameters::AllParameters *const parameters_input)
Constructor.
int run_test() const override
Run test.
DGBase is independent of the number of state variables.
Definition: dg_base.hpp:82
Base class of all the tests.
Definition: tests.h:17