Reference documentation for deal.II version 8.5.1
mapping_q_eulerian.h
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2001 - 2016 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 
17 #ifndef dealii__mapping_q_eulerian_h
18 #define dealii__mapping_q_eulerian_h
19 
20 #include <deal.II/base/config.h>
21 #include <deal.II/base/smartpointer.h>
22 #include <deal.II/base/thread_management.h>
23 #include <deal.II/grid/tria_iterator.h>
24 #include <deal.II/dofs/dof_handler.h>
25 #include <deal.II/dofs/dof_accessor.h>
26 #include <deal.II/fe/fe_values.h>
27 #include <deal.II/fe/mapping_q.h>
28 
29 
30 DEAL_II_NAMESPACE_OPEN
31 
32 template <typename> class Vector;
33 
34 
37 
89 template <int dim, typename VectorType = Vector<double>, int spacedim=dim >
90 class MappingQEulerian : public MappingQ<dim, spacedim>
91 {
92 public:
106  MappingQEulerian (const unsigned int degree,
108  const VectorType &euler_vector);
109 
114  MappingQEulerian (const unsigned int degree,
115  const VectorType &euler_vector,
116  const DoFHandler<dim,spacedim> &euler_dof_handler) DEAL_II_DEPRECATED;
117 
124  virtual
125  std_cxx11::array<Point<spacedim>, GeometryInfo<dim>::vertices_per_cell>
126  get_vertices (const typename Triangulation<dim,spacedim>::cell_iterator &cell) const;
127 
132  virtual
133  Mapping<dim,spacedim> *clone () const;
134 
140  bool preserves_vertex_locations () const;
141 
146 
147 protected:
156  virtual
159  const CellSimilarity::Similarity cell_similarity,
160  const Quadrature<dim> &quadrature,
161  const typename Mapping<dim,spacedim>::InternalDataBase &internal_data,
163 
168 
173 
174 
175 private:
176 
182  class MappingQEulerianGeneric : public MappingQGeneric<dim,spacedim>
183  {
184  public:
185 
189  MappingQEulerianGeneric (const unsigned int degree,
191 
198  virtual
199  std_cxx11::array<Point<spacedim>, GeometryInfo<dim>::vertices_per_cell>
200  get_vertices (const typename Triangulation<dim,spacedim>::cell_iterator &cell) const;
201 
207  virtual
208  std::vector<Point<spacedim> >
210 
211  private:
216 
217 
223  class SupportQuadrature : public Quadrature<dim>
224  {
225  public:
230  SupportQuadrature (const unsigned int map_degree);
231 
232  };
233 
238 
248 
253  };
254 
255 };
256 
260 /*----------------------------------------------------------------------*/
261 
262 #ifndef DOXYGEN
263 
264 template <int dim, typename VectorType, int spacedim>
265 inline
266 bool
268 {
269  return false;
270 }
271 
272 #endif // DOXYGEN
273 
274 
275 DEAL_II_NAMESPACE_CLOSE
276 
277 
278 #endif // dealii__mapping_q_eulerian_h
static ::ExceptionBase & ExcInactiveCell()
virtual std::vector< Point< spacedim > > compute_mapping_support_points(const typename Triangulation< dim, spacedim >::cell_iterator &cell) const
MappingQEulerianGeneric(const unsigned int degree, const MappingQEulerian< dim, VectorType, spacedim > &mapping_q_eulerian)
virtual std_cxx11::array< Point< spacedim >, GeometryInfo< dim >::vertices_per_cell > get_vertices(const typename Triangulation< dim, spacedim >::cell_iterator &cell) const
virtual std_cxx11::array< Point< spacedim >, GeometryInfo< dim >::vertices_per_cell > get_vertices(const typename Triangulation< dim, spacedim >::cell_iterator &cell) const
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::FEValues::MappingRelatedData< dim, spacedim > &output_data) const
Abstract base class for mapping classes.
Definition: dof_tools.h:46
#define DeclException0(Exception0)
Definition: exceptions.h:541
SmartPointer< const VectorType, MappingQEulerian< dim, VectorType, spacedim > > euler_vector
MappingQEulerian(const unsigned int degree, const DoFHandler< dim, spacedim > &euler_dof_handler, const VectorType &euler_vector)
SmartPointer< const DoFHandler< dim, spacedim >, MappingQEulerian< dim, VectorType, spacedim > > euler_dof_handler
Definition: fe.h:30
virtual Mapping< dim, spacedim > * clone() const
bool preserves_vertex_locations() const
const MappingQEulerian< dim, VectorType, spacedim > & mapping_q_eulerian