56 "Lowest order RT_Bubbles element is degree 1, but you requested for degree 0"));
70 for (
const unsigned int ref_case :
74 const unsigned int nc =
77 for (
unsigned int i = 0; i < nc; ++i)
78 this->
prolongation[ref_case - 1][i].reinit(n_dofs, n_dofs);
84 const unsigned int face_no = 0;
90 for (
unsigned int i = 0; i < GeometryInfo<dim>::max_children_per_face; ++i)
93 FETools::compute_face_embedding_matrices<dim, double>(*
this,
100 unsigned int target_row = 0;
101 for (
unsigned int d = 0; d < GeometryInfo<dim>::max_children_per_face; ++d)
102 for (
unsigned int i = 0; i < face_embeddings[d].
m(); ++i)
104 for (
unsigned int j = 0; j < face_embeddings[d].
n(); ++j)
135 std::ostringstream namebuf;
136 namebuf <<
"FE_RT_Bubbles<" << dim <<
">(" << this->degree <<
")";
138 return namebuf.str();
144std::unique_ptr<FiniteElement<dim, dim>>
147 return std::make_unique<FE_RT_Bubbles<dim>>(*this);
164 const unsigned int face_no = 0;
166 this->generalized_support_points.resize(this->n_dofs_per_cell());
167 this->generalized_face_support_points[face_no].resize(
168 this->n_dofs_per_face(face_no));
171 unsigned int current = 0;
179 Assert(face_points.size() == this->n_dofs_per_face(face_no),
181 for (
unsigned int k = 0; k < this->n_dofs_per_face(face_no); ++k)
182 this->generalized_face_support_points[face_no][k] =
183 face_points.point(k);
187 for (
unsigned int k = 0; k < this->n_dofs_per_face(face_no) *
190 this->generalized_support_points[k] =
192 this->reference_cell(),
195 this->n_dofs_per_face(face_no)));
207 std::vector<Point<1>> pts = high.get_points();
210 pts.erase(pts.begin());
211 pts.erase(pts.end() - 1);
214 std::vector<double> wts(pts.size(), 1);
217 for (
unsigned int d = 0; d < dim; ++d)
219 std::unique_ptr<QAnisotropic<dim>> quadrature;
223 quadrature = std::make_unique<QAnisotropic<dim>>(high);
227 std::make_unique<QAnisotropic<dim>>(((d == 0) ? low : high),
228 ((d == 1) ? low : high));
232 std::make_unique<QAnisotropic<dim>>(((d == 0) ? low : high),
233 ((d == 1) ? low : high),
234 ((d == 2) ? low : high));
240 for (
unsigned int k = 0; k < quadrature->size(); ++k)
241 this->generalized_support_points[current++] = quadrature->point(k);
249std::vector<unsigned int>
253 unsigned int dofs_per_face = 1;
254 for (
unsigned int d = 1; d < dim; ++d)
255 dofs_per_face *= deg + 1;
258 const unsigned int interior_dofs =
261 std::vector<unsigned int> dpo(dim + 1);
262 dpo[dim - 1] = dofs_per_face;
263 dpo[dim] = interior_dofs;
275 return std::vector<bool>();
284 const unsigned int dofs_per_cell =
286 unsigned int dofs_per_face = deg + 1;
287 for (
unsigned int d = 2; d < dim; ++d)
288 dofs_per_face *= deg + 1;
292 std::vector<bool> ret_val(dofs_per_cell,
false);
307 std::vector<double> &nodal_values)
const
309 Assert(support_point_values.size() == this->generalized_support_points.size(),
311 this->generalized_support_points.size()));
312 Assert(nodal_values.size() == this->n_dofs_per_cell(),
314 Assert(support_point_values[0].
size() == this->n_components(),
316 this->n_components()));
320 unsigned int fbase = 0;
322 for (; f < GeometryInfo<dim>::faces_per_cell;
323 ++f, fbase += this->n_dofs_per_face(f))
325 for (
unsigned int i = 0; i < this->n_dofs_per_face(f); ++i)
327 nodal_values[fbase + i] = support_point_values[fbase + i](
333 const unsigned int istep = (this->n_dofs_per_cell() - fbase) / dim;
337 while (fbase < this->n_dofs_per_cell())
339 for (
unsigned int i = 0; i < istep; ++i)
341 nodal_values[fbase + i] = support_point_values[fbase + i](f);
352#include "fe_rt_bubbles.inst"
FullMatrix< double > inverse_node_matrix
std::vector< MappingKind > mapping_kind
FE_RT_Bubbles(const unsigned int k)
virtual std::string get_name() const override
virtual std::unique_ptr< FiniteElement< dim, dim > > clone() const override
void initialize_support_points(const unsigned int rt_degree)
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
static std::vector< unsigned int > get_dpo_vector(const unsigned int degree)
static std::vector< bool > get_ria_vector(const unsigned int degree)
void initialize_quad_dof_index_permutation_and_sign_change()
unsigned int n_dofs_per_cell() const
unsigned int n_dofs_per_face(unsigned int face_no=0, unsigned int child=0) const
unsigned int n_unique_faces() const
FullMatrix< double > interface_constraints
std::vector< std::vector< FullMatrix< double > > > prolongation
void invert(const FullMatrix< number2 > &M)
static unsigned int n_polynomials(const unsigned int degree)
static Quadrature< dim > project_to_all_faces(const ReferenceCell &reference_cell, const hp::QCollection< dim - 1 > &quadrature)
const Point< dim > & point(const unsigned int i) const
static constexpr unsigned char default_combined_face_orientation()
static std::array< RefinementCase< dim >, n_refinement_cases > all_refinement_cases()
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_CLOSE
#define Assert(cond, exc)
static ::ExceptionBase & ExcImpossibleInDim(int arg1)
#define AssertDimension(dim1, dim2)
static ::ExceptionBase & ExcInternalError()
static ::ExceptionBase & ExcDimensionMismatch(std::size_t arg1, std::size_t arg2)
static ::ExceptionBase & ExcMessage(std::string arg1)
#define DEAL_II_NOT_IMPLEMENTED()
constexpr T pow(const T base, const int iexp)
static unsigned int n_children(const RefinementCase< dim > &refinement_case)