Reference documentation for deal.II version 9.2.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\}}\)
Public Types | Static Public Attributes | Protected Member Functions | List of all members
FEEvaluationAccess< dim, n_components_, Number, is_face, VectorizedArrayType > Class Template Reference

#include <deal.II/matrix_free/fe_evaluation.h>

Inheritance diagram for FEEvaluationAccess< dim, n_components_, Number, is_face, VectorizedArrayType >:
[legend]

Public Types

using number_type = Number
 
using value_type = Tensor< 1, n_components_, VectorizedArrayType >
 
using gradient_type = Tensor< 1, n_components_, Tensor< 1, dim, VectorizedArrayType > >
 
using BaseClass = FEEvaluationBase< dim, n_components_, Number, is_face, VectorizedArrayType >
 
- Public Types inherited from FEEvaluationBase< dim, n_components_, Number, is_face, VectorizedArray< Number > >
using number_type = Number
 
using value_type = Tensor< 1, n_components_, VectorizedArray< Number > >
 
using gradient_type = Tensor< 1, n_components_, Tensor< 1, dim, VectorizedArray< Number > > >
 

Static Public Attributes

static constexpr unsigned int dimension = dim
 
static constexpr unsigned int n_components = n_components_
 
- Static Public Attributes inherited from FEEvaluationBase< dim, n_components_, Number, is_face, VectorizedArray< Number > >
static constexpr unsigned int dimension
 
static constexpr unsigned int n_components
 

Protected Member Functions

 FEEvaluationAccess (const MatrixFree< dim, Number, VectorizedArrayType > &matrix_free, const unsigned int dof_no, const unsigned int first_selected_component, const unsigned int quad_no, const unsigned int fe_degree, const unsigned int n_q_points, const bool is_interior_face=true)
 
template<int n_components_other>
 FEEvaluationAccess (const Mapping< dim > &mapping, const FiniteElement< dim > &fe, const Quadrature< 1 > &quadrature, const UpdateFlags update_flags, const unsigned int first_selected_component, const FEEvaluationBase< dim, n_components_other, Number, is_face, VectorizedArrayType > *other)
 
 FEEvaluationAccess (const FEEvaluationAccess &other)
 
FEEvaluationAccessoperator= (const FEEvaluationAccess &other)
 
- Protected Member Functions inherited from FEEvaluationBase< dim, n_components_, Number, is_face, VectorizedArray< Number > >
 FEEvaluationBase (const MatrixFree< dim, Number, VectorizedArray< Number > > &matrix_free, const unsigned int dof_no, const unsigned int first_selected_component, const unsigned int quad_no, const unsigned int fe_degree, const unsigned int n_q_points, const bool is_interior_face)
 
 FEEvaluationBase (const Mapping< dim > &mapping, const FiniteElement< dim > &fe, const Quadrature< 1 > &quadrature, const UpdateFlags update_flags, const unsigned int first_selected_component, const FEEvaluationBase< dim, n_components_other, Number, is_face, VectorizedArray< Number > > *other)
 
 FEEvaluationBase (const FEEvaluationBase &other)
 
FEEvaluationBaseoperator= (const FEEvaluationBase &other)
 
void read_write_operation (const VectorOperation &operation, VectorType *vectors[], const std::bitset< VectorizedArray< Number > ::size()> &mask, const bool apply_constraints=true) const
 
void read_write_operation_contiguous (const VectorOperation &operation, VectorType *vectors[], const std::bitset< VectorizedArray< Number > ::size()> &mask) const
 
void read_write_operation_global (const VectorOperation &operation, VectorType *vectors[]) const
 

Additional Inherited Members

- Public Member Functions inherited from FEEvaluationBase< dim, n_components_, Number, is_face, VectorizedArray< Number > >
 ~FEEvaluationBase ()
 
unsigned int get_mapping_data_index_offset () const
 
internal::MatrixFreeFunctions::GeometryType get_cell_type () const
 
const internal::MatrixFreeFunctions::ShapeInfo< VectorizedArray< Number > > & get_shape_info () const
 
void read_dof_values (const VectorType &src, const unsigned int first_index=0)
 
void read_dof_values_plain (const VectorType &src, const unsigned int first_index=0)
 
void distribute_local_to_global (VectorType &dst, const unsigned int first_index=0, const std::bitset< VectorizedArray< Number > ::size()> &mask=std::bitset< VectorizedArray< Number > ::size()>().flip()) const
 
void set_dof_values (VectorType &dst, const unsigned int first_index=0, const std::bitset< VectorizedArray< Number > ::size()> &mask=std::bitset< VectorizedArray< Number > ::size()>().flip()) const
 
value_type get_dof_value (const unsigned int dof) const
 
void submit_dof_value (const value_type val_in, const unsigned int dof)
 
value_type get_value (const unsigned int q_point) const
 
void submit_value (const value_type val_in, const unsigned int q_point)
 
gradient_type get_gradient (const unsigned int q_point) const
 
value_type get_normal_derivative (const unsigned int q_point) const
 
