deal.II version GIT relicensing-2353-g6beaff027c 2025-01-15 01:10: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_q1_eulerian.h
Go to the documentation of this file.
1// ------------------------------------------------------------------------
2//
3// SPDX-License-Identifier: LGPL-2.1-or-later
4// Copyright (C) 2001 - 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#ifndef dealii_mapping_q1_eulerian_h
16#define dealii_mapping_q1_eulerian_h
17
18#include <deal.II/base/config.h>
19
21
23
25
26#include <array>
27
29
30template <typename>
31class Vector;
32
33
93template <int dim, typename VectorType = Vector<double>, int spacedim = dim>
94class MappingQ1Eulerian : public MappingQ<dim, spacedim>
95{
96public:
111 MappingQ1Eulerian(const DoFHandler<dim, spacedim> &euler_dof_handler,
112 const VectorType &euler_vector);
113
120 virtual boost::container::small_vector<Point<spacedim>,
121#ifndef _MSC_VER
122 ReferenceCells::max_n_vertices<dim>()
123#else
125#endif
126 >
128 const override;
129
134 virtual std::unique_ptr<Mapping<dim, spacedim>>
135 clone() const override;
136
142 virtual bool
144
149
150
151
152protected:
164 const CellSimilarity::Similarity cell_similarity,
165 const Quadrature<dim> &quadrature,
166 const typename Mapping<dim, spacedim>::InternalDataBase &internal_data,
168 &output_data) const override;
169
176 virtual std::vector<Point<spacedim>>
179 const override;
180
184 ObserverPointer<const VectorType,
187
194};
195
198/*----------------------------------------------------------------------*/
199
200#ifndef DOXYGEN
201
202template <int dim, typename VectorType, int spacedim>
203inline bool
205{
206 return false;
207}
208
209#endif // DOXYGEN
210
212
213#endif
virtual bool preserves_vertex_locations() const override
ObserverPointer< const DoFHandler< dim, spacedim >, MappingQ1Eulerian< dim, VectorType, spacedim > > shiftmap_dof_handler
virtual std::vector< Point< spacedim > > compute_mapping_support_points(const typename Triangulation< dim, spacedim >::cell_iterator &cell) const override
virtual std::unique_ptr< Mapping< dim, spacedim > > clone() const override
ObserverPointer< 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
virtual boost::container::small_vector< Point< spacedim >, ReferenceCells::max_n_vertices< dim >() > get_vertices(const typename Triangulation< dim, spacedim >::cell_iterator &cell) const override
#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()