Reference documentation for deal.II version 9.2.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\}}\)
mapping_q_eulerian.h
Go to the documentation of this file.
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2001 - 2018 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 
28 #include <deal.II/fe/fe_values.h>
29 #include <deal.II/fe/mapping_q.h>
30 
32 
33 
35 
36 template <typename>
37 class Vector;
38 
39 
42 
94 template <int dim, typename VectorType = Vector<double>, int spacedim = dim>
95 class MappingQEulerian : public MappingQ<dim, spacedim>
96 {
97 public:
114  MappingQEulerian(const unsigned int degree,
116  const VectorType & euler_vector,
117  const unsigned int level = numbers::invalid_unsigned_int);
118 
125  virtual std::array<Point<spacedim>, GeometryInfo<dim>::vertices_per_cell>
127  const override;
128 
133  virtual std::unique_ptr<Mapping<dim, spacedim>>
134  clone() const override;
135 
141  virtual bool
142  preserves_vertex_locations() const override;
143 
149 
150 protected:
161  const typename Triangulation<dim, spacedim>::cell_iterator &cell,
162  const CellSimilarity::Similarity cell_similarity,
163  const Quadrature<dim> & quadrature,
164  const typename Mapping<dim, spacedim>::InternalDataBase & internal_data,
166  &output_data) const override;
167 
173 
180 
181 
182 private:
186  const unsigned int level;
187 
193  class MappingQEulerianGeneric : public MappingQGeneric<dim, spacedim>
194  {
195  public:
200  const unsigned int degree,
202 
209  virtual std::array<Point<spacedim>, GeometryInfo<dim>::vertices_per_cell>
211  &cell) const override;
212 
218  virtual std::vector<Point<spacedim>>
220  const typename Triangulation<dim, spacedim>::cell_iterator &cell)
221  const override;
222 
228  virtual bool
229  preserves_vertex_locations() const override;
230 
231  private:
236 
237 
242  class SupportQuadrature : public Quadrature<dim>
243  {
244  public:
248  SupportQuadrature(const unsigned int map_degree);
249  };
250 
255 
265 
270  };
271 };
272 
276 /*----------------------------------------------------------------------*/
277 
278 #ifndef DOXYGEN
279 
280 template <int dim, typename VectorType, int spacedim>
281 inline bool
283 {
284  return false;
285 }
286 
287 #endif // DOXYGEN
288 
289 
291 
292 
293 #endif // dealii_mapping_q_eulerian_h
fe_values.h
MappingQ
Definition: mapping_manifold.h:33
LinearAlgebraDealII::Vector
Vector< double > Vector
Definition: generic_linear_algebra.h:43
mapping_q.h
Threads::Mutex
Definition: thread_management.h:91
internal::FEValuesImplementation::MappingRelatedData
Definition: fe_update_flags.h:418
MappingQEulerian::ExcInactiveCell
static ::ExceptionBase & ExcInactiveCell()
MappingQEulerian::clone
virtual std::unique_ptr< Mapping< dim, spacedim > > clone() const override
Definition: mapping_q_eulerian.cc:87
MappingQGeneric
Definition: mapping_q_generic.h:135
MappingQEulerian::MappingQEulerianGeneric::preserves_vertex_locations
virtual bool preserves_vertex_locations() const override
Definition: mapping_q_eulerian.cc:157
tria_iterator.h
MappingQEulerian::euler_dof_handler
SmartPointer< const DoFHandler< dim, spacedim >, MappingQEulerian< dim, VectorType, spacedim > > euler_dof_handler
Definition: mapping_q_eulerian.h:179
GeometryInfo
Definition: geometry_info.h:1224
VectorType
CellSimilarity::Similarity
Similarity
Definition: fe_update_flags.h:378
MappingQEulerian::MappingQEulerianGeneric::mapping_q_eulerian
const MappingQEulerian< dim, VectorType, spacedim > & mapping_q_eulerian
Definition: mapping_q_eulerian.h:235
DoFHandler
Definition: dof_handler.h:205
MappingQEulerian::preserves_vertex_locations
virtual bool preserves_vertex_locations() const override
FEValues
Definition: fe.h:38
thread_management.h
MappingQEulerian::MappingQEulerian
MappingQEulerian(const unsigned int degree, const DoFHandler< dim, spacedim > &euler_dof_handler, const VectorType &euler_vector, const unsigned int level=numbers::invalid_unsigned_int)
Definition: mapping_q_eulerian.cc:62
MappingQEulerian::level
const unsigned int level
Definition: mapping_q_eulerian.h:186
MappingQEulerian::MappingQEulerianGeneric::fe_values_mutex
Threads::Mutex fe_values_mutex
Definition: mapping_q_eulerian.h:269
MappingQEulerian::euler_vector
SmartPointer< const VectorType, MappingQEulerian< dim, VectorType, spacedim > > euler_vector
Definition: mapping_q_eulerian.h:172
MappingQEulerian::MappingQEulerianGeneric::SupportQuadrature::SupportQuadrature
SupportQuadrature(const unsigned int map_degree)
Definition: mapping_q_eulerian.cc:99
DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:358
smartpointer.h
MappingQEulerian::MappingQEulerianGeneric::support_quadrature
const SupportQuadrature support_quadrature
Definition: mapping_q_eulerian.h:254
SmartPointer
Definition: smartpointer.h:68
MappingQEulerian::fill_fe_values
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
Definition: mapping_q_eulerian.cc:248
Mapping::InternalDataBase
Definition: mapping.h:597
dof_handler.h
dof_accessor.h
DeclException0
#define DeclException0(Exception0)
Definition: exceptions.h:473
MappingQEulerian::MappingQEulerianGeneric
Definition: mapping_q_eulerian.h:193
numbers::invalid_unsigned_int
static const unsigned int invalid_unsigned_int
Definition: types.h:191
MappingQEulerian::MappingQEulerianGeneric::SupportQuadrature
Definition: mapping_q_eulerian.h:242
MappingQEulerian::get_vertices
virtual std::array< Point< spacedim >, GeometryInfo< dim >::vertices_per_cell > get_vertices(const typename Triangulation< dim, spacedim >::cell_iterator &cell) const override
Definition: mapping_q_eulerian.cc:124
MappingQEulerian
Definition: mapping_q_eulerian.h:95
config.h
MappingQEulerian::MappingQEulerianGeneric::fe_values
FEValues< dim, spacedim > fe_values
Definition: mapping_q_eulerian.h:264
DEAL_II_NAMESPACE_CLOSE
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:359
Quadrature
Definition: quadrature.h:85
TriaIterator
Definition: tria_iterator.h:578
MappingQEulerian::MappingQEulerianGeneric::get_vertices
virtual std::array< Point< spacedim >, GeometryInfo< dim >::vertices_per_cell > get_vertices(const typename Triangulation< dim, spacedim >::cell_iterator &cell) const override
Definition: mapping_q_eulerian.cc:146
MappingQEulerian::MappingQEulerianGeneric::MappingQEulerianGeneric
MappingQEulerianGeneric(const unsigned int degree, const MappingQEulerian< dim, VectorType, spacedim > &mapping_q_eulerian)
Definition: mapping_q_eulerian.cc:48
MappingQEulerian::MappingQEulerianGeneric::compute_mapping_support_points
virtual std::vector< Point< spacedim > > compute_mapping_support_points(const typename Triangulation< dim, spacedim >::cell_iterator &cell) const override
Definition: mapping_q_eulerian.cc:167