[P]arallel [Hi]gh-order [Li]brary for [P]DEs  Latest
Parallel High-Order Library for PDEs through hp-adaptive Discontinuous Galerkin methods
PHiLiP::Tests::TimeRefinementStudyReference< dim, nstate > Class Template Reference

Time refinement study which compares to a reference solution. More...

#include <time_refinement_study_reference.h>

Inheritance diagram for PHiLiP::Tests::TimeRefinementStudyReference< dim, nstate >:
Collaboration diagram for PHiLiP::Tests::TimeRefinementStudyReference< dim, nstate >:

Public Member Functions

 TimeRefinementStudyReference (const Parameters::AllParameters *const parameters_input, const dealii::ParameterHandler &parameter_handler_input)
 Constructor.
 
int run_test () const override
 Run test.
 
- Public Member Functions inherited from PHiLiP::Tests::GeneralRefinementStudy< dim, nstate >
 GeneralRefinementStudy (const Parameters::AllParameters *const parameters_input, const dealii::ParameterHandler &parameter_handler_input, const RefinementType refinement_type_input)
 Constructor.
 
- Public Member Functions inherited from PHiLiP::Tests::TestsBase
 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.
 

Protected Member Functions

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 (const 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) const
 Calculate L2 error at the final time in the passed parameters.
 
std::tuple< double, int > process_and_write_conv_tables (std::shared_ptr< FlowSolver::FlowSolver< dim, nstate >> flow_solver, const Parameters::AllParameters params, double L2_error_old, std::shared_ptr< dealii::ConvergenceTable > convergence_table, int refinement, const double expected_order) const override
 Calculate the L2 error and return local testfail for the converged flowsolver.
 
- Protected Member Functions inherited from PHiLiP::Tests::GeneralRefinementStudy< dim, nstate >
int run_refinement_study_and_write_result (const Parameters::AllParameters *parameters_in, const double expected_order, const bool check_only_last_refinement=false, const bool append_to_file=false) const
 Run the refinements.
 
double calculate_Lp_error_at_final_time_wrt_function (std::shared_ptr< DGBase< dim, double >> dg, const Parameters::AllParameters parameters, double final_time, int norm_p) const
 
Parameters::AllParameters reinit_params_and_refine (const Parameters::AllParameters *parameters_in, int refinement, const RefinementType how) const
 Reinitialize parameters while refining the timestep. Necessary because all_parameters is constant.
 
- Protected Member Functions inherited from PHiLiP::Tests::TestsBase
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 dealii::LinearAlgebra::distributed::Vector< double > reference_solution
 
- Protected Attributes inherited from PHiLiP::Tests::GeneralRefinementStudy< dim, nstate >
const RefinementType refinement_type
 Type of refinement to run.
 
const int n_calculations
 Number of times to solve for convergence summary.
 
const double refine_ratio
 Ratio to refine by.
 
- Protected Attributes inherited from PHiLiP::Tests::TestsBase
const MPI_Comm mpi_communicator
 MPI communicator.
 
const int mpi_rank
 MPI rank.
 
const int n_mpi
 
dealii::ConditionalOStream pcout
 ConditionalOStream. More...
 

Additional Inherited Members

- Public Types inherited from PHiLiP::Tests::GeneralRefinementStudy< dim, nstate >
enum  RefinementType { timestep, cell_length }
 Type of refinement to run.
 
- Public Attributes inherited from PHiLiP::Tests::GeneralRefinementStudy< dim, nstate >
const dealii::ParameterHandler & parameter_handler
 Parameter handler for storing the .prm file being ran.
 
- Public Attributes inherited from PHiLiP::Tests::TestsBase
const Parameters::AllParameters *const all_parameters
 Pointer to all parameters.
 

Detailed Description

template<int dim, int nstate>
class PHiLiP::Tests::TimeRefinementStudyReference< dim, nstate >

Time refinement study which compares to a reference solution.

Definition at line 15 of file time_refinement_study_reference.h.


The documentation for this class was generated from the following files: