[P]arallel [Hi]gh-order [Li]brary for [P]DEs  Latest
Parallel High-Order Library for PDEs through hp-adaptive Discontinuous Galerkin methods
periodic_1D_unsteady.h
1 #ifndef __PERIODIC_1D_UNSTEADY_H__
2 #define __PERIODIC_1D_UNSTEADY_H__
3 
4 #include "periodic_cube_flow.h"
5 
6 namespace PHiLiP {
7 namespace FlowSolver {
8 
9 template <int dim, int nspecies, int nstate>
10 class Periodic1DUnsteady : public PeriodicCubeFlow<dim,nspecies,nstate>
11 {
12 public:
13 
15  explicit Periodic1DUnsteady(const Parameters::AllParameters *const parameters_input);
16 
18  double compute_energy(const std::shared_ptr <DGBase<dim, nspecies, double>> dg) const;
19 
22  double get_numerical_entropy(const std::shared_ptr <DGBase<dim, nspecies, double>> dg) const;
23 protected:
26  const std::shared_ptr <ODE::ODESolverBase<dim, nspecies, double>> ode_solver,
27  const std::shared_ptr <DGBase<dim, nspecies, double>> dg,
28  const std::shared_ptr<dealii::TableHandler> unsteady_data_table,
29  const bool do_write_unsteady_data_table_file) override;
30 
33 
34 };
35 
36 
37 } // FlowSolver namespace
38 } // PHiLiP namespace
39 #endif
Periodic1DUnsteady(const Parameters::AllParameters *const parameters_input)
Constructor.
Files for the baseline physics.
Definition: ADTypes.hpp:10
Base class ODE solver.
void compute_unsteady_data_and_write_to_table(const std::shared_ptr< ODE::ODESolverBase< dim, nspecies, double >> ode_solver, const std::shared_ptr< DGBase< dim, nspecies, double >> dg, const std::shared_ptr< dealii::TableHandler > unsteady_data_table, const bool do_write_unsteady_data_table_file) override
Compute the desired unsteady data and write it to a table.
Main parameter class that contains the various other sub-parameter classes.
std::string unsteady_data_table_filename_with_extension
Filename for unsteady data.
double compute_energy(const std::shared_ptr< DGBase< dim, nspecies, double >> dg) const
Calculate energy as a matrix-vector product, solution^T (M+K) solution.
double get_numerical_entropy(const std::shared_ptr< DGBase< dim, nspecies, double >> dg) const
DGBase is independent of the number of state variables.
Definition: dg_base.hpp:82