Reference documentation for deal.II version 9.5.0
\(\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\}}\)
Loading...
Searching...
No Matches
mapping_q_eulerian.h
Go to the documentation of this file.
1// ---------------------------------------------------------------------
2//
3// Copyright (C) 2001 - 2022 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
22#include <deal.II/base/mutex.h>
24
27
30
32
33
35
36template <typename>
37class Vector;
38
39
94template <int dim, typename VectorType = Vector<double>, int spacedim = dim>
95class MappingQEulerian : public MappingQ<dim, spacedim>
96{
97public:
114 MappingQEulerian(const unsigned int degree,
116 const VectorType & euler_vector,
117 const unsigned int level = numbers::invalid_unsigned_int);
118
125 virtual boost::container::small_vector<Point<spacedim>,
128 const override;
129
134 virtual std::unique_ptr<Mapping<dim, spacedim>>
135 clone() const override;
136
142 virtual bool
144
145 // for documentation, see the Mapping base class
146 virtual std::vector<Point<spacedim>>
149 const override;
150
156
157protected:
169 const CellSimilarity::Similarity cell_similarity,
170 const Quadrature<dim> & quadrature,
171 const typename Mapping<dim, spacedim>::InternalDataBase & internal_data,
173 &output_data) const override;
174
180
187
188private:
192 const unsigned int level;
193
198 class SupportQuadrature : public Quadrature<dim>
199 {
200 public:
204 SupportQuadrature(const unsigned int map_degree);
205 };
206
211
221
226};
227
231/*----------------------------------------------------------------------*/
232
233#ifndef DOXYGEN
234
235template <int dim, typename VectorType, int spacedim>
236inline bool
238{
239 return false;
240}
241
242#endif // DOXYGEN
243
244
246
247
248#endif // dealii_mapping_q_eulerian_h
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
virtual bool preserves_vertex_locations() const override
SmartPointer< const VectorType, MappingQEulerian< dim, VectorType, spacedim > > euler_vector
Threads::Mutex fe_values_mutex
const SupportQuadrature support_quadrature
const unsigned int level
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:472
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:473
#define DeclException0(Exception0)
Definition exceptions.h:465
static ::ExceptionBase & ExcInactiveCell()
static const unsigned int invalid_unsigned_int
Definition types.h:213