35template <
int dim,
int spacedim>
37template <
int dim,
int spacedim>
39template <
int dim,
int spacedim>
41template <
int dim,
int spacedim>
43template <
int dim,
int spacedim>
644template <
int dim,
int spacedim = dim>
790 std::pair<std::unique_ptr<FiniteElement<dim, spacedim>>,
unsigned int>
804 virtual std::unique_ptr<FiniteElement<dim, spacedim>>
884 const unsigned int component)
const;
919 const unsigned int component)
const;
954 const unsigned int component)
const;
989 const unsigned int component)
const;
1024 const unsigned int component)
const;
1037 const unsigned int face_index)
const;
1227 const ::internal::SubfaceCase<dim> &subface_case =
1292 const unsigned int face_no = 0)
const;
1308 const unsigned int subface,
1310 const unsigned int face_no = 0)
const;
1334 virtual std::vector<std::pair<unsigned int, unsigned int>>
1341 virtual std::vector<std::pair<unsigned int, unsigned int>>
1348 virtual std::vector<std::pair<unsigned int, unsigned int>>
1350 const unsigned int face_no = 0)
const;
1369 const unsigned int codim = 0)
const;
1448 std::pair<unsigned int, unsigned int>
1462 const unsigned int index)
const;
1473 std::pair<unsigned int, unsigned int>
1475 const unsigned int face_no = 0)
const;
1487 const unsigned int face_no,
1488 const bool face_orientation,
1489 const bool face_flip,
1490 const bool face_rotation)
const;
1546 virtual unsigned int
1548 const unsigned int face,
1549 const bool face_orientation =
true,
1550 const bool face_flip =
false,
1551 const bool face_rotation =
false)
const;
1562 const bool line_orientation)
const;
1735 const unsigned int n_selected_components)
const;
1759 std::pair<std::pair<unsigned int, unsigned int>,
unsigned int>
1770 std::pair<std::pair<unsigned int, unsigned int>,
unsigned int>
1772 const unsigned int face_no = 0)
const;
1793 std::pair<unsigned int, unsigned int>
1801 std::pair<unsigned int, unsigned int>
1807 std::pair<unsigned int, types::global_dof_index>
1989 virtual std::pair<Table<2, bool>, std::vector<unsigned int>>
2029 const std::vector<Point<dim>> &
2093 const std::vector<
Point<dim - 1>> &
2111 virtual Point<dim - 1>
2113 const unsigned int face_no = 0)
const;
2127 const std::vector<Point<dim>> &
2269 std::vector<double> & nodal_values)
const;
2291 <<
"The shape function with index " << arg1
2292 <<
" is not primitive, i.e. it is vector-valued and "
2293 <<
"has more than one non-zero vector component. This "
2294 <<
"function cannot be called for these shape functions. "
2295 <<
"Maybe you want to use the same function with the "
2296 <<
"_component suffix?");
2310 "You are trying to access the values or derivatives of shape functions "
2311 "on the reference cell of an element that does not define its shape "
2312 "functions through mapping from the reference cell. Consequently, "
2313 "you cannot ask for shape function values or derivatives on the "
2323 "You are trying to access the support points of a finite "
2324 "element that either has no support points at all, or for "
2325 "which the corresponding tables have not been implemented.");
2334 "You are trying to access the matrices that describe how "
2335 "to embed a finite element function on one cell into the "
2336 "finite element space on one of its children (i.e., the "
2337 "'embedding' or 'prolongation' matrices). However, the "
2338 "current finite element can either not define this sort of "
2339 "operation, or it has not yet been implemented.");
2349 "You are trying to access the matrices that describe how "
2350 "to restrict a finite element function from the children "
2351 "of one cell to the finite element space defined on their "
2352 "parent (i.e., the 'restriction' or 'projection' matrices). "
2353 "However, the current finite element can either not define "
2354 "this sort of operation, or it has not yet been "
2364 <<
"The interface matrix has a size of " << arg1 <<
"x" << arg2
2365 <<
", which is not reasonable for the current element "
2366 "in the present dimension.");
2389 const bool isotropic_restriction_only =
false,
2390 const bool isotropic_prolongation_only =
false);
2509 std::vector<std::vector<std::pair<unsigned int, unsigned int>>>
2528 std::vector<std::pair<std::pair<unsigned int, unsigned int>,
unsigned int>>
2535 std::vector<std::pair<std::pair<unsigned int, unsigned int>,
unsigned int>>>
2564 std::vector<std::pair<std::pair<unsigned int, unsigned int>,
unsigned int>>
2618 static std::vector<unsigned int>
2721 virtual std::unique_ptr<InternalDataBase>
2725 ::internal::FEValuesImplementation::
2726 FiniteElementRelatedData<dim, spacedim> &output_data)
const = 0;
2769 virtual std::unique_ptr<InternalDataBase>
2773 ::internal::FEValuesImplementation::
2774 FiniteElementRelatedData<dim, spacedim> &output_data)
const;
2779 virtual std::unique_ptr<InternalDataBase>
2785 &output_data)
const;
2828 virtual std::unique_ptr<InternalDataBase>
2835 &output_data)
const;
2924 const ::internal::FEValuesImplementation::MappingRelatedData<dim,
2930 &output_data)
const = 0;
2977 const unsigned int face_no,
2981 const ::internal::FEValuesImplementation::MappingRelatedData<dim,
2987 &output_data)
const;
2995 const unsigned int face_no,
3003 &output_data)
const;
3053 const unsigned int face_no,
3054 const unsigned int sub_no,
3058 const ::internal::FEValuesImplementation::MappingRelatedData<dim,
3064 &output_data)
const = 0;
3068 friend class FEValues<dim, spacedim>;
3071 friend class FESystem<dim, spacedim>;
3076 static_assert(dim <= spacedim,
3077 "The dimension <dim> of a FiniteElement must be less than or "
3078 "equal to the space dimension <spacedim> in which it lives.");
3086template <
int dim,
int spacedim>
3088 operator[](
const unsigned int fe_index)
const
3092 ExcMessage(
"A fe_index of zero is the only index allowed here"));
3098template <
int dim,
int spacedim>
3099inline std::pair<unsigned int, unsigned int>
3101 const unsigned int index)
const
3112template <
int dim,
int spacedim>
3121template <
int dim,
int spacedim>
3124 const unsigned int index)
const
3131template <
int dim,
int spacedim>
3134 const unsigned int component,
3135 const unsigned int index)
const
3138 const std::vector<std::pair<unsigned int, unsigned int>>::const_iterator it =
3141 std::pair<unsigned int, unsigned int>(component, index));
3144 ExcMessage(
"You are asking for the number of the shape function "
3145 "within a system element that corresponds to vector "
3148 " and within this to "
3152 "shape function exists."));
3158template <
int dim,
int spacedim>
3159inline std::pair<unsigned int, unsigned int>
3161 const unsigned int index,
3162 const unsigned int face_no)
const
3193template <
int dim,
int spacedim>
3194inline std::pair<std::pair<unsigned int, unsigned int>,
unsigned int>
3196 const unsigned int index)
const
3204template <
int dim,
int spacedim>
3205inline std::pair<std::pair<unsigned int, unsigned int>,
unsigned int>
3207 const unsigned int index,
3208 const unsigned int face_no)
const
3220template <
int dim,
int spacedim>
3223 const unsigned int index)
const
3230template <
int dim,
int spacedim>
3231inline std::pair<unsigned int, unsigned int>
3233 const unsigned int index)
const
3242template <
int dim,
int spacedim>
3243inline std::pair<unsigned int, unsigned int>
3245 const unsigned int index)
const
3252template <
int dim,
int spacedim>
3253inline std::pair<unsigned int, types::global_dof_index>
3255 const unsigned int index)
const
3261 return std::pair<unsigned int, types::global_dof_index>(
3269template <
int dim,
int spacedim>
3272 const unsigned int index)
const
3280template <
int dim,
int spacedim>
3290template <
int dim,
int spacedim>
3300template <
int dim,
int spacedim>
3309template <
int dim,
int spacedim>
3332template <
int dim,
int spacedim>
3335 const unsigned int cell_dof_index)
const
size_type block_size(const unsigned int i) const
unsigned int size() const
size_type block_start(const unsigned int i) const
std::pair< unsigned int, size_type > global_to_local(const size_type i) const
unsigned int get_first_line_index() const
unsigned int n_dofs_per_cell() const
unsigned int get_first_quad_index(const unsigned int quad_no=0) const
unsigned int n_components() const
unsigned int n_unique_faces() const
unsigned int get_first_hex_index() const
virtual ~InternalDataBase()=default
InternalDataBase(const InternalDataBase &)=delete
virtual std::size_t memory_consumption() const
bool constraints_are_implemented(const ::internal::SubfaceCase< dim > &subface_case=::internal::SubfaceCase< dim >::case_isotropic) const
std::pair< unsigned int, types::global_dof_index > system_to_block_index(const unsigned int component) const
bool isotropic_prolongation_is_implemented() const
virtual std::string get_name() const =0
virtual Point< dim > unit_support_point(const unsigned int index) const
virtual FiniteElementDomination::Domination compare_for_domination(const FiniteElement< dim, spacedim > &fe_other, const unsigned int codim=0) const
const std::vector< unsigned int > n_nonzero_components_table
virtual std::unique_ptr< InternalDataBase > get_data(const UpdateFlags update_flags, const Mapping< dim, spacedim > &mapping, const Quadrature< dim > &quadrature, ::internal::FEValuesImplementation::FiniteElementRelatedData< dim, spacedim > &output_data) const =0
virtual const FullMatrix< double > & get_restriction_matrix(const unsigned int child, const RefinementCase< dim > &refinement_case=RefinementCase< dim >::isotropic_refinement) const
const ComponentMask & get_nonzero_components(const unsigned int i) const
std::vector< std::vector< Point< dim - 1 > > > unit_face_support_points
bool prolongation_is_implemented() const
virtual std::pair< Table< 2, bool >, std::vector< unsigned int > > get_constant_modes() const
virtual const FiniteElement< dim, spacedim > & base_element(const unsigned int index) const
ComponentMask component_mask(const BlockMask &block_mask) const
virtual Tensor< 1, dim > shape_grad(const unsigned int i, const Point< dim > &p) const
ComponentMask component_mask(const FEValuesExtractors::SymmetricTensor< 2 > &sym_tensor) const
virtual std::unique_ptr< InternalDataBase > get_face_data(const UpdateFlags update_flags, const Mapping< dim, spacedim > &mapping, const hp::QCollection< dim - 1 > &quadrature, ::internal::FEValuesImplementation::FiniteElementRelatedData< dim, spacedim > &output_data) const
std::pair< unsigned int, unsigned int > component_to_base_index(const unsigned int component) const
virtual Point< dim - 1 > unit_face_support_point(const unsigned int index, const unsigned int face_no=0) const
bool is_primitive(const unsigned int i) const
static std::vector< unsigned int > compute_n_nonzero_components(const std::vector< ComponentMask > &nonzero_components)
virtual std::unique_ptr< InternalDataBase > get_subface_data(const UpdateFlags update_flags, const Mapping< dim, spacedim > &mapping, const Quadrature< dim - 1 > &quadrature, ::internal::FEValuesImplementation::FiniteElementRelatedData< dim, spacedim > &output_data) const
bool has_face_support_points(const unsigned int face_no=0) const
const bool cached_primitivity
virtual const FiniteElement< dim, spacedim > & get_sub_fe(const unsigned int first_component, const unsigned int n_selected_components) const
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_quad_dof_identities(const FiniteElement< dim, spacedim > &fe_other, const unsigned int face_no=0) const
ComponentMask component_mask(const FEValuesExtractors::Scalar &scalar) const
bool operator!=(const FiniteElement< dim, spacedim > &) const
ComponentMask component_mask(const FEValuesExtractors::Vector &vector) const
bool has_support_points() const
std::vector< std::vector< FullMatrix< double > > > restriction
bool has_generalized_support_points() const
virtual std::unique_ptr< FiniteElement< dim, spacedim > > clone() const =0
virtual Tensor< 2, dim > shape_grad_grad(const unsigned int i, const Point< dim > &p) const
std::vector< Table< 2, int > > adjust_quad_dof_index_for_face_orientation_table
virtual bool operator==(const FiniteElement< dim, spacedim > &fe) const
static const unsigned int space_dimension
unsigned int adjust_line_dof_index_for_line_orientation(const unsigned int index, const bool line_orientation) const
const std::vector< Point< dim > > & get_unit_support_points() const
BlockIndices base_to_block_indices
const FiniteElement< dim, spacedim > & operator[](const unsigned int fe_index) const
bool is_primitive() const
void reinit_restriction_and_prolongation_matrices(const bool isotropic_restriction_only=false, const bool isotropic_prolongation_only=false)
const std::vector< Point< dim - 1 > > & get_unit_face_support_points(const unsigned int face_no=0) const
bool isotropic_restriction_is_implemented() const
std::vector< std::vector< Point< dim - 1 > > > generalized_face_support_points
std::pair< unsigned int, unsigned int > block_to_base_index(const unsigned int block) const
std::vector< int > adjust_line_dof_index_for_line_orientation_table
virtual bool has_support_on_face(const unsigned int shape_index, const unsigned int face_index) const
bool restriction_is_additive(const unsigned int index) const
virtual unsigned int face_to_cell_index(const unsigned int face_dof_index, const unsigned int face, const bool face_orientation=true, const bool face_flip=false, const bool face_rotation=false) const
const FiniteElement< dim, spacedim > & get_sub_fe(const ComponentMask &mask) const
virtual Tensor< 4, dim > shape_4th_derivative_component(const unsigned int i, const Point< dim > &p, const unsigned int component) const
virtual double shape_value_component(const unsigned int i, const Point< dim > &p, const unsigned int component) const
virtual void fill_fe_values(const typename Triangulation< dim, spacedim >::cell_iterator &cell, const CellSimilarity::Similarity cell_similarity, const Quadrature< dim > &quadrature, const Mapping< dim, spacedim > &mapping, const typename Mapping< dim, spacedim >::InternalDataBase &mapping_internal, const ::internal::FEValuesImplementation::MappingRelatedData< dim, spacedim > &mapping_data, const InternalDataBase &fe_internal, ::internal::FEValuesImplementation::FiniteElementRelatedData< dim, spacedim > &output_data) const =0
FiniteElement(const FiniteElement< dim, spacedim > &)=default
virtual void get_subface_interpolation_matrix(const FiniteElement< dim, spacedim > &source, const unsigned int subface, FullMatrix< double > &matrix, const unsigned int face_no=0) const
unsigned int component_to_block_index(const unsigned int component) const
virtual void fill_fe_face_values(const typename Triangulation< dim, spacedim >::cell_iterator &cell, const unsigned int face_no, const hp::QCollection< dim - 1 > &quadrature, const Mapping< dim, spacedim > &mapping, const typename Mapping< dim, spacedim >::InternalDataBase &mapping_internal, const ::internal::FEValuesImplementation::MappingRelatedData< dim, spacedim > &mapping_data, const InternalDataBase &fe_internal, ::internal::FEValuesImplementation::FiniteElementRelatedData< dim, spacedim > &output_data) const
BlockMask block_mask(const FEValuesExtractors::Scalar &scalar) const
virtual UpdateFlags requires_update_flags(const UpdateFlags update_flags) const =0
virtual void get_interpolation_matrix(const FiniteElement< dim, spacedim > &source, FullMatrix< double > &matrix) const
virtual Tensor< 3, dim > shape_3rd_derivative(const unsigned int i, const Point< dim > &p) const
std::pair< unsigned int, unsigned int > system_to_component_index(const unsigned int index) const
std::vector< std::pair< std::pair< unsigned int, unsigned int >, unsigned int > > system_to_base_table
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_line_dof_identities(const FiniteElement< dim, spacedim > &fe_other) const
virtual void convert_generalized_support_point_values_to_dof_values(const std::vector< Vector< double > > &support_point_values, std::vector< double > &nodal_values) const
FiniteElement(const FiniteElementData< dim > &fe_data, const std::vector< bool > &restriction_is_additive_flags, const std::vector< ComponentMask > &nonzero_components)
BlockMask block_mask(const FEValuesExtractors::Vector &vector) const
BlockMask block_mask(const ComponentMask &component_mask) const
std::pair< std::pair< unsigned int, unsigned int >, unsigned int > system_to_base_index(const unsigned int index) const
std::vector< std::pair< unsigned int, unsigned int > > system_to_component_table
std::pair< std::pair< unsigned int, unsigned int >, unsigned int > face_system_to_base_index(const unsigned int index, const unsigned int face_no=0) const
virtual Tensor< 3, dim > shape_3rd_derivative_component(const unsigned int i, const Point< dim > &p, const unsigned int component) const
const FullMatrix< double > & constraints(const ::internal::SubfaceCase< dim > &subface_case=::internal::SubfaceCase< dim >::case_isotropic) const
unsigned int element_multiplicity(const unsigned int index) const
std::pair< std::unique_ptr< FiniteElement< dim, spacedim > >, unsigned int > operator^(const unsigned int multiplicity) const
const std::vector< bool > restriction_is_additive_flags
virtual ~FiniteElement() override=default
std::vector< std::pair< std::pair< unsigned int, unsigned int >, unsigned int > > component_to_base_table
TableIndices< 2 > interface_constraints_size() const
std::vector< std::vector< std::pair< std::pair< unsigned int, unsigned int >, unsigned int > > > face_system_to_base_table
std::vector< Point< dim > > unit_support_points
virtual Tensor< 1, dim > shape_grad_component(const unsigned int i, const Point< dim > &p, const unsigned int component) const
bool restriction_is_implemented() const
virtual std::unique_ptr< InternalDataBase > get_face_data(const UpdateFlags update_flags, const Mapping< dim, spacedim > &mapping, const Quadrature< dim - 1 > &quadrature, internal::FEValuesImplementation::FiniteElementRelatedData< dim, spacedim > &output_data) const
std::vector< std::vector< std::pair< unsigned int, unsigned int > > > face_system_to_component_table
virtual void fill_fe_face_values(const typename Triangulation< dim, spacedim >::cell_iterator &cell, const unsigned int face_no, const Quadrature< dim - 1 > &quadrature, const Mapping< dim, spacedim > &mapping, const typename Mapping< dim, spacedim >::InternalDataBase &mapping_internal, const internal::FEValuesImplementation::MappingRelatedData< dim, spacedim > &mapping_data, const InternalDataBase &fe_internal, internal::FEValuesImplementation::FiniteElementRelatedData< dim, spacedim > &output_data) const
FiniteElement(FiniteElement< dim, spacedim > &&)=default
unsigned int n_nonzero_components(const unsigned int i) const
FullMatrix< double > interface_constraints
const std::vector< Point< dim > > & get_generalized_support_points() const
virtual void fill_fe_subface_values(const typename Triangulation< dim, spacedim >::cell_iterator &cell, const unsigned int face_no, const unsigned int sub_no, const Quadrature< dim - 1 > &quadrature, const Mapping< dim, spacedim > &mapping, const typename Mapping< dim, spacedim >::InternalDataBase &mapping_internal, const ::internal::FEValuesImplementation::MappingRelatedData< dim, spacedim > &mapping_data, const InternalDataBase &fe_internal, ::internal::FEValuesImplementation::FiniteElementRelatedData< dim, spacedim > &output_data) const =0
BlockMask block_mask(const FEValuesExtractors::SymmetricTensor< 2 > &sym_tensor) const
unsigned int n_base_elements() const
virtual Tensor< 2, dim > shape_grad_grad_component(const unsigned int i, const Point< dim > &p, const unsigned int component) const
virtual const FullMatrix< double > & get_prolongation_matrix(const unsigned int child, const RefinementCase< dim > &refinement_case=RefinementCase< dim >::isotropic_refinement) const
virtual double shape_value(const unsigned int i, const Point< dim > &p) const
virtual void get_face_interpolation_matrix(const FiniteElement< dim, spacedim > &source, FullMatrix< double > &matrix, const unsigned int face_no=0) const
virtual std::size_t memory_consumption() const
virtual Tensor< 4, dim > shape_4th_derivative(const unsigned int i, const Point< dim > &p) const
GeometryPrimitive get_associated_geometry_primitive(const unsigned int cell_dof_index) const
std::vector< Point< dim > > generalized_support_points
unsigned int component_to_system_index(const unsigned int component, const unsigned int index) const
unsigned int adjust_quad_dof_index_for_face_orientation(const unsigned int index, const unsigned int face_no, const bool face_orientation, const bool face_flip, const bool face_rotation) const
const std::vector< ComponentMask > nonzero_components
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_vertex_dof_identities(const FiniteElement< dim, spacedim > &fe_other) const
std::pair< unsigned int, unsigned int > face_system_to_component_index(const unsigned int index, const unsigned int face_no=0) const
virtual bool hp_constraints_are_implemented() const
std::vector< std::vector< FullMatrix< double > > > prolongation
types::global_dof_index first_block_of_base(const unsigned int b) const
#define DEAL_II_DEPRECATED
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_CLOSE
#define DeclException0(Exception0)
static ::ExceptionBase & ExcShapeFunctionNotPrimitive(int arg1)
#define Assert(cond, exc)
static ::ExceptionBase & ExcWrongInterfaceMatrixSize(int arg1, int arg2)
#define DeclException2(Exception2, type1, type2, outsequence)
static ::ExceptionBase & ExcUnitShapeValuesDoNotExist()
static ::ExceptionBase & ExcProjectionVoid()
#define AssertIndexRange(index, range)
#define DeclExceptionMsg(Exception, defaulttext)
static ::ExceptionBase & ExcFENotPrimitive()
static ::ExceptionBase & ExcEmbeddingVoid()
#define DeclException1(Exception1, type1, outsequence)
static ::ExceptionBase & ExcInterpolationNotImplemented()
static ::ExceptionBase & ExcMessage(std::string arg1)
static ::ExceptionBase & ExcFEHasNoSupportPoints()
@ matrix
Contents is actually a matrix.
SymmetricTensor< 2, dim, Number > b(const Tensor< 2, dim, Number > &F)
std::string int_to_string(const unsigned int value, const unsigned int digits=numbers::invalid_unsigned_int)