Reference documentation for deal.II version 9.3.3
\(\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_q_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
17#ifndef dealii_mapping_q_eulerian_h
18#define dealii_mapping_q_eulerian_h
19
20#include <deal.II/base/config.h>
21
24
27
30
32
33
35
36template <typename>
37class Vector;
38
39
42
92template <int dim, typename VectorType = Vector<double>, int spacedim = dim>
93class MappingQEulerian : public MappingQ<dim, spacedim>
94{
95public:
112 MappingQEulerian(const unsigned int degree,
114 const VectorType & euler_vector,
115 const unsigned int level = numbers::invalid_unsigned_int);
116
123 virtual boost::container::small_vector<Point<spacedim>,
126 const override;
127
132 virtual std::unique_ptr<Mapping<dim, spacedim>>
133 clone() const override;
134
140 virtual bool
142
143 // for documentation, see the Mapping base class
146 &cell) const override;
147
153
154protected:
166 const CellSimilarity::Similarity cell_similarity,
167 const Quadrature<dim> & quadrature,
168 const typename Mapping<dim, spacedim>::InternalDataBase & internal_data,
170 &output_data) const override;
171
177
184
185
186private:
190 const unsigned int level;
191
197 class MappingQEulerianGeneric : public MappingQGeneric<dim, spacedim>
198 {
199 public:
204 const unsigned int degree,
206
213 virtual boost::container::small_vector<Point<spacedim>,
216 &cell) const override;
217
223 virtual std::vector<Point<spacedim>>
226 const override;
227
233 virtual bool
235
236 private:
241
242
247 class SupportQuadrature : public Quadrature<dim>
248 {
249 public:
253 SupportQuadrature(const unsigned int map_degree);
254 };
255
260
270
275 };
276};
277
281/*----------------------------------------------------------------------*/
282
283#ifndef DOXYGEN
284
285template <int dim, typename VectorType, int spacedim>
286inline bool
288{
289 return false;
290}
291
292#endif // DOXYGEN
293
294
296
297
298#endif // dealii_mapping_q_eulerian_h
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 bool preserves_vertex_locations() const override
MappingQEulerianGeneric(const unsigned int degree, const MappingQEulerian< dim, VectorType, spacedim > &mapping_q_eulerian)
virtual std::vector< Point< spacedim > > compute_mapping_support_points(const typename Triangulation< dim, spacedim >::cell_iterator &cell) const override
const MappingQEulerian< dim, VectorType, spacedim > & mapping_q_eulerian
SmartPointer< const DoFHandler< dim, spacedim >, MappingQEulerian< dim, VectorType, spacedim > > euler_dof_handler
virtual BoundingBox< spacedim > get_bounding_box(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)
virtual bool preserves_vertex_locations() const override
SmartPointer< const VectorType, MappingQEulerian< dim, VectorType, spacedim > > euler_vector
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
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
const unsigned int level
Abstract base class for mapping classes.
Definition: mapping.h:304
Definition: vector.h:110
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:402
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:403
#define DeclException0(Exception0)
Definition: exceptions.h:470
static ::ExceptionBase & ExcInactiveCell()
static const unsigned int invalid_unsigned_int
Definition: types.h:196