48template <
int dim,
class VectorType,
int spacedim>
50 const unsigned int degree,
52 const VectorType & euler_vector,
53 const unsigned int level)
55 , euler_vector(&euler_vector)
56 , euler_dof_handler(&euler_dof_handler)
58 , support_quadrature(degree)
59 , fe_values(euler_dof_handler.get_fe(),
66template <
int dim,
class VectorType,
int spacedim>
67std::unique_ptr<Mapping<dim, spacedim>>
70 return std::make_unique<MappingQEulerian<dim, VectorType, spacedim>>(
71 this->get_degree(), *euler_dof_handler, *euler_vector, this->
level);
78template <
int dim,
class VectorType,
int spacedim>
87 const unsigned int n_q_points = q_iterated.
size();
91 const std::vector<unsigned int> renumber =
92 FETools::lexicographic_to_hierarchic_numbering<dim>(map_degree);
95 for (
unsigned int q = 0; q < n_q_points; ++q)
103template <
int dim,
class VectorType,
int spacedim>
104boost::container::small_vector<Point<spacedim>,
112 boost::container::small_vector<Point<spacedim>,
114 vertex_locations(a.begin(),
117 return vertex_locations;
122template <
int dim,
class VectorType,
int spacedim>
123std::vector<Point<spacedim>>
159 Assert(n_components >= spacedim,
162 std::vector<Vector<typename VectorType::value_type>> shift_vector(
165 std::vector<types::global_dof_index> dof_indices(
174 dof_cell->get_mg_dof_indices(dof_indices);
182 std::vector<Point<spacedim>> a(n_support_pts);
183 for (
unsigned int q = 0; q < n_support_pts; ++q)
186 for (
unsigned int d = 0; d < spacedim; ++d)
187 a[q](d) += shift_vector[q](d);
195template <
int dim,
class VectorType,
int spacedim>
221#include "mapping_q_eulerian.inst"
SupportQuadrature(const unsigned int map_degree)
FEValues< dim, spacedim > fe_values
SmartPointer< const DoFHandler< dim, spacedim >, MappingQEulerian< dim, VectorType, spacedim > > euler_dof_handler
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)
SmartPointer< const VectorType, MappingQEulerian< dim, VectorType, spacedim > > euler_vector
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
std::vector< Point< dim > > quadrature_points
const Point< dim > & point(const unsigned int i) const
unsigned int size() const
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_CLOSE
@ update_values
Shape function values.
@ update_quadrature_points
Transformed quadrature points.
#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
static const unsigned int invalid_unsigned_int