Reference documentation for deal.II version 9.5.0
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
Loading...
Searching...
No Matches
Namespaces
refinement.cc File Reference
#include <deal.II/base/config.h>
#include <deal.II/base/mpi.h>
#include <deal.II/distributed/grid_refinement.h>
#include <deal.II/distributed/shared_tria.h>
#include <deal.II/distributed/tria_base.h>
#include <deal.II/dofs/dof_accessor.templates.h>
#include <deal.II/dofs/dof_handler.h>
#include <deal.II/grid/filtered_iterator.h>
#include <deal.II/grid/grid_refinement.h>
#include <deal.II/hp/refinement.h>
#include <deal.II/lac/la_parallel_vector.h>
#include <deal.II/lac/vector.h>
#include <limits>
#include "refinement.inst"

Go to the source code of this file.

Namespaces

namespace  hp
 
namespace  hp::Refinement
 

Functions

Setting p-adaptivity flags
template<int dim, int spacedim>
void hp::Refinement::full_p_adaptivity (const DoFHandler< dim, spacedim > &dof_handler)
 
template<int dim, int spacedim>
void hp::Refinement::p_adaptivity_from_flags (const DoFHandler< dim, spacedim > &dof_handler, const std::vector< bool > &p_flags)
 
template<int dim, typename Number , int spacedim>
void hp::Refinement::p_adaptivity_from_absolute_threshold (const DoFHandler< dim, spacedim > &dof_handler, const Vector< Number > &criteria, const Number p_refine_threshold, const Number p_coarsen_threshold, const ComparisonFunction< std_cxx20::type_identity_t< Number > > &compare_refine=std::greater_equal< Number >(), const ComparisonFunction< std_cxx20::type_identity_t< Number > > &compare_coarsen=std::less_equal< Number >())
 
template<int dim, typename Number , int spacedim>
void hp::Refinement::p_adaptivity_from_relative_threshold (const DoFHandler< dim, spacedim > &dof_handler, const Vector< Number > &criteria, const double p_refine_fraction=0.5, const double p_coarsen_fraction=0.5, const ComparisonFunction< std_cxx20::type_identity_t< Number > > &compare_refine=std::greater_equal< Number >(), const ComparisonFunction< std_cxx20::type_identity_t< Number > > &compare_coarsen=std::less_equal< Number >())
 
template<int dim, typename Number , int spacedim>
void hp::Refinement::p_adaptivity_fixed_number (const DoFHandler< dim, spacedim > &dof_handler, const Vector< Number > &criteria, const double p_refine_fraction=0.5, const double p_coarsen_fraction=0.5, const ComparisonFunction< std_cxx20::type_identity_t< Number > > &compare_refine=std::greater_equal< Number >(), const ComparisonFunction< std_cxx20::type_identity_t< Number > > &compare_coarsen=std::less_equal< Number >())
 
template<int dim, typename Number , int spacedim>
void hp::Refinement::p_adaptivity_from_regularity (const DoFHandler< dim, spacedim > &dof_handler, const Vector< Number > &sobolev_indices)
 
template<int dim, typename Number , int spacedim>
void hp::Refinement::p_adaptivity_from_reference (const DoFHandler< dim, spacedim > &dof_handler, const Vector< Number > &criteria, const Vector< Number > &references, const ComparisonFunction< std_cxx20::type_identity_t< Number > > &compare_refine, const ComparisonFunction< std_cxx20::type_identity_t< Number > > &compare_coarsen)
 
Error prediction
template<int dim, typename Number , int spacedim>
void hp::Refinement::predict_error (const DoFHandler< dim, spacedim > &dof_handler, const Vector< Number > &error_indicators, Vector< Number > &predicted_errors, const double gamma_p=std::sqrt(0.4), const double gamma_h=2., const double gamma_n=1.)
 
Decide between h- and p-adaptivity
template<int dim, int spacedim>
void hp::Refinement::force_p_over_h (const DoFHandler< dim, spacedim > &dof_handler)
 
template<int dim, int spacedim>
void hp::Refinement::choose_p_over_h (const DoFHandler< dim, spacedim > &dof_handler)
 
Optimize p-level distribution
template<int dim, int spacedim>
bool hp::Refinement::limit_p_level_difference (const DoFHandler< dim, spacedim > &dof_handler, const unsigned int max_difference=1, const unsigned int contains_fe_index=0)