deal.II version GIT relicensing-6842-g793a97d2aa 2026-10-02 14:00:01+00:00
\(\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\}}\)
Loading...
Searching...
No Matches
fe_abf.h
Go to the documentation of this file.
1// -----------------------------------------------------------------------------
2//
3// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception OR LGPL-2.1-or-later
4// Copyright (C) 2003 - 2024 by the deal.II authors
5//
6// This file is part of the deal.II library.
7//
8// Detailed license information governing the source code and contributions
9// can be found in LICENSE.md and CONTRIBUTING.md at the top level directory.
10//
11// -----------------------------------------------------------------------------
12
13#ifndef dealii_fe_abf_h
14#define dealii_fe_abf_h
15
16#include <deal.II/base/config.h>
17
21#include <deal.II/base/table.h>
23
24#include <deal.II/fe/fe.h>
26
27#include <vector>
28
30
31
97template <int dim>
98class FE_ABF : public FE_PolyTensor<dim>
99{
100public:
104 FE_ABF(const unsigned int p);
105
111 virtual std::string
112 get_name() const override;
113
121 virtual bool
122 has_support_on_face(const unsigned int shape_index,
123 const unsigned int face_index) const override;
124
125 // documentation inherited from the base class
126 virtual void
128 const std::vector<Vector<double>> &support_point_values,
129 std::vector<double> &nodal_values) const override;
130
131 virtual std::size_t
132 memory_consumption() const override;
133
134 virtual std::unique_ptr<FiniteElement<dim, dim>>
135 clone() const override;
136
137private:
143 const unsigned int rt_order;
144
151 static std::vector<unsigned int>
152 get_dpo_vector(const unsigned int degree);
153
163 void
164 initialize_support_points(const unsigned int rt_degree);
165
172 void
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
248 void
250
251 // Allow access from other dimensions.
252 template <int dim1>
253 friend class FE_ABF;
254};
255
256
257
262
263#endif
std::vector< std::vector< Tensor< 2, dim > > > shape_gradients
Definition fe_abf.h:206
std::vector< std::vector< Tensor< 1, dim > > > shape_values
Definition fe_abf.h:195
void initialize_quad_dof_index_permutation_and_sign_change()
Definition fe_abf.cc:120
Table< 2, double > boundary_weights
Definition fe_abf.h:215
virtual std::unique_ptr< FiniteElement< dim, dim > > clone() const override
Definition fe_abf.cc:153
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:580
virtual std::size_t memory_consumption() const override
Definition fe_abf.cc:665
void initialize_restriction()
Definition fe_abf.cc:350
virtual bool has_support_on_face(const unsigned int shape_index, const unsigned int face_index) const override
Definition fe_abf.cc:538
virtual std::string get_name() const override
Definition fe_abf.cc:133
static std::vector< unsigned int > get_dpo_vector(const unsigned int degree)
Definition fe_abf.cc:505
Table< 2, double > boundary_weights_abf
Definition fe_abf.h:232
const unsigned int rt_order
Definition fe_abf.h:143
void initialize_support_points(const unsigned int rt_degree)
Definition fe_abf.cc:168
Table< 3, double > interior_weights
Definition fe_abf.h:222
friend class FE_ABF
Definition fe_abf.h:253
Table< 3, double > interior_weights_abf
Definition fe_abf.h:239
const unsigned int degree
Definition fe_data.h:450
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:38
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:39