57 "Lowest order RT_Bubbles element is degree 1, but you requested for degree 0"));
72 ref_case < RefinementCase<dim>::isotropic_refinement + 1;
75 const unsigned int nc =
78 for (
unsigned int i = 0; i < nc; ++i)
79 this->
prolongation[ref_case - 1][i].reinit(n_dofs, n_dofs);
85 const unsigned int face_no = 0;
91 for (
unsigned int i = 0; i < GeometryInfo<dim>::max_children_per_face; ++i)
94 FETools::compute_face_embedding_matrices<dim, double>(*
this,
101 unsigned int target_row = 0;
102 for (
unsigned int d = 0; d < GeometryInfo<dim>::max_children_per_face; ++d)
103 for (
unsigned int i = 0; i < face_embeddings[d].
m(); ++i)
105 for (
unsigned int j = 0; j < face_embeddings[d].
n(); ++j)
136 std::ostringstream namebuf;
137 namebuf <<
"FE_RT_Bubbles<" << dim <<
">(" << this->degree <<
")";
139 return namebuf.str();
145std::unique_ptr<FiniteElement<dim, dim>>
148 return std::make_unique<FE_RT_Bubbles<dim>>(*this);
165 const unsigned int face_no = 0;
167 this->generalized_support_points.resize(this->n_dofs_per_cell());
168 this->generalized_face_support_points[face_no].resize(
169 this->n_dofs_per_face(face_no));
172 unsigned int current = 0;
180 Assert(face_points.size() == this->n_dofs_per_face(face_no),
182 for (
unsigned int k = 0; k < this->n_dofs_per_face(face_no); ++k)
183 this->generalized_face_support_points[face_no][k] =
184 face_points.point(k);
188 for (
unsigned int k = 0; k < this->n_dofs_per_face(face_no) *
191 this->generalized_support_points[k] = faces.
point(
197 this->n_dofs_per_face(
210 std::vector<Point<1>> pts = high.
get_points();
213 pts.erase(pts.begin());
214 pts.erase(pts.end() - 1);
217 std::vector<double> wts(pts.size(), 1);
220 for (
unsigned int d = 0; d < dim; ++d)
222 std::unique_ptr<QAnisotropic<dim>> quadrature;
226 quadrature = std::make_unique<QAnisotropic<dim>>(high);
230 std::make_unique<QAnisotropic<dim>>(((d == 0) ? low : high),
231 ((d == 1) ? low : high));
235 std::make_unique<QAnisotropic<dim>>(((d == 0) ? low : high),
236 ((d == 1) ? low : high),
237 ((d == 2) ? low : high));
243 for (
unsigned int k = 0; k < quadrature->size(); ++k)
244 this->generalized_support_points[current++] = quadrature->point(k);
252std::vector<unsigned int>
256 unsigned int dofs_per_face = 1;
257 for (
unsigned int d = 1; d < dim; ++d)
258 dofs_per_face *= deg + 1;
261 const unsigned int interior_dofs =
264 std::vector<unsigned int> dpo(dim + 1);
265 dpo[dim - 1] = dofs_per_face;
266 dpo[dim] = interior_dofs;
278 return std::vector<bool>();
287 const unsigned int dofs_per_cell =
289 unsigned int dofs_per_face = deg + 1;
290 for (
unsigned int d = 2; d < dim; ++d)
291 dofs_per_face *= deg + 1;
295 std::vector<bool> ret_val(dofs_per_cell,
false);
310 std::vector<double> & nodal_values)
const
312 Assert(support_point_values.size() == this->generalized_support_points.size(),
314 this->generalized_support_points.size()));
315 Assert(nodal_values.size() == this->n_dofs_per_cell(),
317 Assert(support_point_values[0].size() == this->n_components(),
319 this->n_components()));
323 unsigned int fbase = 0;
325 for (; f < GeometryInfo<dim>::faces_per_cell;
326 ++f, fbase += this->n_dofs_per_face(f))
328 for (
unsigned int i = 0; i < this->n_dofs_per_face(f); ++i)
330 nodal_values[fbase + i] = support_point_values[fbase + i](
336 const unsigned int istep = (this->n_dofs_per_cell() - fbase) / dim;
340 while (fbase < this->n_dofs_per_cell())
342 for (
unsigned int i = 0; i < istep; ++i)
344 nodal_values[fbase + i] = support_point_values[fbase + i](f);
355#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
const std::vector< Point< dim > > & get_points() const
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_CLOSE
static ::ExceptionBase & ExcNotImplemented()
#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)
constexpr T pow(const T base, const int iexp)
static unsigned int n_children(const RefinementCase< dim > &refinement_case)