[P]arallel [Hi]gh-order [Li]brary for [P]DEs  Latest
Parallel High-Order Library for PDEs through hp-adaptive Discontinuous Galerkin methods
cube_flow_uniform_grid.h
1 #ifndef __CUBE_FLOW_UNIFORM_GRID__
2 #define __CUBE_FLOW_UNIFORM_GRID__
3 
4 #include "flow_solver_case_base.h"
5 #include "dg/dg_base.hpp"
6 
7 namespace PHiLiP {
8 namespace FlowSolver {
9 
10 template <int dim, int nstate>
11 class CubeFlow_UniformGrid : public FlowSolverCaseBase<dim, nstate>
12 {
13  public:
14  explicit CubeFlow_UniformGrid(const Parameters::AllParameters *const parameters_input);
15 
17  double get_adaptive_time_step(std::shared_ptr<DGBase<dim,double>> dg) const override;
18 
20  double get_adaptive_time_step_initial(std::shared_ptr<DGBase<dim,double>> dg) override;
21 
24 
25  protected:
28 
30  std::shared_ptr< Physics::PhysicsBase<dim,nstate,double> > pde_physics;
31 
32 };
33 
34 } // FlowSolver namespace
35 } // PHiLiP namespace
36 
37 #endif
Files for the baseline physics.
Definition: ADTypes.hpp:10
Main parameter class that contains the various other sub-parameter classes.
void update_maximum_local_wave_speed(DGBase< dim, double > &dg)
Updates the maximum local wave speed.
double maximum_local_wave_speed
Maximum local wave speed (i.e. convective eigenvalue)
double get_adaptive_time_step(std::shared_ptr< DGBase< dim, double >> dg) const override
Function to compute the adaptive time step.
double get_adaptive_time_step_initial(std::shared_ptr< DGBase< dim, double >> dg) override
Function to compute the initial adaptive time step.
DGBase is independent of the number of state variables.
Definition: dg_base.hpp:82
std::shared_ptr< Physics::PhysicsBase< dim, nstate, double > > pde_physics
Pointer to Physics object for computing things on the fly.