[P]arallel [Hi]gh-order [Li]brary for [P]DEs  Latest
Parallel High-Order Library for PDEs through hp-adaptive Discontinuous Galerkin methods
convection_diffusion_explicit_periodic.h
1 #ifndef __CONVECTION_DIFFUSION_EXPLICIT_PERIODIC_H__
2 #define __CONVECTION_DIFFUSION_EXPLICIT_PERIODIC_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 ConvectionDiffusionPeriodic(const Parameters::AllParameters *const parameters_input);
18 
20  int run_test () const override;
21 private:
23 
30  double compute_energy_derivative_norm(std::shared_ptr < PHiLiP::DGBase<dim, double> > &dg) const;
31 
33  double compute_conservation(std::shared_ptr < PHiLiP::DGBase<dim, double> > &dg, const double poly_degree) const;
34 };
35 
36 } // Tests namespace
37 } // PHiLiP namespace
38 #endif
double compute_conservation(std::shared_ptr< PHiLiP::DGBase< dim, double > > &dg, const double poly_degree) const
Function computes the conservation.
double compute_energy_derivative_norm(std::shared_ptr< PHiLiP::DGBase< dim, double > > &dg) const
Function computes the energy bound.
Files for the baseline physics.
Definition: ADTypes.hpp:10
Main parameter class that contains the various other sub-parameter classes.
Convection Diffusion periodic unsteady test (currently only diffusion)
ConvectionDiffusionPeriodic(const Parameters::AllParameters *const parameters_input)
Constructor.
DGBase is independent of the number of state variables.
Definition: dg_base.hpp:82
Base class of all the tests.
Definition: tests.h:17