Loading [MathJax]/extensions/TeX/AMSsymbols.js
 deal.II version GIT relicensing-2684-gc61376a70f 2025-02-22 15:30:00+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\}}\)
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
mapping_q_eulerian.h
Go to the documentation of this file.
1// ------------------------------------------------------------------------
2//
3// SPDX-License-Identifier: LGPL-2.1-or-later
4// Copyright (C) 2008 - 2023 by the deal.II authors
5//
6// This file is part of the deal.II library.
7//
8// Part of the source code is dual licensed under Apache-2.0 WITH
9// LLVM-exception OR LGPL-2.1-or-later. Detailed license information
10// governing the source code and code contributions can be found in
11// LICENSE.md and CONTRIBUTING.md at the top level directory of deal.II.
12//
13// ------------------------------------------------------------------------
14
15
16#ifndef dealii_mapping_q_eulerian_h
17#define dealii_mapping_q_eulerian_h
18
19#include <deal.II/base/config.h>
20
21#include <deal.II/base/mutex.h>
23
26
29
31
32#include <boost/container/small_vector.hpp>
33
34
36
37template <typename>
38class Vector;
39
40
95template <int dim, typename VectorType = Vector<double>, int spacedim = dim>
96class MappingQEulerian : public MappingQ<dim, spacedim>
97{
98public:
115 MappingQEulerian(const unsigned int degree,
117 const VectorType &euler_vector,
118 const unsigned int level = numbers::invalid_unsigned_int);
119
126 virtual boost::container::small_vector<Point<spacedim>,
127#ifndef _MSC_VER
128 ReferenceCells::max_n_vertices<dim>()
129#else
131#endif
132 >
134 const override;
135
140 virtual std::unique_ptr<Mapping<dim, spacedim>>
141 clone() const override;
142
148 virtual bool
150
151 // for documentation, see the Mapping base class
152 virtual std::vector<Point<spacedim>>
155 const override;
156
162
163protected:
175 const CellSimilarity::Similarity cell_similarity,
176 const Quadrature<dim> &quadrature,
177 const typename Mapping<dim, spacedim>::InternalDataBase &internal_data,
179 &output_data) const override;
180
186
193
194private:
198 const unsigned int level;
199
204 class SupportQuadrature : public Quadrature<dim>
205 {
206 public:
210 SupportQuadrature(const unsigned int map_degree);
211 };
212
217
227
232};
233
237/*----------------------------------------------------------------------*/
238
239#ifndef DOXYGEN
240
241template <int dim, typename VectorType, int spacedim>
242inline bool
244{
245 return false;
246}
247
248#endif // DOXYGEN
249
250
252
253
254#endif // dealii_mapping_q_eulerian_h
FEValues< dim, spacedim > fe_values
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
ObserverPointer< const VectorType, MappingQEulerian< dim, VectorType, spacedim > > euler_vector
virtual bool preserves_vertex_locations() const override
ObserverPointer< const DoFHandler< dim, spacedim >, MappingQEulerian< dim, VectorType, spacedim > > euler_dof_handler
Threads::Mutex fe_values_mutex
const SupportQuadrature support_quadrature
virtual boost::container::small_vector< Point< spacedim >, ReferenceCells::max_n_vertices< dim >() > get_vertices(const typename Triangulation< dim, spacedim >::cell_iterator &cell) const override
const unsigned int level
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:522
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:523
#define DeclException0(Exception0)
static ::ExceptionBase & ExcInactiveCell()
constexpr unsigned int invalid_unsigned_int
Definition types.h:232