45template <
int dim,
typename VectorType,
int spacedim>
47 const unsigned int degree,
49 const VectorType &euler_vector,
50 const unsigned int level)
52 , euler_vector(&euler_vector)
53 , euler_dof_handler(&euler_dof_handler)
55 , support_quadrature(degree)
56 , fe_values(euler_dof_handler.get_fe(),
63template <
int dim,
typename VectorType,
int spacedim>
64std::unique_ptr<Mapping<dim, spacedim>>
67 return std::make_unique<MappingQEulerian<dim, VectorType, spacedim>>(
68 this->get_degree(), *euler_dof_handler, *euler_vector, this->
level);
75template <
int dim,
typename VectorType,
int spacedim>
84 const unsigned int n_q_points = q_iterated.size();
88 const std::vector<unsigned int> renumber =
89 FETools::lexicographic_to_hierarchic_numbering<dim>(map_degree);
92 for (
unsigned int q = 0; q < n_q_points; ++q)
93 this->quadrature_points[renumber[q]] = q_iterated.point(q);
100template <
int dim,
typename VectorType,
int spacedim>
101boost::container::small_vector<Point<spacedim>,
109 boost::container::small_vector<Point<spacedim>,
111 vertex_locations(a.begin(),
114 return vertex_locations;
119template <
int dim,
typename VectorType,
int spacedim>
120std::vector<Point<spacedim>>
154 Assert(n_components >= spacedim,
157 std::vector<Vector<typename VectorType::value_type>> shift_vector(
160 std::vector<types::global_dof_index> dof_indices(
169 dof_cell->get_mg_dof_indices(dof_indices);
177 std::vector<Point<spacedim>> a(n_support_pts);
178 for (
unsigned int q = 0; q < n_support_pts; ++q)
181 for (
unsigned int d = 0; d < spacedim; ++d)
182 a[q][d] += shift_vector[q][d];
190template <
int dim,
typename VectorType,
int spacedim>
216#include "mapping_q_eulerian.inst"
SupportQuadrature(const unsigned int map_degree)
FEValues< dim, spacedim > fe_values
virtual std::vector< Point< spacedim > > compute_mapping_support_points(const typename Triangulation< dim, spacedim >::cell_iterator &cell) 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 std::unique_ptr< Mapping< dim, spacedim > > clone() const override
virtual boost::container::small_vector< Point< spacedim >, GeometryInfo< dim >::vertices_per_cell > get_vertices(const typename Triangulation< dim, spacedim >::cell_iterator &cell) const override
MappingQEulerian(const unsigned int degree, const DoFHandler< dim, spacedim > &euler_dof_handler, const VectorType &euler_vector, const unsigned int level=numbers::invalid_unsigned_int)
ObserverPointer< const VectorType, MappingQEulerian< dim, VectorType, spacedim > > euler_vector
ObserverPointer< const DoFHandler< dim, spacedim >, MappingQEulerian< dim, VectorType, spacedim > > euler_dof_handler
Threads::Mutex fe_values_mutex
const SupportQuadrature support_quadrature
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
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_CLOSE
#define Assert(cond, exc)
#define AssertDimension(dim1, dim2)
static ::ExceptionBase & ExcInactiveCell()
static ::ExceptionBase & ExcDimensionMismatch(std::size_t arg1, std::size_t arg2)
typename ActiveSelector::cell_iterator cell_iterator
@ update_values
Shape function values.
@ update_quadrature_points
Transformed quadrature points.
static const unsigned int invalid_unsigned_int