[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::GridRefinementStudy< dim, nstate, MeshType > Class Template Reference

Performs grid convergence for various polynomial degrees. More...

#include <grid_refinement_study.h>

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

Public Member Functions

 GridRefinementStudy ()=delete
 Constructor. Deleted the default constructor since it should not be used.
 
 GridRefinementStudy (const Parameters::AllParameters *const parameters_input)
 Constructor. More...
 
int run_test () const
 Basically the main and only function of this class. More...
 
void get_grid (const std::shared_ptr< MeshType > &grid, const Parameters::GridRefinementStudyParam &grs_param) const
 gets the grid from the enum and reads file if neccesary
 
double approximate_exact_functional (const std::shared_ptr< Physics::PhysicsBase< dim, nstate, double >> &physics_double, const std::shared_ptr< Physics::PhysicsBase< dim, nstate, Sacado::Fad::DFad< double >>> &physics_adtype, const Parameters::AllParameters &param, const Parameters::GridRefinementStudyParam &grs_param) const
 Approximates the exact functional using a uniformly refined grid.
 
- 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.
 

Additional Inherited Members

- Public Attributes inherited from PHiLiP::Tests::TestsBase
const Parameters::AllParameters *const all_parameters
 Pointer to all parameters.
 
- 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 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...
 

Detailed Description

template<int dim, int nstate, typename MeshType = dealii::parallel::distributed::Triangulation<dim>>
class PHiLiP::Tests::GridRefinementStudy< dim, nstate, MeshType >

Performs grid convergence for various polynomial degrees.

Definition at line 21 of file grid_refinement_study.h.

Constructor & Destructor Documentation

◆ GridRefinementStudy()

template<int dim, int nstate, typename MeshType >
PHiLiP::Tests::GridRefinementStudy< dim, nstate, MeshType >::GridRefinementStudy ( const Parameters::AllParameters *const  parameters_input)
explicit

Constructor.

Simply calls the TestsBase constructor to set its parameters = parameters_input

Definition at line 54 of file grid_refinement_study.cpp.

Member Function Documentation

◆ run_test()

template<int dim, int nstate, typename MeshType >
int PHiLiP::Tests::GridRefinementStudy< dim, nstate, MeshType >::run_test ( ) const
virtual

Basically the main and only function of this class.

This will get overloaded by the derived test classes.

Implements PHiLiP::Tests::TestsBase.

Definition at line 59 of file grid_refinement_study.cpp.


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