void submit_gradient (const gradient_type grad_in, const unsigned int q_point)
 
void submit_normal_derivative (const value_type grad_in, const unsigned int q_point)
 
Tensor< 1, n_components_, Tensor< 2, dim, VectorizedArray< Number > > > get_hessian (const unsigned int q_point) const
 
gradient_type get_hessian_diagonal (const unsigned int q_point) const
 
value_type get_laplacian (const unsigned int q_point) const
 
VectorizedArray< Number > get_divergence (const unsigned int q_point) const
 
SymmetricTensor< 2, dim, VectorizedArray< Number > > get_symmetric_gradient (const unsigned int q_point) const
 
Tensor< 1,(dim==2 ? 1 :dim), VectorizedArray< Number > > get_curl (const unsigned int q_point) const
 
void submit_divergence (const VectorizedArray< Number > div_in, const unsigned int q_point)
 
void submit_symmetric_gradient (const SymmetricTensor< 2, dim, VectorizedArray< Number > > grad_in, const unsigned int q_point)
 
void submit_curl (const Tensor< 1, dim==2 ? 1 :dim, VectorizedArray< Number > > curl_in, const unsigned int q_point)
 
value_type integrate_value () const
 
VectorizedArray< Number > JxW (const unsigned int q_index) const
 
void fill_JxW_values (AlignedVector< VectorizedArray< Number > > &JxW_values) const
 
Tensor< 2, dim, VectorizedArray< Number > > inverse_jacobian (const unsigned int q_index) const
 
Tensor< 1, dim, VectorizedArray< Number > > get_normal_vector (const unsigned int q_point) const
 
VectorizedArray< Number > read_cell_data (const AlignedVector< VectorizedArray< Number > > &array) const
 
std::array< T, VectorizedArray< Number > ::size()> read_cell_data (const AlignedVector< std::array< T, VectorizedArray< Number > ::size()>> &array) const
 
std::array< unsigned int, VectorizedArray< Number > ::size()> get_cell_ids () const
 
const VectorizedArray< Number > * begin_dof_values () const
 
VectorizedArray< Number > * begin_dof_values ()
 
const VectorizedArray< Number > * begin_values () const
 
VectorizedArray< Number > * begin_values ()
 
const VectorizedArray< Number > * begin_gradients () const
 
VectorizedArray< Number > * begin_gradients ()
 
const VectorizedArray< Number > * begin_hessians () const
 
VectorizedArray< Number > * begin_hessians ()
 
const std::vector< unsigned int > & get_internal_dof_numbering () const
 
ArrayView< VectorizedArray< Number > > get_scratch_data () const
 
- Protected Attributes inherited from FEEvaluationBase< dim, n_components_, Number, is_face, VectorizedArray< Number > >
AlignedVector< VectorizedArray< Number > > * scratch_data_array
 
VectorizedArray< Number > * scratch_data
 
VectorizedArray< Number > * values_dofs [n_components]
 
VectorizedArray< Number > * values_quad [n_components]
 
VectorizedArray< Number > * gradients_quad [n_components][dim]
 
VectorizedArray< Number > * hessians_quad [n_components][(dim *(dim+1))/2]
 
const unsigned int quad_no
 
const unsigned int n_fe_components
 
const unsigned int active_fe_index
 
const unsigned int active_quad_index
 
const unsigned int n_quadrature_points
 
const MatrixFree< dim, Number, VectorizedArray< Number > > * matrix_info
 
const internal::MatrixFreeFunctions::DoFInfodof_info
 
const internal::MatrixFreeFunctions::MappingInfoStorage<(is_face ? dim - 1 :dim), dim, Number, VectorizedArray< Number > > * mapping_data
 
const internal::MatrixFreeFunctions::ShapeInfo< VectorizedArray< Number > > * data
 
const Tensor< 2, dim, VectorizedArray< Number > > * jacobian
 
const VectorizedArray< Number > * J_value
 
const Tensor< 1, dim, VectorizedArray< Number > > * normal_vectors
 
const Tensor< 1, dim, VectorizedArray< Number > > * normal_x_jacobian
 
const Number * quadrature_weights
 
unsigned int cell
 
bool is_interior_face
 
internal::MatrixFreeFunctions::DoFInfo::DoFAccessIndex dof_access_index
 
unsigned int face_no
 
unsigned int face_orientation
 
unsigned int subface_index
 
internal::MatrixFreeFunctions::GeometryType cell_type
 
bool dof_values_initialized
 
bool values_quad_initialized
 
bool gradients_quad_initialized
 
bool hessians_quad_initialized
 
bool values_quad_submitted
 
bool gradients_quad_submitted
 
std::shared_ptr< internal::MatrixFreeFunctions::MappingDataOnTheFly< dim, Number, VectorizedArray< Number > > > mapped_geometry
 
const unsigned int first_selected_component
 
std::vector< types::global_dof_indexlocal_dof_indices
 

Detailed Description

template<int dim, int n_components_, typename Number, bool is_face, typename VectorizedArrayType = VectorizedArray<Number>>
class FEEvaluationAccess< dim, n_components_, Number, is_face, VectorizedArrayType >

