deal.II version GIT relicensing-2289-g1e5549a87a 2024-12-21 21: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\}}\)
Loading...
Searching...
No Matches
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
34
35template <typename>
36class Vector;
37
38
93template <int dim, typename VectorType = Vector<double>, int spacedim = dim>
94class MappingQEulerian : public MappingQ<dim, spacedim>
95{
96public:
113 MappingQEulerian(const unsigned int degree,
115 const VectorType &euler_vector,
116 const unsigned int level = numbers::invalid_unsigned_int);
117
124 virtual boost::container::small_vector<Point<spacedim>,
127 const override;
128
133 virtual std::unique_ptr<Mapping<dim, spacedim>>
134 clone() const override;
135
141 virtual bool
143
144 // for documentation, see the Mapping base class
145 virtual std::vector<Point<spacedim>>
148 const override;
149
155
156protected:
168 const CellSimilarity::Similarity cell_similarity,
169 const Quadrature<dim> &quadrature,
170 const typename Mapping<dim, spacedim>::InternalDataBase &internal_data,
172 &output_data) const override;
173
179
186
187private:
191 const unsigned int level;
192
197 class SupportQuadrature : public Quadrature<dim>
198 {
199 public:
203 SupportQuadrature(const unsigned int map_degree);
204 };
205
210
220
225};
226
230/*----------------------------------------------------------------------*/
231
232#ifndef DOXYGEN
233
234template <int dim, typename VectorType, int spacedim>
235inline bool
237{
238 return false;
239}
240
241#endif // DOXYGEN
242
243
245
246
247#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
virtual boost::container::small_vector< Point< spacedim >, GeometryInfo< dim >::vertices_per_cell > get_vertices(const typename Triangulation< dim, spacedim >::cell_iterator &cell) 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
const unsigned int level
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:498
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:499
#define DeclException0(Exception0)
Definition exceptions.h:466
static ::ExceptionBase & ExcInactiveCell()
static const unsigned int invalid_unsigned_int
Definition types.h:220