1 #ifndef __POSITIVITY_TESTS_H__ 2 #define __POSITIVITY_TESTS_H__ 4 #include "flow_solver_case_base.h" 5 #include "cube_flow_uniform_grid.h" 6 #include "dg/dg_base.hpp" 11 template <
int dim,
int nstate>
15 using Triangulation = dealii::Triangulation<PHILIP_DIM>;
17 using Triangulation = dealii::parallel::distributed::Triangulation<PHILIP_DIM>;
25 std::shared_ptr<Triangulation>
generate_grid()
const override;
54 const std::shared_ptr<dealii::TableHandler> unsteady_data_table)
override;
67 std::shared_ptr < Physics::Euler<dim, nstate, double > > euler_physics;
void check_positivity_density(DGBase< dim, double > &dg)
Check positivity of density and total energy + verify that density is not NaN.
void compute_unsteady_data_and_write_to_table(const std::shared_ptr< ODE::ODESolverBase< dim, double >> ode_solver, 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.
double initial_entropy
Storing entropy at first step.
Files for the baseline physics.
double compute_integrated_entropy(DGBase< dim, double > &dg) const
Updates the maximum local wave speed.
double previous_numerical_entropy
Store previous entropy.
Main parameter class that contains the various other sub-parameter classes.
PositivityPreservingTests(const Parameters::AllParameters *const parameters_input)
Constructor.
double maximum_local_wave_speed
Maximum local wave speed (i.e. convective eigenvalue)
const std::string unsteady_data_table_filename_with_extension
Filename (with extension) for the unsteady data table.
DGBase is independent of the number of state variables.
void display_additional_flow_case_specific_parameters() const override
Display additional more specific flow case parameters.
std::shared_ptr< Triangulation > generate_grid() const override
Function to generate the grid.