Reference documentation for deal.II version 8.1.0
fe_abf.h
1 // ---------------------------------------------------------------------
2 // @f$Id: fe_abf.h 30036 2013-07-18 16:55:32Z maier @f$
3 //
4 // Copyright (C) 2003 - 2013 by the deal.II authors
5 //
6 // This file is part of the deal.II library.
7 //
8 // The deal.II library is free software; you can use it, redistribute
9 // it, and/or modify it under the terms of the GNU Lesser General
10 // Public License as published by the Free Software Foundation; either
11 // version 2.1 of the License, or (at your option) any later version.
12 // The full text of the license can be found in the file LICENSE at
13 // the top level of the deal.II distribution.
14 //
15 // ---------------------------------------------------------------------
16 
17 #ifndef __deal2__fe_abf_h
18 #define __deal2__fe_abf_h
19 
20 #include <deal.II/base/config.h>
21 #include <deal.II/base/table.h>
22 #include <deal.II/base/polynomials_abf.h>
23 #include <deal.II/base/polynomial.h>
24 #include <deal.II/base/tensor_product_polynomials.h>
25 #include <deal.II/base/geometry_info.h>
26 #include <deal.II/fe/fe.h>
27 #include <deal.II/fe/fe_poly_tensor.h>
28 
29 #include <vector>
30 
32 
33 template <int dim, int spacedim> class MappingQ;
34 
35 
38 
103 template <int dim>
104 class FE_ABF : public FE_PolyTensor<PolynomialsABF<dim>, dim>
105 {
106 public:
111  FE_ABF (const unsigned int p);
112 
122  virtual std::string get_name () const;
123 
133  virtual bool has_support_on_face (const unsigned int shape_index,
134  const unsigned int face_index) const;
135 
136  virtual void interpolate(std::vector<double> &local_dofs,
137  const std::vector<double> &values) const;
138  virtual void interpolate(std::vector<double> &local_dofs,
139  const std::vector<Vector<double> > &values,
140  unsigned int offset = 0) const;
141  virtual void interpolate(
142  std::vector<double> &local_dofs,
143  const VectorSlice<const std::vector<std::vector<double> > > &values) const;
144  virtual std::size_t memory_consumption () const;
145  virtual FiniteElement<dim> *clone() const;
146 
147 private:
157  const unsigned int rt_order;
158 
169  static std::vector<unsigned int>
170  get_dpo_vector (const unsigned int degree);
171 
185  void initialize_support_points (const unsigned int rt_degree);
186 
198  void initialize_restriction ();
199 
219  virtual UpdateFlags update_once (const UpdateFlags flags) const;
220 
237  virtual UpdateFlags update_each (const UpdateFlags flags) const;
238 
247  class InternalData : public FiniteElement<dim>::InternalDataBase
248  {
249  public:
273  std::vector<std::vector<Tensor<1,dim> > > shape_values;
274 
293  std::vector<std::vector<Tensor<2,dim> > > shape_gradients;
294  };
295 
322 
323 
324 
351 
352 
357  template <int dim1> friend class FE_ABF;
358 };
359 
360 
361 
365 DEAL_II_NAMESPACE_CLOSE
366 
367 #endif
std::vector< std::vector< Tensor< 1, dim > > > shape_values
Definition: fe_abf.h:273
void initialize_restriction()
Table< 3, double > interior_weights
Definition: fe_abf.h:321
Table< 2, double > boundary_weights
Definition: fe_abf.h:309
virtual std::string get_name() const
const unsigned int degree
Definition: fe_base.h:287
virtual FiniteElement< dim > * clone() const
friend class FE_ABF
Definition: fe_abf.h:357
Definition: fe_abf.h:104
Table< 2, double > boundary_weights_abf
Definition: fe_abf.h:338
virtual std::size_t memory_consumption() const
Table< 3, double > interior_weights_abf
Definition: fe_abf.h:350
UpdateFlags
virtual void interpolate(std::vector< double > &local_dofs, const std::vector< double > &values) const
virtual UpdateFlags update_each(const UpdateFlags flags) const
const unsigned int rt_order
Definition: fe_abf.h:157
virtual UpdateFlags update_once(const UpdateFlags flags) const
static std::vector< unsigned int > get_dpo_vector(const unsigned int degree)
void initialize_support_points(const unsigned int rt_degree)
virtual bool has_support_on_face(const unsigned int shape_index, const unsigned int face_index) const
std::vector< std::vector< Tensor< 2, dim > > > shape_gradients
Definition: fe_abf.h:293