Reference documentation for deal.II version GIT 00e6fe71c9 2023-06-04 19:35:01+00:00
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
mapping_q1_eulerian.h
Go to the documentation of this file.
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2001 - 2021 by the deal.II authors
4 //
5 // This file is part of the deal.II library.
6 //
7 // The deal.II library is free software; you can use it, redistribute
8 // it, and/or modify it under the terms of the GNU Lesser General
9 // Public License as published by the Free Software Foundation; either
10 // version 2.1 of the License, or (at your option) any later version.
11 // The full text of the license can be found in the file LICENSE.md at
12 // the top level directory of deal.II.
13 //
14 // ---------------------------------------------------------------------
15 
16 #ifndef dealii_mapping_q1_eulerian_h
17 #define dealii_mapping_q1_eulerian_h
18 
19 #include <deal.II/base/config.h>
20 
22 
24 
25 #include <deal.II/fe/mapping_q.h>
26 
27 #include <array>
28 
30 
31 template <typename>
32 class Vector;
33 
34 
94 template <int dim, typename VectorType = Vector<double>, int spacedim = dim>
95 class MappingQ1Eulerian : public MappingQ<dim, spacedim>
96 {
97 public:
112  MappingQ1Eulerian(const DoFHandler<dim, spacedim> &euler_dof_handler,
113  const VectorType & euler_vector);
114 
121  virtual boost::container::small_vector<Point<spacedim>,
124  const override;
125 
130  virtual std::unique_ptr<Mapping<dim, spacedim>>
131  clone() const override;
132 
138  virtual bool
139  preserves_vertex_locations() const override;
140 
145 
146 
147 
148 protected:
159  const typename Triangulation<dim, spacedim>::cell_iterator &cell,
160  const CellSimilarity::Similarity cell_similarity,
161  const Quadrature<dim> & quadrature,
162  const typename Mapping<dim, spacedim>::InternalDataBase & internal_data,
164  &output_data) const override;
165 
172  virtual std::vector<Point<spacedim>>
174  const typename Triangulation<dim, spacedim>::cell_iterator &cell)
175  const override;
176 
182 
189 };
190 
193 /*----------------------------------------------------------------------*/
194 
195 #ifndef DOXYGEN
196 
197 template <int dim, typename VectorType, int spacedim>
198 inline bool
200 {
201  return false;
202 }
203 
204 #endif // DOXYGEN
205 
207 
208 #endif
virtual bool preserves_vertex_locations() 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
virtual std::vector< Point< spacedim > > compute_mapping_support_points(const typename Triangulation< dim, spacedim >::cell_iterator &cell) const override
SmartPointer< const DoFHandler< dim, spacedim >, MappingQ1Eulerian< dim, VectorType, spacedim > > shiftmap_dof_handler
virtual std::unique_ptr< Mapping< dim, spacedim > > clone() const override
SmartPointer< const VectorType, MappingQ1Eulerian< dim, VectorType, spacedim > > euler_transform_vectors
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)
Abstract base class for mapping classes.
Definition: mapping.h:317
Definition: vector.h:109
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:474
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:475
#define DeclException0(Exception0)
Definition: exceptions.h:465
static ::ExceptionBase & ExcInactiveCell()