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_q1_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 #ifndef dealii_mapping_q1_eulerian_h
17 #define dealii_mapping_q1_eulerian_h
18 
19 #include <deal.II/base/config.h>
20 
22 
24 
25 #include <deal.II/fe/mapping_q1.h>
26 
27 #include <array>
28 
30 
31 template <typename>
32 class Vector;
33 
34 
37 
94 template <int dim, typename VectorType = Vector<double>, int spacedim = dim>
95 class MappingQ1Eulerian : public MappingQGeneric<dim, spacedim>
96 {
97 public:
112  MappingQ1Eulerian(const DoFHandler<dim, spacedim> &euler_dof_handler,
113  const VectorType & euler_vector);
114 
121  virtual std::array<Point<spacedim>, GeometryInfo<dim>::vertices_per_cell>
123  const override;
124 
129  virtual std::unique_ptr<Mapping<dim, spacedim>>
130  clone() const override;
131 
137  virtual bool
138  preserves_vertex_locations() const override;
139 
144 
145 
146 
147 protected:
158  const typename Triangulation<dim, spacedim>::cell_iterator &cell,
159  const CellSimilarity::Similarity cell_similarity,
160  const Quadrature<dim> & quadrature,
161  const typename Mapping<dim, spacedim>::InternalDataBase & internal_data,
163  &output_data) const override;
164 
171  virtual std::vector<Point<spacedim>>
173  const typename Triangulation<dim, spacedim>::cell_iterator &cell)
174  const override;
175 
181 
188 };
189 
192 /*----------------------------------------------------------------------*/
193 
194 #ifndef DOXYGEN
195 
196 template <int dim, typename VectorType, int spacedim>
197 inline bool
199 {
200  return false;
201 }
202 
203 #endif // DOXYGEN
204 
206 
207 #endif
LinearAlgebraDealII::Vector
Vector< double > Vector
Definition: generic_linear_algebra.h:43
internal::FEValuesImplementation::MappingRelatedData
Definition: fe_update_flags.h:418
MappingQ1Eulerian::ExcInactiveCell
static ::ExceptionBase & ExcInactiveCell()
MappingQGeneric
Definition: mapping_q_generic.h:135
mapping_q1.h
MappingQ1Eulerian::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_q1_eulerian.cc:105
GeometryInfo
Definition: geometry_info.h:1224
VectorType
CellSimilarity::Similarity
Similarity
Definition: fe_update_flags.h:378
DoFHandler
Definition: dof_handler.h:205
MappingQ1Eulerian::preserves_vertex_locations
virtual bool preserves_vertex_locations() const override
MappingQ1Eulerian
Definition: mapping_q1_eulerian.h:95
DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:358
smartpointer.h
MappingQ1Eulerian::clone
virtual std::unique_ptr< Mapping< dim, spacedim > > clone() const override
Definition: mapping_q1_eulerian.cc:122
SmartPointer
Definition: smartpointer.h:68
MappingQ1Eulerian::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_q1_eulerian.cc:54
Mapping::InternalDataBase
Definition: mapping.h:597
dof_handler.h
DeclException0
#define DeclException0(Exception0)
Definition: exceptions.h:473
MappingQ1Eulerian::MappingQ1Eulerian
MappingQ1Eulerian(const DoFHandler< dim, spacedim > &euler_dof_handler, const VectorType &euler_vector)
Definition: mapping_q1_eulerian.cc:42
MappingQ1Eulerian::shiftmap_dof_handler
SmartPointer< const DoFHandler< dim, spacedim >, MappingQ1Eulerian< dim, VectorType, spacedim > > shiftmap_dof_handler
Definition: mapping_q1_eulerian.h:187
MappingQ1Eulerian::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_q1_eulerian.cc:132
config.h
DEAL_II_NAMESPACE_CLOSE
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:359
Quadrature
Definition: quadrature.h:85
TriaIterator
Definition: tria_iterator.h:578
MappingQ1Eulerian::euler_transform_vectors
SmartPointer< const VectorType, MappingQ1Eulerian< dim, VectorType, spacedim > > euler_transform_vectors
Definition: mapping_q1_eulerian.h:180