1 #ifndef __GRID_REFINEMENT_STUDY_H__ 2 #define __GRID_REFINEMENT_STUDY_H__ 4 #include "dg/dg_base.hpp" 5 #include "grid_refinement/gnu_out.h" 6 #include "parameters/all_parameters.h" 7 #include "physics/model.h" 8 #include "physics/physics.h" 16 #if PHILIP_DIM==1 // dealii::parallel::distributed::Triangulation<dim> does not work for 1D 17 template <
int dim,
int nstate,
typename MeshType = dealii::Triangulation<dim>>
19 template <
int dim,
int nstate,
typename MeshType = dealii::parallel::distributed::Triangulation<dim>>
36 const std::shared_ptr<MeshType>& grid,
42 const std::shared_ptr<
Physics::PhysicsBase<dim,nstate,Sacado::Fad::DFad<double>>>& physics_adtype,
48 template <
typename MeshType>
52 static std::shared_ptr<MeshType>
57 void output_gnufig_solution(
61 void output_gnufig_functional(
68 #endif // __GRID_REFINEMENT_STUDY_H__
const MPI_Comm mpi_communicator
MPI communicator.
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 ¶m, const Parameters::GridRefinementStudyParam &grs_param) const
Approximates the exact functional using a uniformly refined grid.
Files for the baseline physics.
Main parameter class that contains the various other sub-parameter classes.
Performs grid convergence for various polynomial degrees.
GridRefinementStudy()=delete
Constructor. Deleted the default constructor since it should not be used.
Parameters related to collection of grid refinement runs.
int run_test() const
Basically the main and only function of this class.
Base class of all the tests.
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