Reference documentation for deal.II version 9.6.0
|
#include <deal.II/differentiation/ad/ad_helpers.h>
Public Types | |
template<typename NumberType > | |
using | tensor_type = Tensor<rank, dim, NumberType> |
template<typename NumberType > | |
using | value_type = tensor_type<NumberType> |
template<typename NumberType > | |
using | gradient_type = Tensor<rank + 1, dim, NumberType> |
Static Public Member Functions | |
static unsigned int | first_component (const FEValuesExtractors::Tensor< 1 > &extractor) |
static bool | symmetric_component (const unsigned int unrolled_index) |
template<int rank_in> | |
static TableIndices< rank > | table_index_view (const TableIndices< rank_in > &table_indices, const unsigned int column_offset) |
template<typename IndexType = unsigned int, int rank_in> | |
static IndexType | local_component (const TableIndices< rank_in > &table_indices, const unsigned int column_offset) |
Static Public Attributes | |
static const unsigned int | n_components |
static const unsigned int | rank = 1 |
A helper struct that assists with the extraction of data associated with fields that are defined by FEExtractors. This particular specialization is for rank-1 tensor fields.
Definition at line 1857 of file ad_helpers.h.
using Differentiation::AD::internal::Extractor< dim, FEValuesExtractors::Tensor< 1 > >::tensor_type = Tensor<rank, dim, NumberType> |
The tensor type associated with this field.
Definition at line 1874 of file ad_helpers.h.
using Differentiation::AD::internal::Extractor< dim, FEValuesExtractors::Tensor< 1 > >::value_type = tensor_type<NumberType> |
The value type associated with this field.
Definition at line 1880 of file ad_helpers.h.
using Differentiation::AD::internal::Extractor< dim, FEValuesExtractors::Tensor< 1 > >::gradient_type = Tensor<rank + 1, dim, NumberType> |
The gradient type associated with this field.
Definition at line 1886 of file ad_helpers.h.
|
inlinestatic |
Return the first global component of this field.
Definition at line 1892 of file ad_helpers.h.
|
inlinestatic |
Return a flag that indicates if the input unrolled_index
corresponds to a symmetric component of the field.
For a vector field, the none of the vector components have a symmetric counterpart.
Definition at line 1905 of file ad_helpers.h.
|
inlinestatic |
Return the table index corresponding to column_offset
entry of the input table_indices
.
Definition at line 1917 of file ad_helpers.h.
|
inlinestatic |
Return the local unrolled component corresponding to a subset of table indices from the input table_indices
.
This function computes and returns a local component associated with the extractor's tensor_type
from a set of table_indices
that are generally associated with a tensor of equal or greater order. In effect, it creates a view of a selected number of indices of the input table, and interprets that subtable's indices as the local index to be returned. Since the table_indices
may be of size greater than the extractor's rank
, the column_offset
specifies the first index of the input table to create the view from.
Definition at line 1941 of file ad_helpers.h.
|
static |
The number of components of the field.
Definition at line 1862 of file ad_helpers.h.
|
static |
The tensor rank of the field.
Definition at line 1868 of file ad_helpers.h.