Reference documentation for deal.II version 9.2.0
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
fe_abf.h
Go to the documentation of this file.
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2003 - 2019 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.md at
12 // the top level directory of deal.II.
13 //
14 // ---------------------------------------------------------------------
15 
16 #ifndef dealii_fe_abf_h
17 #define dealii_fe_abf_h
18 
19 #include <deal.II/base/config.h>
20 
24 #include <deal.II/base/table.h>
26 
27 #include <deal.II/fe/fe.h>
29 
30 #include <vector>
31 
33 
34 
37 
102 template <int dim>
103 class FE_ABF : public FE_PolyTensor<dim>
104 {
105 public:
109  FE_ABF(const unsigned int p);
110 
116  virtual std::string
117  get_name() const override;
118 
126  virtual bool
127  has_support_on_face(const unsigned int shape_index,
128  const unsigned int face_index) const override;
129 
130  // documentation inherited from the base class
131  virtual void
133  const std::vector<Vector<double>> &support_point_values,
134  std::vector<double> & nodal_values) const override;
135 
136  virtual std::size_t
137  memory_consumption() const override;
138 
139  virtual std::unique_ptr<FiniteElement<dim, dim>>
140  clone() const override;
141 
142 private:
148  const unsigned int rt_order;
149 
156  static std::vector<unsigned int>
157  get_dpo_vector(const unsigned int degree);
158 
168  void
169  initialize_support_points(const unsigned int rt_degree);
170 
177  void
179 
187  {
188  public:
200  std::vector<std::vector<Tensor<1, dim>>> shape_values;
201 
211  std::vector<std::vector<Tensor<2, dim>>> shape_gradients;
212  };
213 
228 
229 
230 
245 
246 
247  // Allow access from other dimensions.
248  template <int dim1>
249  friend class FE_ABF;
250 };
251 
252 
253 
258 
259 #endif
FE_ABF::boundary_weights
Table< 2, double > boundary_weights
Definition: fe_abf.h:220
tensor_product_polynomials.h
FE_ABF::initialize_support_points
void initialize_support_points(const unsigned int rt_degree)
Definition: fe_abf.cc:151
FE_ABF::interior_weights
Table< 3, double > interior_weights
Definition: fe_abf.h:227
polynomial.h
FE_ABF::InternalData::shape_values
std::vector< std::vector< Tensor< 1, dim > > > shape_values
Definition: fe_abf.h:200
FE_ABF::memory_consumption
virtual std::size_t memory_consumption() const override
Definition: fe_abf.cc:610
FiniteElement< dim, dim >::InternalDataBase
friend class InternalDataBase
Definition: fe.h:3048
FE_ABF::initialize_restriction
void initialize_restriction()
Definition: fe_abf.cc:321
FE_ABF::get_dpo_vector
static std::vector< unsigned int > get_dpo_vector(const unsigned int degree)
Definition: fe_abf.cc:458
polynomials_abf.h
Table< 2, double >
FiniteElementData::degree
const unsigned int degree
Definition: fe_base.h:298
FE_ABF::get_name
virtual std::string get_name() const override
Definition: fe_abf.cc:116
geometry_info.h
DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:358
FE_ABF::InternalData
Definition: fe_abf.h:186
fe.h
FE_ABF::InternalData::shape_gradients
std::vector< std::vector< Tensor< 2, dim > > > shape_gradients
Definition: fe_abf.h:211
FE_ABF::clone
virtual std::unique_ptr< FiniteElement< dim, dim > > clone() const override
Definition: fe_abf.cc:136
FiniteElement
Definition: fe.h:648
fe_poly_tensor.h
FE_ABF::rt_order
const unsigned int rt_order
Definition: fe_abf.h:148
FE_ABF::convert_generalized_support_point_values_to_dof_values
virtual void convert_generalized_support_point_values_to_dof_values(const std::vector< Vector< double >> &support_point_values, std::vector< double > &nodal_values) const override
Definition: fe_abf.cc:533
FE_ABF::interior_weights_abf
Table< 3, double > interior_weights_abf
Definition: fe_abf.h:244
FE_PolyTensor
Definition: fe_poly_tensor.h:143
config.h
FE_ABF::has_support_on_face
virtual bool has_support_on_face(const unsigned int shape_index, const unsigned int face_index) const override
Definition: fe_abf.cc:491
FE_ABF
Definition: fe_abf.h:103
DEAL_II_NAMESPACE_CLOSE
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:359
Vector< double >
FE_ABF::FE_ABF
friend class FE_ABF
Definition: fe_abf.h:249
table.h
FE_ABF::boundary_weights_abf
Table< 2, double > boundary_weights_abf
Definition: fe_abf.h:237