54 "Lowest order RT_Bubbles element is degree 1, but you requested for degree 0"));
68 for (
const unsigned int ref_case :
72 const unsigned int nc =
75 for (
unsigned int i = 0; i < nc; ++i)
76 this->
prolongation[ref_case - 1][i].reinit(n_dofs, n_dofs);
82 const unsigned int face_no = 0;
88 for (
unsigned int i = 0; i < GeometryInfo<dim>::max_children_per_face; ++i)
98 unsigned int target_row = 0;
99 for (
unsigned int d = 0; d < GeometryInfo<dim>::max_children_per_face; ++d)
100 for (
unsigned int i = 0; i < face_embeddings[d].
m(); ++i)
102 for (
unsigned int j = 0; j < face_embeddings[d].
n(); ++j)
133 std::ostringstream namebuf;
134 namebuf <<
"FE_RT_Bubbles<" << dim <<
">(" << this->
degree <<
")";
136 return namebuf.str();
142std::unique_ptr<FiniteElement<dim, dim>>
145 return std::make_unique<FE_RT_Bubbles<dim>>(*this);
162 const unsigned int face_no = 0;
169 unsigned int current = 0;
177 Assert(face_points.size() == this->n_dofs_per_face(face_no),
181 face_points.point(k);
185 for (
unsigned int face_no = 0;
186 face_no < GeometryInfo<dim>::faces_per_cell;
194 for (
unsigned int face_point = 0; face_point < face_points.size();
199 faces.
point(offset + face_point);
211 std::vector<Point<1>> pts = high.get_points();
214 pts.erase(pts.begin());
215 pts.erase(pts.end() - 1);
218 std::vector<double> wts(pts.size(), 1);
221 for (
unsigned int d = 0; d < dim; ++d)
223 std::unique_ptr<QAnisotropic<dim>> quadrature;
227 quadrature = std::make_unique<QAnisotropic<dim>>(high);
231 std::make_unique<QAnisotropic<dim>>(((d == 0) ? low : high),
232 ((d == 1) ? low : high));
236 std::make_unique<QAnisotropic<dim>>(((d == 0) ? low : high),
237 ((d == 1) ? low : high),
238 ((d == 2) ? low : high));
244 for (
unsigned int k = 0; k < quadrature->size(); ++k)
253std::vector<unsigned int>
258 for (
unsigned int d = 1; d < dim; ++d)
262 const unsigned int interior_dofs =
265 std::vector<unsigned int> dpo(dim + 1);
267 dpo[dim] = interior_dofs;
279 return std::vector<bool>();
291 for (
unsigned int d = 2; d < dim; ++d)
311 std::vector<double> &nodal_values)
const
313 Assert(support_point_values.size() == this->generalized_support_points.size(),
315 this->generalized_support_points.size()));
316 Assert(nodal_values.size() == this->n_dofs_per_cell(),
324 unsigned int fbase = 0;
326 for (; f < GeometryInfo<dim>::faces_per_cell;
331 nodal_values[fbase + i] = support_point_values[fbase + i](
343 for (
unsigned int i = 0; i < istep; ++i)
345 nodal_values[fbase + i] = support_point_values[fbase + i](f);
356#include "fe/fe_rt_bubbles.inst"
FullMatrix< double > inverse_node_matrix
std::vector< MappingKind > mapping_kind
FE_PolyTensor(const TensorPolynomialsBase< dim > &polynomials, const FiniteElementData< dim > &fe_data, const std::vector< bool > &restriction_is_additive_flags, const std::vector< ComponentMask > &nonzero_components)
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()
const unsigned int degree
unsigned int n_dofs_per_cell() const
const unsigned int dofs_per_face
unsigned int n_dofs_per_face(unsigned int face_no=0, unsigned int child=0) const
unsigned int n_components() const
unsigned int n_unique_faces() const
const unsigned int dofs_per_cell
FiniteElementData(const std::vector< unsigned int > &dofs_per_object, const unsigned int n_components, const unsigned int degree, const Conformity conformity=unknown, const BlockIndices &block_indices=BlockIndices())
ReferenceCell< dim > reference_cell() const
std::vector< std::vector< Point< dim - 1 > > > generalized_face_support_points
FullMatrix< double > interface_constraints
std::vector< Point< dim > > generalized_support_points
std::vector< std::vector< FullMatrix< double > > > prolongation
static unsigned int n_polynomials(const unsigned int degree)
static DataSetDescriptor face(const ReferenceCell< dim > &reference_cell, const unsigned int face_no, const bool face_orientation, const bool face_flip, const bool face_rotation, const unsigned int n_quadrature_points)
static Quadrature< dim > project_to_all_faces(const ReferenceCell< dim > &reference_cell, const hp::QCollection< dim - 1 > &quadrature)
const Point< dim > & point(const unsigned int i) const
static constexpr std::array< RefinementCase< dim >, n_refinement_cases > all_refinement_cases()
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_CLOSE
#define DEAL_II_NOT_IMPLEMENTED()
#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)
constexpr types::geometric_orientation default_geometric_orientation
static constexpr unsigned int max_children_per_face
static constexpr unsigned int faces_per_cell
static constexpr std::array< unsigned int, faces_per_cell > unit_normal_direction