39template <
int dim,
typename VectorType,
int spacedim>
42 const VectorType &euler_transform_vectors)
44 , euler_transform_vectors(&euler_transform_vectors)
45 , shiftmap_dof_handler(&shiftmap_dof_handler)
50template <
int dim,
typename VectorType,
int spacedim>
51boost::container::small_vector<Point<spacedim>,
56 boost::container::small_vector<Point<spacedim>,
64 AssertDimension(spacedim, shiftmap_dof_handler->get_fe().n_dofs_per_vertex());
65 AssertDimension(shiftmap_dof_handler->get_fe(0).n_components(), spacedim);
68 euler_transform_vectors->size());
74 *cell, shiftmap_dof_handler);
78 Assert(dof_cell->is_active() ==
true, ExcInactiveCell());
82 shiftmap_dof_handler->get_fe().n_dofs_per_cell());
83 dof_cell->get_dof_values(*euler_transform_vectors, mapping_values);
92 for (
unsigned int j = 0; j < spacedim; ++j)
93 shift_vector[j] = mapping_values(i * spacedim + j);
97 vertices[i] = cell->vertex(i) + shift_vector;
104template <
int dim,
typename VectorType,
int spacedim>
105std::vector<Point<spacedim>>
109 const auto vertices = this->get_vertices(cell);
120template <
int dim,
typename VectorType,
int spacedim>
121std::unique_ptr<Mapping<dim, spacedim>>
124 return std::make_unique<MappingQ1Eulerian<dim, VectorType, spacedim>>(*this);
129template <
int dim,
typename VectorType,
int spacedim>
156#include "mapping_q1_eulerian.inst"
virtual boost::container::small_vector< Point< spacedim >, GeometryInfo< dim >::vertices_per_cell > get_vertices(const typename Triangulation< dim, spacedim >::cell_iterator &cell) const override
virtual std::vector< Point< spacedim > > compute_mapping_support_points(const typename Triangulation< dim, spacedim >::cell_iterator &cell) const override
virtual std::unique_ptr< Mapping< dim, spacedim > > clone() 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
MappingQ1Eulerian(const DoFHandler< dim, spacedim > &euler_dof_handler, const VectorType &euler_vector)
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)
typename ActiveSelector::cell_iterator cell_iterator
static std_cxx20::ranges::iota_view< unsigned int, unsigned int > vertex_indices()