[P]arallel [Hi]gh-order [Li]brary for [P]DEs
Latest
Parallel High-Order Library for PDEs through hp-adaptive Discontinuous Galerkin methods
|
Time refinement study which compares to a reference solution. More...
#include <time_refinement_study_reference.h>
Public Member Functions | |
TimeRefinementStudyReference (const Parameters::AllParameters *const parameters_input, const dealii::ParameterHandler ¶meter_handler_input) | |
Constructor. | |
int | run_test () const override |
Run test. | |
![]() | |
TestsBase ()=delete | |
Constructor. Deleted the default constructor since it should not be used. | |
TestsBase (const Parameters::AllParameters *const parameters_input) | |
Constructor. More... | |
virtual | ~TestsBase ()=default |
Destructor. | |
Public Attributes | |
const dealii::ParameterHandler & | parameter_handler |
Parameter handler for storing the .prm file being ran. | |
![]() | |
const Parameters::AllParameters *const | all_parameters |
Pointer to all parameters. | |
Protected Member Functions | |
Parameters::AllParameters | reinit_params_and_refine_timestep (int refinement) const |
Reinitialize parameters while refining the timestep. Necessary because all_parameters is constant. | |
Parameters::AllParameters | reinit_params_for_reference_solution (int number_of_timesteps, double final_time) const |
Reinitialize parameters and set initial_timestep according to reference solution and passed final time. | |
dealii::LinearAlgebra::distributed::Vector< double > | calculate_reference_solution (double final_time) const |
double | calculate_L2_error_at_final_time_wrt_reference (std::shared_ptr< DGBase< dim, double >> dg, const Parameters::AllParameters parameters, double final_time_actual, dealii::LinearAlgebra::distributed::Vector< double > reference_solution) const |
Calculate L2 error at the final time in the passed parameters. | |
![]() | |
std::vector< int > | get_number_1d_cells (const int ngrids) const |
Evaluates the number of cells to generate the grids for 1D grid based on input file. More... | |
std::string | get_pde_string (const Parameters::AllParameters *const param) const |
Returns a string describing which PDE is being used. | |
std::string | get_conv_num_flux_string (const Parameters::AllParameters *const param) const |
Returns a string describing which convective numerical flux is being used. | |
std::string | get_diss_num_flux_string (const Parameters::AllParameters *const param) const |
Returns a string describing which dissipative numerical flux is being used. | |
std::string | get_manufactured_solution_string (const Parameters::AllParameters *const param) const |
Returns a string describing which manufactured solution is being used. | |
Protected Attributes | |
const int | n_time_calculations |
Number of times to solve for convergence summary. | |
const double | refine_ratio |
Ratio to refine by. | |
![]() | |
const MPI_Comm | mpi_communicator |
MPI communicator. | |
const int | mpi_rank |
MPI rank. | |
const int | n_mpi |
dealii::ConditionalOStream | pcout |
ConditionalOStream. More... | |
Time refinement study which compares to a reference solution.
Definition at line 14 of file time_refinement_study_reference.h.