19 #include <deal.II/base/config.h> 20 #include <deal.II/fe/fe_base.h> 21 #include <deal.II/fe/fe_values_extractors.h> 22 #include <deal.II/fe/fe_update_flags.h> 23 #include <deal.II/fe/component_mask.h> 24 #include <deal.II/fe/block_mask.h> 25 #include <deal.II/fe/mapping.h> 30 DEAL_II_NAMESPACE_OPEN
33 template <
int dim,
int spacedim>
class FEValues;
36 template <
int dim,
int spacedim>
class FESystem;
632 template <
int dim,
int spacedim=dim>
781 std::pair<std::unique_ptr<FiniteElement<dim, spacedim> >,
unsigned int>
782 operator^ (
const unsigned int multiplicity)
const;
796 std::unique_ptr<FiniteElement<dim,spacedim> >
809 virtual std::string
get_name ()
const = 0;
870 const unsigned int component)
const;
904 const unsigned int component)
const;
938 const unsigned int component)
const;
972 const unsigned int component)
const;
1006 const unsigned int component)
const;
1018 const unsigned int face_index)
const;
1275 const unsigned int subface,
1301 std::vector<std::pair<unsigned int, unsigned int> >
1309 std::vector<std::pair<unsigned int, unsigned int> >
1317 std::vector<std::pair<unsigned int, unsigned int> >
1407 std::pair<unsigned int, unsigned int>
1420 const unsigned int index)
const;
1431 std::pair<unsigned int, unsigned int>
1443 const bool face_orientation,
1444 const bool face_flip,
1445 const bool face_rotation)
const;
1503 const unsigned int face,
1504 const bool face_orientation =
true,
1505 const bool face_flip =
false,
1506 const bool face_rotation =
false)
const;
1516 const bool line_orientation)
const;
1686 get_sub_fe (
const unsigned int first_component,
1687 const unsigned int n_selected_components)
const;
1710 std::pair<std::pair<unsigned int, unsigned int>,
unsigned int>
1721 std::pair<std::pair<unsigned int, unsigned int>,
unsigned int>
1742 std::pair<unsigned int, unsigned int>
1750 std::pair<unsigned int,unsigned int>
1756 std::pair<unsigned int,types::global_dof_index>
1937 virtual std::pair<Table<2,bool>,std::vector<unsigned int> >
1977 const std::vector<Point<dim> > &
2041 const std::vector<
Point<dim-1> > &
2074 const std::vector<Point<dim> > &
2097 const std::vector<
Point<dim-1> > &
2243 std::vector<double> &nodal_values)
const;
2264 <<
"The shape function with index " << arg1
2265 <<
" is not primitive, i.e. it is vector-valued and " 2266 <<
"has more than one non-zero vector component. This " 2267 <<
"function cannot be called for these shape functions. " 2268 <<
"Maybe you want to use the same function with the " 2269 <<
"_component suffix?");
2282 "You are trying to access the values or derivatives of shape functions " 2283 "on the reference cell of an element that does not define its shape " 2284 "functions through mapping from the reference cell. Consequently, " 2285 "you cannot ask for shape function values or derivatives on the " 2295 "You are trying to access the support points of a finite " 2296 "element that either has no support points at all, or for " 2297 "which the corresponding tables have not been implemented.");
2306 "You are trying to access the matrices that describe how " 2307 "to embed a finite element function on one cell into the " 2308 "finite element space on one of its children (i.e., the " 2309 "'embedding' or 'prolongation' matrices). However, the " 2310 "current finite element can either not define this sort of " 2311 "operation, or it has not yet been implemented.");
2321 "You are trying to access the matrices that describe how " 2322 "to restrict a finite element function from the children " 2323 "of one cell to the finite element space defined on their " 2324 "parent (i.e., the 'restriction' or 'projection' matrices). " 2325 "However, the current finite element can either not define " 2326 "this sort of operation, or it has not yet been " 2335 <<
"The interface matrix has a size of " << arg1
2337 <<
", which is not reasonable for the current element " 2338 "in the present dimension.");
2361 const bool isotropic_prolongation_only=
false);
2498 std::vector<std::pair<std::pair<unsigned int,unsigned int>,
unsigned int> >
2504 std::vector<std::pair<std::pair<unsigned int,unsigned int>,
unsigned int> >
2533 std::vector<std::pair<std::pair<unsigned int, unsigned int>,
unsigned int> >
2588 std::vector<unsigned int>
2692 std::unique_ptr<InternalDataBase>
2740 std::unique_ptr<InternalDataBase>
2788 std::unique_ptr<InternalDataBase>
2881 const ::internal::FEValuesImplementation::MappingRelatedData<dim, spacedim> &mapping_data,
2882 const InternalDataBase &fe_internal,
2930 const unsigned int face_no,
2934 const ::internal::FEValuesImplementation::MappingRelatedData<dim, spacedim> &mapping_data,
2935 const InternalDataBase &fe_internal,
2986 const unsigned int face_no,
2987 const unsigned int sub_no,
2991 const ::internal::FEValuesImplementation::MappingRelatedData<dim, spacedim> &mapping_data,
2992 const InternalDataBase &fe_internal,
2995 friend class InternalDataBase;
2997 friend class FEValues<dim,spacedim>;
3000 friend class FESystem<dim,spacedim>;
3004 #ifndef DEAL_II_MSVC 3005 static_assert (dim<=spacedim,
3006 "The dimension <dim> of a FiniteElement must be less than or " 3007 "equal to the space dimension <spacedim> in which it lives.");
3016 template <
int dim,
int spacedim>
3023 ExcMessage (
"A fe_index of zero is the only index allowed here"));
3029 template <
int dim,
int spacedim>
3031 std::pair<unsigned int,unsigned int>
3043 template <
int dim,
int spacedim>
3053 template <
int dim,
int spacedim>
3063 template <
int dim,
int spacedim>
3067 const unsigned int index)
const 3070 const std::vector<std::pair<unsigned int, unsigned int> >::const_iterator
3072 std::pair<unsigned int, unsigned int>(component, index));
3075 ExcMessage (
"You are asking for the number of the shape function " 3076 "within a system element that corresponds to vector " 3079 "shape function exists."));
3085 template <
int dim,
int spacedim>
3087 std::pair<unsigned int,unsigned int>
3115 template <
int dim,
int spacedim>
3117 std::pair<std::pair<unsigned int,unsigned int>,
unsigned int>
3128 template <
int dim,
int spacedim>
3130 std::pair<std::pair<unsigned int,unsigned int>,
unsigned int>
3140 template <
int dim,
int spacedim>
3150 template <
int dim,
int spacedim>
3152 std::pair<unsigned int,unsigned int>
3163 template <
int dim,
int spacedim>
3165 std::pair<unsigned int,unsigned int>
3173 template <
int dim,
int spacedim>
3175 std::pair<unsigned int,types::global_dof_index>
3183 return std::pair<unsigned int, types::global_dof_index>(
3191 template <
int dim,
int spacedim>
3203 template <
int dim,
int spacedim>
3214 template <
int dim,
int spacedim>
3225 template <
int dim,
int spacedim>
3235 template <
int dim,
int spacedim>
3260 template <
int dim,
int spacedim>
3282 DEAL_II_NAMESPACE_CLOSE
static ::ExceptionBase & ExcFEHasNoSupportPoints()
const unsigned int first_hex_index
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
virtual UpdateFlags requires_update_flags(const UpdateFlags update_flags) const =0
BlockMask block_mask(const FEValuesExtractors::Scalar &scalar) const
bool restriction_is_additive(const unsigned int index) const
virtual Tensor< 2, dim > shape_grad_grad_component(const unsigned int i, const Point< dim > &p, const unsigned int component) const
std::vector< std::vector< FullMatrix< double > > > restriction
#define DeclException2(Exception2, type1, type2, outsequence)
virtual std::size_t memory_consumption() const
const std::vector< Point< dim-1 > > & get_unit_face_support_points() const
virtual void get_face_interpolation_matrix(const FiniteElement< dim, spacedim > &source, FullMatrix< double > &matrix) const
virtual bool operator==(const FiniteElement< dim, spacedim > &fe) const
std::vector< Point< dim > > generalized_support_points
virtual Tensor< 3, dim > shape_3rd_derivative(const unsigned int i, const Point< dim > &p) const
FullMatrix< double > interface_constraints
bool operator!=(const FiniteElement< dim, spacedim > &) const
unsigned int n_nonzero_components(const unsigned int i) const
const std::vector< Point< dim-1 > > & get_generalized_face_support_points() const
FiniteElement(const FiniteElementData< dim > &fe_data, const std::vector< bool > &restriction_is_additive_flags, const std::vector< ComponentMask > &nonzero_components)
const FiniteElement< dim, spacedim > & get_sub_fe(const ComponentMask &mask) const
virtual double shape_value_component(const unsigned int i, const Point< dim > &p, const unsigned int component) const
virtual void get_interpolation_matrix(const FiniteElement< dim, spacedim > &source, FullMatrix< double > &matrix) const
static ::ExceptionBase & ExcUnitShapeValuesDoNotExist()
virtual Point< dim > unit_support_point(const unsigned int index) const
bool restriction_is_implemented() const
const std::vector< Point< dim > > & get_generalized_support_points() const
virtual Tensor< 1, dim > shape_grad(const unsigned int i, const Point< dim > &p) const
virtual Tensor< 3, dim > shape_3rd_derivative_component(const unsigned int i, const Point< dim > &p, const unsigned int component) const
#define AssertIndexRange(index, range)
virtual ~InternalDataBase()=default
Table< 2, int > adjust_quad_dof_index_for_face_orientation_table
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_quad_dof_identities(const FiniteElement< dim, spacedim > &fe_other) const
bool isotropic_prolongation_is_implemented() const
std::vector< std::pair< std::pair< unsigned int, unsigned int >, unsigned int > > component_to_base_table
bool has_generalized_support_points() const
ComponentMask component_mask(const FEValuesExtractors::Scalar &scalar) const
static std::vector< unsigned int > compute_n_nonzero_components(const std::vector< ComponentMask > &nonzero_components)
std::vector< std::pair< std::pair< unsigned int, unsigned int >, unsigned int > > face_system_to_base_table
size_type block_size(const unsigned int i) const
virtual const FullMatrix< double > & get_prolongation_matrix(const unsigned int child, const RefinementCase< dim > &refinement_case=RefinementCase< dim >::isotropic_refinement) const
bool is_primitive() 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
static ::ExceptionBase & ExcInterpolationNotImplemented()
const std::vector< unsigned int > n_nonzero_components_table
static ::ExceptionBase & ExcIndexRange(int arg1, int arg2, int arg3)
bool has_face_support_points() const
std::vector< Point< dim > > unit_support_points
bool has_support_points() const
unsigned int component_to_block_index(const unsigned int component) const
static ::ExceptionBase & ExcFENotPrimitive()
virtual std::unique_ptr< FiniteElement< dim, spacedim > > clone() const =0
static ::ExceptionBase & ExcMessage(std::string arg1)
const FullMatrix< double > & constraints(const ::internal::SubfaceCase< dim > &subface_case=::internal::SubfaceCase< dim >::case_isotropic) const
virtual Tensor< 1, dim > shape_grad_component(const unsigned int i, const Point< dim > &p, const unsigned int component) const
const unsigned int first_quad_index
virtual std::size_t memory_consumption() const
#define DeclException1(Exception1, type1, outsequence)
std::vector< std::vector< FullMatrix< double > > > prolongation
std::pair< unsigned int, unsigned int > component_to_base_index(const unsigned int component) const
unsigned int global_dof_index
#define Assert(cond, exc)
unsigned int element_multiplicity(const unsigned int index) const
virtual const FullMatrix< double > & get_restriction_matrix(const unsigned int child, const RefinementCase< dim > &refinement_case=RefinementCase< dim >::isotropic_refinement) const
Abstract base class for mapping classes.
GeometryPrimitive get_associated_geometry_primitive(const unsigned int cell_dof_index) const
std::vector< Point< dim-1 > > unit_face_support_points
const ComponentMask & get_nonzero_components(const unsigned int i) const
#define DeclExceptionMsg(Exception, defaulttext)
#define DeclException0(Exception0)
virtual void get_subface_interpolation_matrix(const FiniteElement< dim, spacedim > &source, const unsigned int subface, FullMatrix< double > &matrix) const
bool constraints_are_implemented(const ::internal::SubfaceCase< dim > &subface_case=::internal::SubfaceCase< dim >::case_isotropic) const
static ::ExceptionBase & ExcWrongInterfaceMatrixSize(int arg1, int arg2)
std::pair< unsigned int, unsigned int > face_system_to_component_index(const unsigned int index) const
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 =0
virtual const FiniteElement< dim, spacedim > & base_element(const unsigned int index) const
virtual std::string get_name() const =0
static ::ExceptionBase & ExcProjectionVoid()
bool has_generalized_face_support_points() const
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_vertex_dof_identities(const FiniteElement< dim, spacedim > &fe_other) 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
virtual Point< dim-1 > unit_face_support_point(const unsigned int index) const
std::string int_to_string(const unsigned int value, const unsigned int digits=numbers::invalid_unsigned_int)
std::pair< unsigned int, unsigned int > block_to_base_index(const unsigned int block) const
const unsigned int dofs_per_cell
static ::ExceptionBase & ExcShapeFunctionNotPrimitive(int arg1)
std::vector< Point< dim-1 > > generalized_face_support_points
types::global_dof_index first_block_of_base(const unsigned int b) const
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
unsigned int component_to_system_index(const unsigned int component, const unsigned int index) const
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_line_dof_identities(const FiniteElement< dim, spacedim > &fe_other) const
std::pair< unsigned int, unsigned int > system_to_component_index(const unsigned int index) const
const FiniteElement< dim, spacedim > & operator[](const unsigned int fe_index) const
std::pair< std::pair< unsigned int, unsigned int >, unsigned int > face_system_to_base_index(const unsigned int index) const
static ::ExceptionBase & ExcEmbeddingVoid()
virtual double shape_value(const unsigned int i, const Point< dim > &p) const
std::pair< std::pair< unsigned int, unsigned int >, unsigned int > system_to_base_index(const unsigned int index) const
std::pair< unsigned int, types::global_dof_index > system_to_block_index(const unsigned int component) const
std::vector< std::pair< unsigned int, unsigned int > > system_to_component_table
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
virtual bool hp_constraints_are_implemented() const
size_type block_start(const unsigned int i) const
bool prolongation_is_implemented() const
const unsigned int first_line_index
virtual Tensor< 4, dim > shape_4th_derivative_component(const unsigned int i, const Point< dim > &p, const unsigned int component) const
const bool cached_primitivity
virtual Tensor< 2, dim > shape_grad_grad(const unsigned int i, const Point< dim > &p) const
const std::vector< ComponentMask > nonzero_components
void reinit_restriction_and_prolongation_matrices(const bool isotropic_restriction_only=false, const bool isotropic_prolongation_only=false)
std::vector< std::pair< unsigned int, unsigned int > > face_system_to_component_table
bool isotropic_restriction_is_implemented() 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
BlockIndices base_to_block_indices
unsigned int n_components(const DoFHandler< dim, spacedim > &dh)
virtual Tensor< 4, dim > shape_4th_derivative(const unsigned int i, const Point< dim > &p) const
unsigned int n_base_elements() const
unsigned int size() const
static const unsigned int space_dimension
unsigned int adjust_quad_dof_index_for_face_orientation(const unsigned int index, const bool face_orientation, const bool face_flip, const bool face_rotation) 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
std::vector< int > adjust_line_dof_index_for_line_orientation_table
TableIndices< 2 > interface_constraints_size() const
std::pair< unsigned int, size_type > global_to_local(const size_type i) const
virtual ~FiniteElement()=default
virtual std::pair< Table< 2, bool >, std::vector< unsigned int > > get_constant_modes() const
const std::vector< bool > restriction_is_additive_flags
std::pair< std::unique_ptr< FiniteElement< dim, spacedim > >, unsigned int > operator^(const unsigned int multiplicity) 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
virtual FiniteElementDomination::Domination compare_for_face_domination(const FiniteElement< dim, spacedim > &fe_other) const
virtual bool has_support_on_face(const unsigned int shape_index, const unsigned int face_index) const
std::vector< std::pair< std::pair< unsigned int, unsigned int >, unsigned int > > system_to_base_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