Reference documentation for deal.II version 9.2.0
|
#include <deal.II/fe/mapping_manifold.h>
Classes | |
class | InternalData |
Public Member Functions | |
MappingQ (const unsigned int polynomial_degree, const bool use_mapping_q_on_all_cells=false) | |
MappingQ (const MappingQ< dim, spacedim > &mapping) | |
unsigned int | get_degree () const |
virtual bool | preserves_vertex_locations () const override |
virtual Point< spacedim > | transform_unit_to_real_cell (const typename Triangulation< dim, spacedim >::cell_iterator &cell, const Point< dim > &p) const override |
virtual Point< dim > | transform_real_to_unit_cell (const typename Triangulation< dim, spacedim >::cell_iterator &cell, const Point< spacedim > &p) const override |
virtual void | transform (const ArrayView< const Tensor< 1, dim >> &input, const MappingKind kind, const typename Mapping< dim, spacedim >::InternalDataBase &internal, const ArrayView< Tensor< 1, spacedim >> &output) const override |
virtual void | transform (const ArrayView< const DerivativeForm< 1, dim, spacedim >> &input, const MappingKind kind, const typename Mapping< dim, spacedim >::InternalDataBase &internal, const ArrayView< Tensor< 2, spacedim >> &output) const override |
virtual void | transform (const ArrayView< const Tensor< 2, dim >> &input, const MappingKind kind, const typename Mapping< dim, spacedim >::InternalDataBase &internal, const ArrayView< Tensor< 2, spacedim >> &output) const override |
virtual void | transform (const ArrayView< const DerivativeForm< 2, dim, spacedim >> &input, const MappingKind kind, const typename Mapping< dim, spacedim >::InternalDataBase &internal, const ArrayView< Tensor< 3, spacedim >> &output) const override |
virtual void | transform (const ArrayView< const Tensor< 3, dim >> &input, const MappingKind kind, const typename Mapping< dim, spacedim >::InternalDataBase &internal, const ArrayView< Tensor< 3, spacedim >> &output) const override |
virtual std::unique_ptr< Mapping< dim, spacedim > > | clone () const override |
Protected Member Functions | |
Interface with FEValues | |
virtual UpdateFlags | requires_update_flags (const UpdateFlags update_flags) const override |
virtual std::unique_ptr< typename Mapping< dim, spacedim >::InternalDataBase > | get_data (const UpdateFlags, const Quadrature< dim > &quadrature) const override |
virtual std::unique_ptr< typename Mapping< dim, spacedim >::InternalDataBase > | get_face_data (const UpdateFlags flags, const Quadrature< dim - 1 > &quadrature) const override |
virtual std::unique_ptr< typename Mapping< dim, spacedim >::InternalDataBase > | get_subface_data (const UpdateFlags flags, const Quadrature< dim - 1 > &quadrature) const override |
virtual CellSimilarity::Similarity | fill_fe_values (const typename Triangulation< dim, spacedim >::cell_iterator &cell, const CellSimilarity::Similarity cell_similarity, const Quadrature< dim > &quadrature, const typename Mapping< dim, spacedim >::InternalDataBase &internal_data, internal::FEValuesImplementation::MappingRelatedData< dim, spacedim > &output_data) const override |
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 typename Mapping< dim, spacedim >::InternalDataBase &internal_data, internal::FEValuesImplementation::MappingRelatedData< dim, spacedim > &output_data) const override |
virtual void | fill_fe_subface_values (const typename Triangulation< dim, spacedim >::cell_iterator &cell, const unsigned int face_no, const unsigned int subface_no, const Quadrature< dim - 1 > &quadrature, const typename Mapping< dim, spacedim >::InternalDataBase &internal_data, internal::FEValuesImplementation::MappingRelatedData< dim, spacedim > &output_data) const override |
Protected Attributes | |
const unsigned int | polynomial_degree |
const bool | use_mapping_q_on_all_cells |
std::shared_ptr< const MappingQGeneric< dim, spacedim > > | q1_mapping |
std::shared_ptr< const MappingQGeneric< dim, spacedim > > | qp_mapping |
A class that implements a polynomial mapping \(Q_p\) of degree \(p\) on cells at the boundary of the domain (or, if requested in the constructor, for all cells) and linear mappings for interior cells.
The class is in fact poorly named since (unless explicitly specified during the construction of the object, see below), it does not actually use mappings of degree \(p\) everywhere, but only on cells at the boundary. This is in contrast to the MappingQGeneric class which indeed does use a polynomial mapping \(Q_p\) of degree \(p\) everywhere. The point of the current class is that in many situations, curved domains are only provided with information about how exactly edges at the boundary are shaped, but we do not know anything about internal edges. Thus, in the absence of other information, we can only assume that internal edges are straight lines, and in that case internal cells may as well be treated is bilinear quadrilaterals or trilinear hexahedra. (An example of how such meshes look is shown in step-1 already, but it is also discussed in the "Results" section of step-6.) Because bi-/trilinear mappings are significantly cheaper to compute than higher order mappings, it is advantageous in such situations to use the higher order mapping only on cells at the boundary of the domain. This class implements exactly this behavior.
There are a number of special cases worth considering:
For the behavior of the mapping and convergence rates in case of mixing different manifolds, please consult the respective section of MappingQGeneric.
Definition at line 33 of file mapping_manifold.h.
MappingQ< dim, spacedim >::MappingQ | ( | const unsigned int | polynomial_degree, |
const bool | use_mapping_q_on_all_cells = false |
||
) |
Constructor. polynomial_degree
denotes the polynomial degree of the polynomials that are used to map cells boundary.
The second argument determines whether the higher order mapping should also be used on interior cells. If its value is false
(the default), then a lower order mapping is used in the interior. This is sufficient for most cases where higher order mappings are only used to better approximate the boundary. In that case, cells bounded by straight lines are acceptable in the interior. However, there are cases where one would also like to use a higher order mapping in the interior. The MappingQEulerian class is one such case.
The value of use_mapping_q_on_all_cells
is ignored if dim
is not equal to spacedim
, i.e., if we are considering meshes on surfaces embedded into higher dimensional spaces.
Definition at line 62 of file mapping_q.cc.
MappingQ< dim, spacedim >::MappingQ | ( | const MappingQ< dim, spacedim > & | mapping | ) |
Copy constructor.
Definition at line 90 of file mapping_q.cc.
Return the degree of the mapping, i.e. the value which was passed to the constructor.
Definition at line 123 of file mapping_q.cc.
|
inlineoverridevirtual |
Always returns true
because the default implementation of functions in this class preserves vertex locations.
Definition at line 132 of file mapping_q.cc.
|
overridevirtual |
Transform the point p
on the unit cell to the point p_real
on the real cell cell
and returns p_real
.
Definition at line 504 of file mapping_q.cc.
|
overridevirtual |
Transform the point p
on the real cell to the point p_unit
on the unit cell cell
and returns p_unit
.
Uses Newton iteration and the transform_unit_to_real_cell
function.
In the codimension one case, this function returns the normal projection of the real point p
on the curve or surface identified by the cell
.
p
. If this is the case then this function throws an exception of type Mapping::ExcTransformationFailed . Whether the given point p
lies outside the cell can therefore be determined by checking whether the return reference coordinates lie inside of outside the reference cell (e.g., using GeometryInfo::is_inside_unit_cell) or whether the exception mentioned above has been thrown. Definition at line 521 of file mapping_q.cc.
|
overridevirtual |
Definition at line 385 of file mapping_q.cc.
|
overridevirtual |
Definition at line 408 of file mapping_q.cc.
|
overridevirtual |
Definition at line 432 of file mapping_q.cc.
|
overridevirtual |
Definition at line 456 of file mapping_q.cc.
|
overridevirtual |
Definition at line 480 of file mapping_q.cc.
|
overridevirtual |
Return a pointer to a copy of the present object. The caller of this copy then assumes ownership of it.
Definition at line 536 of file mapping_q.cc.
|
overrideprotectedvirtual |
Definition at line 141 of file mapping_q.cc.
|
overrideprotectedvirtual |
Definition at line 151 of file mapping_q.cc.
|
overrideprotectedvirtual |
Definition at line 182 of file mapping_q.cc.
|
overrideprotectedvirtual |
Definition at line 215 of file mapping_q.cc.
|
overrideprotectedvirtual |
Reimplemented in MappingQEulerian< dim, VectorType, spacedim >.
Definition at line 249 of file mapping_q.cc.
|
overrideprotectedvirtual |
Definition at line 303 of file mapping_q.cc.
|
overrideprotectedvirtual |
Definition at line 339 of file mapping_q.cc.
|
protected |
The polynomial degree of the cells to be used on all cells at the boundary of the domain, or everywhere if so specified.
Definition at line 327 of file mapping_q.h.
|
protected |
If this flag is set true
then MappingQ
is used on all cells, not only on boundary cells.
Definition at line 333 of file mapping_q.h.
|
protected |
Pointer to a Q1 mapping. This mapping is used on interior cells unless use_mapping_q_on_all_cells was set in the call to the constructor. The mapping is also used on any cell in the transform_real_to_unit_cell() to compute a cheap initial guess for the position of the point before we employ the more expensive Newton iteration using the full mapping.
Definition at line 352 of file mapping_q.h.
|
protected |
Pointer to a Q_p mapping. This mapping is used on boundary cells unless use_mapping_q_on_all_cells was set in the call to the constructor (in which case it is used for all cells).
Definition at line 368 of file mapping_q.h.