![]() |
deal.II version GIT relicensing-6834-g5b78e6bcdf 2026-10-01 11:20:01+00:00
|
#include <deal.II/fe/mapping_fe_field.h>
Per-component enumeration of a FiniteElement suitable for use with MappingFEField's DoFs.
MappingFEField can use both primitive finite elements (i.e., elements which are nonzero in exactly one component) as well as a ComponentMask to select components from a FiniteElement with more than spacedim components. This class computes, from both the FiniteElement and ComponentMask, the nonzero DoFs for each selected component.
Definition at line 53 of file mapping_fe_field.h.
Public Member Functions | |
| ComponentDoFs (const FiniteElement< dim, spacedim > &fe, const ComponentMask &mask) | |
| bool | all_components_are_primitive () const |
| ArrayView< const unsigned int > | operator[] (const unsigned int component) const |
Private Attributes | |
| bool | all_components_primitive |
| std::array< unsigned int, spacedim+1 > | offsets |
| std::vector< unsigned int > | component_dofs |
| internal::ComponentDoFs< dim, spacedim >::ComponentDoFs | ( | const FiniteElement< dim, spacedim > & | fe, |
| const ComponentMask & | mask | ||
| ) |
Constructor. mask should select spacedim components of fe used with the current MappingFEField.
| bool internal::ComponentDoFs< dim, spacedim >::all_components_are_primitive | ( | ) | const |
Return whether or not all selected components of the original FiniteElement are primitive.
| ArrayView< const unsigned int > internal::ComponentDoFs< dim, spacedim >::operator[] | ( | const unsigned int | component | ) | const |
Return an ArrayView for the DoFs which are nonzero for a particular component.
|
private |
Whether or not all the selected base FiniteElement objects are primitive.
Definition at line 81 of file mapping_fe_field.h.
|
private |
Offsets into component_dofs. See operator[]'s definition.
Definition at line 86 of file mapping_fe_field.h.
|
private |
DoFs which are nonzero for each component.
Definition at line 91 of file mapping_fe_field.h.