Reference documentation for deal.II version 9.1.1
|
#include <deal.II/fe/mapping_manifold.h>
Public Member Functions | |
InternalData ()=default | |
void | initialize (const UpdateFlags update_flags, const Quadrature< dim > &quadrature, const unsigned int n_original_q_points) |
void | initialize_face (const UpdateFlags update_flags, const Quadrature< dim > &quadrature, const unsigned int n_original_q_points) |
void | compute_manifold_quadrature_weights (const Quadrature< dim > &quadrature) |
void | store_vertices (const typename Triangulation< dim, spacedim >::cell_iterator &cell) const |
virtual std::size_t | memory_consumption () const override |
Public Member Functions inherited from Mapping< dim, spacedim >::InternalDataBase | |
InternalDataBase () | |
InternalDataBase (const InternalDataBase &)=delete | |
virtual | ~InternalDataBase ()=default |
Public Attributes | |
std::vector< Point< spacedim > > | vertices |
Triangulation< dim, spacedim >::cell_iterator | cell |
Quadrature< dim > | quad |
std::vector< std::vector< double > > | cell_manifold_quadrature_weights |
std::vector< double > | vertex_weights |
std::array< std::vector< Tensor< 1, dim > >, GeometryInfo< dim >::faces_per_cell *(dim - 1)> | unit_tangentials |
std::vector< DerivativeForm< 1, dim, spacedim > > | covariant |
std::vector< DerivativeForm< 1, dim, spacedim > > | contravariant |
std::vector< std::vector< Tensor< 1, spacedim > > > | aux |
std::vector< double > | volume_elements |
SmartPointer< const Manifold< dim, spacedim > > | manifold |
Public Attributes inherited from Mapping< dim, spacedim >::InternalDataBase | |
UpdateFlags | update_each |
Storage for internal data of polynomial mappings. See Mapping::InternalDataBase for an extensive description.
For the current class, the InternalData class stores data that is computed once when the object is created (in get_data()) as well as data the class wants to store from between the call to fill_fe_values(), fill_fe_face_values(), or fill_fe_subface_values() until possible later calls from the finite element to functions such as transform(). The latter class of member variables are marked as 'mutable'.
Definition at line 166 of file mapping_manifold.h.
|
default |
Constructor.
void MappingManifold< dim, spacedim >::InternalData::initialize | ( | const UpdateFlags | update_flags, |
const Quadrature< dim > & | quadrature, | ||
const unsigned int | n_original_q_points | ||
) |
Initialize the object's member variables related to cell data based on the given arguments.
The function also calls compute_shape_function_values() to actually set the member variables related to the values and derivatives of the mapping shape functions.
Definition at line 71 of file mapping_manifold.cc.
void MappingManifold< dim, spacedim >::InternalData::initialize_face | ( | const UpdateFlags | update_flags, |
const Quadrature< dim > & | quadrature, | ||
const unsigned int | n_original_q_points | ||
) |
Initialize the object's member variables related to cell and face data based on the given arguments. In order to initialize cell data, this function calls initialize().
Definition at line 105 of file mapping_manifold.cc.
void MappingManifold< dim, spacedim >::InternalData::compute_manifold_quadrature_weights | ( | const Quadrature< dim > & | quadrature | ) |
Compute the weights associated to the Manifold object, that need to be passed when computing the location of the quadrature points.
void MappingManifold< dim, spacedim >::InternalData::store_vertices | ( | const typename Triangulation< dim, spacedim >::cell_iterator & | cell | ) | const |
Store vertices internally.
|
overridevirtual |
Return an estimate (in bytes) or the memory consumption of this object.
Reimplemented from Mapping< dim, spacedim >::InternalDataBase.
Definition at line 51 of file mapping_manifold.cc.
|
mutable |
|
mutable |
Quadrature<dim> MappingManifold< dim, spacedim >::InternalData::quad |
The actual quadrature on the reference cell.
Computed once.
Definition at line 238 of file mapping_manifold.h.
std::vector<std::vector<double> > MappingManifold< dim, spacedim >::InternalData::cell_manifold_quadrature_weights |
Values of quadrature weights for manifold quadrature formulas.
The Manifold class has a function (Manifold::get_new_point()) that returns new points according to a weighted average of some surrounding points on the Manifold. For each quadrature point, we call this function with a Quadrature formula constructed using the vertices of the current cell, and the values of the basis functions of an FE_Q(1) finite element evaluated at the quadrature point itself. While the vertices of the cell change for every cell, the weights can be computed once for each quadrature point. We store this information in the following variable, where the first index runs through the quadrature points, and the second index runs through the vertex indices.
Computed once.
Definition at line 259 of file mapping_manifold.h.
|
mutable |
A vector of weights for use in Manifold::get_new_point(). For each point (interior to a cell), we compute the weight each vertex has for this point. If the point lies at a vertex, then this vertex has weight one and all others have weight zero. If the point lies interior to a cell, then the weight every vertex has is just the \(d\)-linear shape functions associated with each vertex evaluated at that point.
This array has size GeometryInfo<dim>::vertices_per_cell, but it can't be converted into a fixed size array because it is used as input for Manifold::get_new_point() which wants to see a std::vector<double> for the weights.
Definition at line 276 of file mapping_manifold.h.
std::array<std::vector<Tensor<1, dim> >, GeometryInfo<dim>::faces_per_cell *(dim - 1)> MappingManifold< dim, spacedim >::InternalData::unit_tangentials |
Unit tangential vectors. Used for the computation of boundary forms and normal vectors.
This array has (dim-1)*GeometryInfo::faces_per_cell entries. The first GeometryInfo::faces_per_cell contain the vectors in the first tangential direction for each face; the second set of GeometryInfo::faces_per_cell entries contain the vectors in the second tangential direction (only in 3d, since there we have 2 tangential directions per face), etc.
Filled once.
Definition at line 293 of file mapping_manifold.h.
|
mutable |
Tensors of covariant transformation at each of the quadrature points. The matrix stored is the Jacobian * G^{-1}, where G = Jacobian^{t} * Jacobian, is the first fundamental form of the map; if dim=spacedim then it reduces to the transpose of the inverse of the Jacobian matrix, which itself is stored in the contravariant
field of this structure.
Computed on each cell.
Definition at line 304 of file mapping_manifold.h.
|
mutable |
Tensors of contravariant transformation at each of the quadrature points. The contravariant matrix is the Jacobian of the transformation, i.e. \(J_{ij}=dx_i/d\hat x_j\).
Computed on each cell.
Definition at line 313 of file mapping_manifold.h.
|
mutable |
Auxiliary vectors for internal use.
Definition at line 318 of file mapping_manifold.h.
|
mutable |
The determinant of the Jacobian in each quadrature point. Filled if update_volume_elements.
Definition at line 324 of file mapping_manifold.h.
|
mutable |