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)
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();
211 pts.erase(pts.begin());
212 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 Quadrature< 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)
std::vector< unsigned int > get_dpo_vector(const unsigned int degree)
void reference_cell(Triangulation< dim, spacedim > &tria, const ReferenceCell &reference_cell)
SymmetricTensor< 2, dim, Number > d(const Tensor< 2, dim, Number > &F, const Tensor< 2, dim, Number > &dF_dt)
constexpr T pow(const T base, const int iexp)
void reinit(MatrixBlock< MatrixType > &v, const BlockSparsityPattern &p)
static unsigned int n_children(const RefinementCase< dim > &refinement_case)