|
[P]arallel [Hi]gh-order [Li]brary for [P]DEs
Latest
Parallel High-Order Library for PDEs through hp-adaptive Discontinuous Galerkin methods
|
#include <mesh_adaptation.h>
Public Member Functions | |
| MeshAdaptation (std::shared_ptr< DGBase< dim, real, MeshType > > dg_input, const Parameters::MeshAdaptationParam *const mesh_adaptation_param_input) | |
| Constructor to initialize the class with a pointer to DG. | |
| ~MeshAdaptation ()=default | |
| Destructor. | |
| void | adapt_mesh () |
| Function to adapt the mesh based on input parameters. | |
Public Attributes | |
| std::unique_ptr< MeshErrorEstimateBase< dim, real, MeshType > > | mesh_error |
| Pointer to the error estimator class. | |
| std::shared_ptr< DGBase< dim, real, MeshType > > | dg |
| Pointer to DGBase. | |
| int | current_mesh_adaptation_cycle |
| Stores the current adaptation cycle. | |
| const Parameters::MeshAdaptationParam *const | mesh_adaptation_param |
| Holds parameters of mesh adaptation. | |
Protected Member Functions | |
| void | fixed_fraction_isotropic_refinement_and_coarsening () |
| Performs fixed fraction refinement based on refinement and coarsening fractions. | |
| void | smoothness_sensor_based_hp_refinement () |
| Decide whether to perform h or p refinement based on a smoothness indicator. More... | |
Protected Attributes | |
| dealii::Vector< real > | cellwise_errors |
| Stores errors in each cell. | |
| dealii::ConditionalOStream | pcout |
| Parallel std::cout. | |
Contains functions for mesh adaptation. It supports residual based and goal-oriented hp-adaptation with fixed fraction coarsening and refinement.
Definition at line 27 of file mesh_adaptation.h.
|
protected |
Decide whether to perform h or p refinement based on a smoothness indicator.
< FEValues of volume.
Definition at line 85 of file mesh_adaptation.cpp.