13#ifndef dealii_error_estimator_h
14#define dealii_error_estimator_h
32template <
int dim,
int spacedim>
46 class MappingCollection;
262template <
int dim,
int spacedim = dim>
341 template <
typename Number>
362 template <
typename Number>
391 template <
typename Number>
412 template <
typename Number>
433 template <
typename Number>
455 template <
typename Number>
476 template <
typename Number>
499 template <
typename Number>
519 "You provided a ComponentMask argument that is invalid. "
520 "Component masks need to be either default constructed "
521 "(in which case they indicate that every component is "
522 "selected) or need to have a length equal to the number "
523 "of vector components of the finite element in use "
524 "by the DoFHandler object. In the latter case, at "
525 "least one component needs to be selected.");
531 "If you do specify the argument for a (possibly "
532 "spatially variable) coefficient function for this function, "
533 "then it needs to refer to a coefficient that is either "
534 "scalar (has one vector component) or has as many vector "
535 "components as there are in the finite element used by "
536 "the DoFHandler argument.");
544 <<
"You provided a function map that for boundary indicator "
545 << arg1 <<
" specifies a function with " << arg2
546 <<
" vector components. However, the finite "
547 "element in use has "
549 <<
" components, and these two numbers need to match.");
556 <<
"The number of input vectors, " << arg1
557 <<
" needs to be equal to the number of output vectors, "
559 <<
". This is not the case in your call of this function.");
564 "You need to specify at least one solution vector as "
579template <
int spacedim>
622 template <
typename Number>
645 template <
typename Number>
676 template <
typename Number>
699 template <
typename Number>
721 template <
typename Number>
744 template <
typename Number>
766 template <
typename Number>
789 template <
typename Number>
811 "You provided a ComponentMask argument that is invalid. "
812 "Component masks need to be either default constructed "
813 "(in which case they indicate that every component is "
814 "selected) or need to have a length equal to the number "
815 "of vector components of the finite element in use "
816 "by the DoFHandler object. In the latter case, at "
817 "least one component needs to be selected.");
824 "If you do specify the argument for a (possibly "
825 "spatially variable) coefficient function for this function, "
826 "then it needs to refer to a coefficient that is either "
827 "scalar (has one vector component) or has as many vector "
828 "components as there are in the finite element used by "
829 "the DoFHandler argument.");
838 <<
"You provided a function map that for boundary indicator "
839 << arg1 <<
" specifies a function with " << arg2
840 <<
" vector components. However, the finite "
841 "element in use has "
843 <<
" components, and these two numbers need to match.");
851 <<
"The number of input vectors, " << arg1
852 <<
" needs to be equal to the number of output vectors, "
854 <<
". This is not the case in your call of this function.");
860 "You need to specify at least one solution vector as "
@ face_diameter_over_twice_max_degree
static void estimate(const Mapping< dim, spacedim > &mapping, const DoFHandler< dim, spacedim > &dof, const Quadrature< dim - 1 > &quadrature, const std::map< types::boundary_id, const Function< spacedim, Number > * > &neumann_bc, const ReadVector< Number > &solution, Vector< float > &error, const ComponentMask &component_mask={}, const Function< spacedim > *coefficients=nullptr, const unsigned int n_threads=numbers::invalid_unsigned_int, const types::subdomain_id subdomain_id=numbers::invalid_subdomain_id, const types::material_id material_id=numbers::invalid_material_id, const Strategy strategy=cell_diameter_over_24)
static void estimate(const DoFHandler< dim, spacedim > &dof, const Quadrature< dim - 1 > &quadrature, const std::map< types::boundary_id, const Function< spacedim, Number > * > &neumann_bc, const ArrayView< const ReadVector< Number > * > &solutions, ArrayView< Vector< float > * > &errors, const ComponentMask &component_mask={}, const Function< spacedim > *coefficients=nullptr, const unsigned int n_threads=numbers::invalid_unsigned_int, const types::subdomain_id subdomain_id=numbers::invalid_subdomain_id, const types::material_id material_id=numbers::invalid_material_id, const Strategy strategy=cell_diameter_over_24)
static void estimate(const Mapping< dim, spacedim > &mapping, const DoFHandler< dim, spacedim > &dof, const Quadrature< dim - 1 > &quadrature, const std::map< types::boundary_id, const Function< spacedim, Number > * > &neumann_bc, const ArrayView< const ReadVector< Number > * > &solutions, ArrayView< Vector< float > * > &errors, const ComponentMask &component_mask={}, const Function< spacedim > *coefficients=nullptr, const unsigned int n_threads=numbers::invalid_unsigned_int, const types::subdomain_id subdomain_id=numbers::invalid_subdomain_id, const types::material_id material_id=numbers::invalid_material_id, const Strategy strategy=cell_diameter_over_24)
static void estimate(const DoFHandler< dim, spacedim > &dof, const hp::QCollection< dim - 1 > &quadrature, const std::map< types::boundary_id, const Function< spacedim, Number > * > &neumann_bc, const ArrayView< const ReadVector< Number > * > &solutions, ArrayView< Vector< float > * > &errors, const ComponentMask &component_mask={}, const Function< spacedim > *coefficients=nullptr, const unsigned int n_threads=numbers::invalid_unsigned_int, const types::subdomain_id subdomain_id=numbers::invalid_subdomain_id, const types::material_id material_id=numbers::invalid_material_id, const Strategy strategy=cell_diameter_over_24)
static void estimate(const hp::MappingCollection< dim, spacedim > &mapping, const DoFHandler< dim, spacedim > &dof, const hp::QCollection< dim - 1 > &quadrature, const std::map< types::boundary_id, const Function< spacedim, Number > * > &neumann_bc, const ReadVector< Number > &solution, Vector< float > &error, const ComponentMask &component_mask={}, const Function< spacedim > *coefficients=nullptr, const unsigned int n_threads=numbers::invalid_unsigned_int, const types::subdomain_id subdomain_id=numbers::invalid_subdomain_id, const types::material_id material_id=numbers::invalid_material_id, const Strategy strategy=cell_diameter_over_24)
@ face_diameter_over_twice_max_degree
@ cell_diameter_over_24
Kelly error estimator with the factor .
@ cell_diameter
Kelly error estimator with the factor .
static void estimate(const DoFHandler< dim, spacedim > &dof, const Quadrature< dim - 1 > &quadrature, const std::map< types::boundary_id, const Function< spacedim, Number > * > &neumann_bc, const ReadVector< Number > &solution, Vector< float > &error, const ComponentMask &component_mask={}, const Function< spacedim > *coefficients=nullptr, const unsigned int n_threads=numbers::invalid_unsigned_int, const types::subdomain_id subdomain_id=numbers::invalid_subdomain_id, const types::material_id material_id=numbers::invalid_material_id, const Strategy strategy=cell_diameter_over_24)
static void estimate(const DoFHandler< dim, spacedim > &dof, const hp::QCollection< dim - 1 > &quadrature, const std::map< types::boundary_id, const Function< spacedim, Number > * > &neumann_bc, const ReadVector< Number > &solution, Vector< float > &error, const ComponentMask &component_mask={}, const Function< spacedim > *coefficients=nullptr, const unsigned int n_threads=numbers::invalid_unsigned_int, const types::subdomain_id subdomain_id=numbers::invalid_subdomain_id, const types::material_id material_id=numbers::invalid_material_id, const Strategy strategy=cell_diameter_over_24)
static void estimate(const hp::MappingCollection< dim, spacedim > &mapping, const DoFHandler< dim, spacedim > &dof, const hp::QCollection< dim - 1 > &quadrature, const std::map< types::boundary_id, const Function< spacedim, Number > * > &neumann_bc, const ArrayView< const ReadVector< Number > * > &solutions, ArrayView< Vector< float > * > &errors, const ComponentMask &component_mask={}, const Function< spacedim > *coefficients=nullptr, const unsigned int n_threads=numbers::invalid_unsigned_int, const types::subdomain_id subdomain_id=numbers::invalid_subdomain_id, const types::material_id material_id=numbers::invalid_material_id, const Strategy strategy=cell_diameter_over_24)
Abstract base class for mapping classes.
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_CXX20_REQUIRES(condition)
#define DEAL_II_NAMESPACE_CLOSE
static ::ExceptionBase & ExcInvalidBoundaryFunction(types::boundary_id arg1, int arg2, int arg3)
static ::ExceptionBase & ExcIncompatibleNumberOfElements(int arg1, int arg2)
#define DeclException2(Exception2, type1, type2, outsequence)
#define DeclExceptionMsg(Exception, defaulttext)
static ::ExceptionBase & ExcInvalidComponentMask()
#define DeclException3(Exception3, type1, type2, type3, outsequence)
static ::ExceptionBase & ExcInvalidCoefficient()
static ::ExceptionBase & ExcNoSolutions()
constexpr unsigned int invalid_unsigned_int
constexpr types::material_id invalid_material_id
constexpr types::subdomain_id invalid_subdomain_id
unsigned int subdomain_id