[P]arallel [Hi]gh-order [Li]brary for [P]DEs  Latest
Parallel High-Order Library for PDEs through hp-adaptive Discontinuous Galerkin methods
taylor_green_vortex_restart_check.h
1 #ifndef __TAYLOR_GREEN_VORTEX_RESTART_CHECK__
2 #define __TAYLOR_GREEN_VORTEX_RESTART_CHECK__
3 
4 #include "dg/dg_base.hpp"
5 #include "parameters/all_parameters.h"
6 #include "tests.h"
7 
8 namespace PHiLiP {
9 namespace Tests {
10 
12 template <int dim, int nstate>
14 {
15 public:
18  const Parameters::AllParameters *const parameters_input,
19  const dealii::ParameterHandler &parameter_handler_input);
20 
22  const dealii::ParameterHandler &parameter_handler;
23 
26 
28  int run_test () const override;
29 protected:
32  const bool output_restart_files_input,
33  const bool restart_computation_from_file_input,
34  const double final_time_input,
35  const double initial_time_input = 0.0,
36  const unsigned int initial_iteration_input = 0,
37  const double initial_desired_time_for_output_solution_every_dt_time_intervals_input = 0.0,
38  const double initial_time_step_input = 0.0,
39  const int restart_file_index = 0) const;
40 };
41 
42 } // End of Tests namespace
43 } // End of PHiLiP namespace
44 
45 #endif
const double kinetic_energy_expected
Expected kinetic energy at final time.
Files for the baseline physics.
Definition: ADTypes.hpp:10
Main parameter class that contains the various other sub-parameter classes.
Parameters::AllParameters reinit_params(const bool output_restart_files_input, const bool restart_computation_from_file_input, const double final_time_input, const double initial_time_input=0.0, const unsigned int initial_iteration_input=0, const double initial_desired_time_for_output_solution_every_dt_time_intervals_input=0.0, const double initial_time_step_input=0.0, const int restart_file_index=0) const
Renitialize parameters, necessary because parameters created for the test are constant.
const dealii::ParameterHandler & parameter_handler
Parameter handler for storing the .prm file being ran.
TaylorGreenVortexRestartCheck(const Parameters::AllParameters *const parameters_input, const dealii::ParameterHandler &parameter_handler_input)
Constructor.
Base class of all the tests.
Definition: tests.h:17