[P]arallel [Hi]gh-order [Li]brary for [P]DEs  Latest
Parallel High-Order Library for PDEs through hp-adaptive Discontinuous Galerkin methods
shock_1d.h
1 #ifndef __BURGERS_STEADYSHOCK_H__
2 #define __BURGERS_STEADYSHOCK_H__
3 
4 #include "dg/dg_base.hpp"
5 #include "parameters/all_parameters.h"
6 #include "physics/physics.h"
7 #include "tests.h"
8 
9 namespace PHiLiP {
10 namespace Tests {
11 
13 template <int dim, int nstate>
14 class Shock1D: public TestsBase
15 {
16 public:
18  Shock1D () = delete;
20 
22  explicit Shock1D(const Parameters::AllParameters *const parameters_input);
23 
25 
35  int run_test () const;
36 
37 protected:
39  void print_mesh_info(const dealii::Triangulation<dim> &triangulation,
40  const std::string &filename) const;
42 
44  static dealii::Point<dim> warp (const dealii::Point<dim> &p);
45 
47 
52 
55 };
56 
57 
58 // /// Manufactured grid convergence
59 // /** Currently the main function as all my test cases simply
60 // * check for optimal convergence of the solution
61 // */
62 // template<int dim>
63 // int manufactured_grid_convergence (Parameters::AllParameters &parameters);
64 
65 } // Tests namespace
66 } // PHiLiP namespace
67 #endif
Performs grid convergence for various polynomial degrees.
Definition: shock_1d.h:14
Shock1D()=delete
Constructor. Deleted the default constructor since it should not be used.
void initialize_perturbed_solution(DGBase< dim, double > &dg, const Physics::PhysicsBase< dim, nstate, double > &physics) const
Initialize the solution with the exact solution.
Definition: shock_1d.cpp:184
Files for the baseline physics.
Definition: ADTypes.hpp:10
Main parameter class that contains the various other sub-parameter classes.
void print_mesh_info(const dealii::Triangulation< dim > &triangulation, const std::string &filename) const
Prints our mesh info and generates eps file if 2D grid.
Definition: shock_1d.cpp:450
int run_test() const
Manufactured grid convergence.
Definition: shock_1d.cpp:194
double integrate_solution_over_domain(DGBase< dim, double > &dg) const
L2-Integral of the solution over the entire domain.
Definition: shock_1d.cpp:106
DGBase is independent of the number of state variables.
Definition: dg_base.hpp:82
Base class of all the tests.
Definition: tests.h:17
static dealii::Point< dim > warp(const dealii::Point< dim > &p)
Warps mesh into sinusoidal.
Definition: shock_1d.cpp:439