This class provides access to the data fields of the FEEvaluation classes. Generic access is achieved through the base class, and specializations for scalar and vector-valued elements are defined separately.

Author
Katharina Kormann and Martin Kronbichler, 2010, 2011

Definition at line 1187 of file fe_evaluation.h.

Member Typedef Documentation

◆ number_type

template<int dim, int n_components_, typename Number , bool is_face, typename VectorizedArrayType = VectorizedArray<Number>>
using FEEvaluationAccess< dim, n_components_, Number, is_face, VectorizedArrayType >::number_type = Number

Definition at line 1198 of file fe_evaluation.h.

◆ value_type

template<int dim, int n_components_, typename Number , bool is_face, typename VectorizedArrayType = VectorizedArray<Number>>
using FEEvaluationAccess< dim, n_components_, Number, is_face, VectorizedArrayType >::value_type = Tensor<1, n_components_, VectorizedArrayType>

Definition at line 1199 of file fe_evaluation.h.

◆ gradient_type

template<int dim, int n_components_, typename Number , bool is_face, typename VectorizedArrayType = VectorizedArray<Number>>
using FEEvaluationAccess< dim, n_components_, Number, is_face, VectorizedArrayType >::gradient_type = Tensor<1, n_components_, Tensor<1, dim, VectorizedArrayType> >

Definition at line 1201 of file fe_evaluation.h.

◆ BaseClass

template<int dim, int n_components_, typename Number , bool is_face, typename VectorizedArrayType = VectorizedArray<Number>>
using FEEvaluationAccess< dim, n_components_, Number, is_face, VectorizedArrayType >::BaseClass = FEEvaluationBase<dim, n_components_, Number, is_face, VectorizedArrayType>

Definition at line 1205 of file fe_evaluation.h.

Constructor & Destructor Documentation

◆ FEEvaluationAccess() [1/3]

template<int dim, int n_components_, typename Number , bool is_face, typename VectorizedArrayType = VectorizedArray<Number>>
FEEvaluationAccess< dim, n_components_, Number, is_face, VectorizedArrayType >::FEEvaluationAccess ( const MatrixFree< dim, Number, VectorizedArrayType > &  matrix_free,
const unsigned int  dof_no,
const unsigned int  first_selected_component,
const unsigned int  quad_no,
const unsigned int  fe_degree,
const unsigned int  n_q_points,
const bool  is_interior_face = true 
)
protected

Constructor. Made protected to prevent initialization in user code. Takes all data stored in MatrixFree. If applied to problems with more than one finite element or more than one quadrature formula selected during construction of matrix_free, first_selected_component and quad_no allow to select the appropriate components.

◆ FEEvaluationAccess() [2/3]

template<int dim, int n_components_, typename Number , bool is_face, typename VectorizedArrayType = VectorizedArray<Number>>
template<int n_components_other>
FEEvaluationAccess< dim, n_components_, Number, is_face, VectorizedArrayType >::FEEvaluationAccess ( const Mapping< dim > &  mapping,
const FiniteElement< dim > &  fe,
const Quadrature< 1 > &  quadrature,
const UpdateFlags  update_flags,
const unsigned int  first_selected_component,
const FEEvaluationBase< dim, n_components_other, Number, is_face, VectorizedArrayType > *  other 
)
protected

Constructor with reduced functionality for similar usage of FEEvaluation as FEValues, including matrix assembly.

◆ FEEvaluationAccess() [3/3]

template<int dim, int n_components_, typename Number , bool is_face, typename VectorizedArrayType = VectorizedArray<Number>>
FEEvaluationAccess< dim, n_components_, Number, is_face, VectorizedArrayType >::FEEvaluationAccess ( const FEEvaluationAccess< dim, n_components_, Number, is_face, VectorizedArrayType > &  other)
protected

Copy constructor

Member Function Documentation

◆ operator=()

template<int dim, int n_components_, typename Number , bool is_face, typename VectorizedArrayType = VectorizedArray<Number>>
FEEvaluationAccess& FEEvaluationAccess< dim, n_components_, Number, is_face, VectorizedArrayType >::operator= ( const FEEvaluationAccess< dim, n_components_, Number, is_face, VectorizedArrayType > &  other)
protected

Copy assignment operator

Member Data Documentation

◆ dimension

template<int dim, int n_components_, typename Number , bool is_face, typename VectorizedArrayType = VectorizedArray<Number>>
constexpr unsigned int FEEvaluationAccess< dim, n_components_, Number, is_face, VectorizedArrayType >::dimension = dim
staticconstexpr

Definition at line 1202 of file fe_evaluation.h.

◆ n_components

template<int dim, int n_components_, typename Number , bool is_face, typename VectorizedArrayType = VectorizedArray<Number>>
constexpr unsigned int FEEvaluationAccess< dim, n_components_, Number, is_face, VectorizedArrayType >::n_components = n_components_
staticconstexpr

Definition at line 1203 of file fe_evaluation.h.


The documentation for this class was generated from the following file: