Reference documentation for deal.II version 9.0.0
mapping_q1_eulerian.h
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 at
12 // the top level of the deal.II distribution.
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 #include <deal.II/base/smartpointer.h>
21 #include <deal.II/fe/mapping_q1.h>
22 #include <deal.II/dofs/dof_handler.h>
23 
24 
25 #include <array>
26 
27 DEAL_II_NAMESPACE_OPEN
28 
29 template <typename> class Vector;
30 
31 
34 
90 template <int dim, typename VectorType = Vector<double>, int spacedim=dim >
91 class MappingQ1Eulerian : public MappingQGeneric<dim,spacedim>
92 {
93 public:
108  MappingQ1Eulerian (const DoFHandler<dim,spacedim> &euler_dof_handler,
109  const VectorType &euler_vector);
110 
117  virtual
118  std::array<Point<spacedim>, GeometryInfo<dim>::vertices_per_cell>
119  get_vertices (const typename Triangulation<dim,spacedim>::cell_iterator &cell) const override;
120 
125  virtual
126  std::unique_ptr<Mapping<dim,spacedim>> clone () const override;
127 
133  virtual
134  bool preserves_vertex_locations () const override;
135 
140 
141 
142 
143 protected:
152  virtual
155  const CellSimilarity::Similarity cell_similarity,
156  const Quadrature<dim> &quadrature,
157  const typename Mapping<dim,spacedim>::InternalDataBase &internal_data,
159 
166  virtual
167  std::vector<Point<spacedim> >
169 
174 
179 };
180 
183 /*----------------------------------------------------------------------*/
184 
185 #ifndef DOXYGEN
186 
187 template <int dim, typename VectorType, int spacedim>
188 inline
189 bool
191 {
192  return false;
193 }
194 
195 #endif // DOXYGEN
196 
197 DEAL_II_NAMESPACE_CLOSE
198 
199 #endif
MappingQ1Eulerian(const DoFHandler< dim, spacedim > &euler_dof_handler, const VectorType &euler_vector)
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
static ::ExceptionBase & ExcInactiveCell()
virtual bool preserves_vertex_locations() const override
virtual std::vector< Point< spacedim > > compute_mapping_support_points(const typename Triangulation< dim, spacedim >::cell_iterator &cell) const override
#define DeclException0(Exception0)
Definition: exceptions.h:323
SmartPointer< const VectorType, MappingQ1Eulerian< dim, VectorType, spacedim > > euler_transform_vectors
virtual std::unique_ptr< Mapping< dim, spacedim > > clone() const override
SmartPointer< const DoFHandler< dim, spacedim >, MappingQ1Eulerian< dim, VectorType, spacedim > > shiftmap_dof_handler
virtual std::array< Point< spacedim >, GeometryInfo< dim >::vertices_per_cell > get_vertices(const typename Triangulation< dim, spacedim >::cell_iterator &cell) const override