41template <
int dim,
class VectorType,
int spacedim>
44 const VectorType & euler_transform_vectors)
46 , euler_transform_vectors(&euler_transform_vectors)
47 , shiftmap_dof_handler(&shiftmap_dof_handler)
52template <
int dim,
class VectorType,
int spacedim>
53boost::container::small_vector<Point<spacedim>,
58 boost::container::small_vector<Point<spacedim>,
66 AssertDimension(spacedim, shiftmap_dof_handler->get_fe().n_dofs_per_vertex());
67 AssertDimension(shiftmap_dof_handler->get_fe(0).n_components(), spacedim);
70 euler_transform_vectors->size());
76 *cell, shiftmap_dof_handler);
80 Assert(dof_cell->is_active() ==
true, ExcInactiveCell());
84 shiftmap_dof_handler->get_fe().n_dofs_per_cell());
85 dof_cell->get_dof_values(*euler_transform_vectors, mapping_values);
94 for (
unsigned int j = 0; j < spacedim; ++j)
95 shift_vector[j] = mapping_values(i * spacedim + j);
99 vertices[i] = cell->vertex(i) + shift_vector;
106template <
int dim,
class VectorType,
int spacedim>
107std::vector<Point<spacedim>>
111 const auto vertices = this->get_vertices(cell);
122template <
int dim,
class VectorType,
int spacedim>
123std::unique_ptr<Mapping<dim, spacedim>>
126 return std::make_unique<MappingQ1Eulerian<dim, VectorType, spacedim>>(*this);
131template <
int dim,
class VectorType,
int spacedim>
158#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()