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

#include <mesh_adaptation.h>

Collaboration diagram for PHiLiP::MeshAdaptation< dim, real, MeshType >:

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.
 

Detailed Description

template<int dim, typename real, typename MeshType = dealii::parallel::distributed::Triangulation<dim>>
class PHiLiP::MeshAdaptation< dim, real, MeshType >

Contains functions for mesh adaptation. It supports residual based and goal-oriented hp-adaptation with fixed fraction coarsening and refinement.

Note
Mesh adaptation is currently implemented for steady state test cases. Tests using FlowSolver can use mesh adaptation directly by modifying the parameters file.

Definition at line 27 of file mesh_adaptation.h.

Member Function Documentation

◆ smoothness_sensor_based_hp_refinement()

template<int dim, typename real , typename MeshType >
void PHiLiP::MeshAdaptation< dim, real, MeshType >::smoothness_sensor_based_hp_refinement ( )
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.


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