Reference documentation for deal.II version 8.4.2
mapping_q1_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 #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/std_cxx11/array.h>
21 #include <deal.II/base/smartpointer.h>
22 #include <deal.II/fe/mapping_q1.h>
23 
24 DEAL_II_NAMESPACE_OPEN
25 
28 
85 template <int dim, typename VectorType = Vector<double>, int spacedim=dim >
86 class MappingQ1Eulerian : public MappingQGeneric<dim,spacedim>
87 {
88 public:
89 
100  MappingQ1Eulerian (const VectorType &euler_transform_vectors,
102 
109  virtual
110  std_cxx11::array<Point<spacedim>, GeometryInfo<dim>::vertices_per_cell>
111  get_vertices (const typename Triangulation<dim,spacedim>::cell_iterator &cell) const;
112 
117  virtual
119 
125  bool preserves_vertex_locations () const;
126 
130  DeclException0 (ExcInactiveCell);
131 
132 
133 
134 protected:
143  virtual
144  CellSimilarity::Similarity
146  const CellSimilarity::Similarity cell_similarity,
147  const Quadrature<dim> &quadrature,
148  const typename Mapping<dim,spacedim>::InternalDataBase &internal_data,
150 
157  virtual
158  std::vector<Point<spacedim> >
160 
165 
170 };
171 
174 /*----------------------------------------------------------------------*/
175 
176 #ifndef DOXYGEN
177 
178 template <int dim, typename VectorType, int spacedim>
179 inline
180 bool
182 {
183  return false;
184 }
185 
186 #endif // DOXYGEN
187 
188 DEAL_II_NAMESPACE_CLOSE
189 
190 #endif
MappingQ1Eulerian(const VectorType &euler_transform_vectors, const DoFHandler< dim, spacedim > &shiftmap_dof_handler)
virtual MappingQ1Eulerian< dim, VectorType, spacedim > * clone() const
bool preserves_vertex_locations() const
DeclException0(ExcInactiveCell)
virtual std::vector< Point< spacedim > > compute_mapping_support_points(const typename Triangulation< dim, spacedim >::cell_iterator &cell) const
SmartPointer< const VectorType, MappingQ1Eulerian< dim, VectorType, spacedim > > euler_transform_vectors
SmartPointer< const DoFHandler< dim, spacedim >, MappingQ1Eulerian< dim, VectorType, spacedim > > shiftmap_dof_handler
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