[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 nstate>
10 class Periodic1DUnsteady : public PeriodicCubeFlow<dim,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, double>> dg) const;
19 
22  double get_numerical_entropy(const std::shared_ptr <DGBase<dim, double>> dg) const;
23 protected:
24 
28  const unsigned int current_iteration,
29  const double current_time,
30  const std::shared_ptr <DGBase<dim, double>> dg,
31  const std::shared_ptr<dealii::TableHandler> unsteady_data_table) override;
32 
35 
36 };
37 
38 
39 } // FlowSolver namespace
40 } // PHiLiP namespace
41 #endif
double compute_energy(const std::shared_ptr< DGBase< dim, double >> dg) const
Calculate energy as a matrix-vector product, solution^T (M+K) solution.
Periodic1DUnsteady(const Parameters::AllParameters *const parameters_input)
Constructor.
Files for the baseline physics.
Definition: ADTypes.hpp:10
Main parameter class that contains the various other sub-parameter classes.
std::string unsteady_data_table_filename_with_extension
Filename for unsteady data.
double get_numerical_entropy(const std::shared_ptr< DGBase< dim, double >> dg) const
DGBase is independent of the number of state variables.
Definition: dg_base.hpp:82
void compute_unsteady_data_and_write_to_table(const unsigned int current_iteration, const double current_time, const std::shared_ptr< DGBase< dim, double >> dg, const std::shared_ptr< dealii::TableHandler > unsteady_data_table) override
Compute the desired unsteady data and write it to a table.