Reference documentation for deal.II version 8.4.2
fe_abf.h
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2003 - 2015 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__fe_abf_h
17 #define dealii__fe_abf_h
18 
19 #include <deal.II/base/config.h>
20 #include <deal.II/base/table.h>
21 #include <deal.II/base/polynomials_abf.h>
22 #include <deal.II/base/polynomial.h>
23 #include <deal.II/base/tensor_product_polynomials.h>
24 #include <deal.II/base/geometry_info.h>
25 #include <deal.II/fe/fe.h>
26 #include <deal.II/fe/fe_poly_tensor.h>
27 
28 #include <vector>
29 
30 DEAL_II_NAMESPACE_OPEN
31 
32 template <int dim, int spacedim> class MappingQ;
33 
34 
37 
102 template <int dim>
103 class FE_ABF : public FE_PolyTensor<PolynomialsABF<dim>, dim>
104 {
105 public:
109  FE_ABF (const unsigned int p);
110 
116  virtual std::string get_name () const;
117 
125  virtual bool has_support_on_face (const unsigned int shape_index,
126  const unsigned int face_index) const;
127 
128  virtual void interpolate(std::vector<double> &local_dofs,
129  const std::vector<double> &values) const;
130  virtual void interpolate(std::vector<double> &local_dofs,
131  const std::vector<Vector<double> > &values,
132  unsigned int offset = 0) const;
133  virtual void interpolate(
134  std::vector<double> &local_dofs,
135  const VectorSlice<const std::vector<std::vector<double> > > &values) const;
136  virtual std::size_t memory_consumption () const;
137  virtual FiniteElement<dim> *clone() const;
138 
139 private:
145  const unsigned int rt_order;
146 
153  static std::vector<unsigned int>
154  get_dpo_vector (const unsigned int degree);
155 
165  void initialize_support_points (const unsigned int rt_degree);
166 
173  void initialize_restriction ();
174 
181  class InternalData : public FiniteElement<dim>::InternalDataBase
182  {
183  public:
195  std::vector<std::vector<Tensor<1,dim> > > shape_values;
196 
206  std::vector<std::vector<Tensor<2,dim> > > shape_gradients;
207  };
208 
223 
224 
225 
240 
241 
245  template <int dim1> friend class FE_ABF;
246 };
247 
248 
249 
253 DEAL_II_NAMESPACE_CLOSE
254 
255 #endif
std::vector< std::vector< Tensor< 1, dim > > > shape_values
Definition: fe_abf.h:195
void initialize_restriction()
Definition: fe_abf.cc:306
Table< 3, double > interior_weights
Definition: fe_abf.h:222
Table< 2, double > boundary_weights
Definition: fe_abf.h:215
const unsigned int degree
Definition: fe_base.h:299
virtual std::string get_name() const
Definition: fe_abf.cc:110
virtual std::size_t memory_consumption() const
Definition: fe_abf.cc:646
friend class FE_ABF
Definition: fe_abf.h:245
virtual bool has_support_on_face(const unsigned int shape_index, const unsigned int face_index) const
Definition: fe_abf.cc:470
Definition: fe_abf.h:103
Table< 2, double > boundary_weights_abf
Definition: fe_abf.h:232
virtual void interpolate(std::vector< double > &local_dofs, const std::vector< double > &values) const
Definition: fe_abf.cc:513
Table< 3, double > interior_weights_abf
Definition: fe_abf.h:239
virtual FiniteElement< dim > * clone() const
Definition: fe_abf.cc:130
const unsigned int rt_order
Definition: fe_abf.h:145
static std::vector< unsigned int > get_dpo_vector(const unsigned int degree)
Definition: fe_abf.cc:436
void initialize_support_points(const unsigned int rt_degree)
Definition: fe_abf.cc:145
std::vector< std::vector< Tensor< 2, dim > > > shape_gradients
Definition: fe_abf.h:206