54 "Lowest order RT_Bubbles element is degree 1, but you requested for degree 0"));
69 ref_case < RefinementCase<dim>::isotropic_refinement + 1;
72 const unsigned int nc =
75 for (
unsigned int i = 0; i < nc; ++i)
82 for (
unsigned int i = 0; i < GeometryInfo<dim>::max_children_per_face; ++i)
84 FETools::compute_face_embedding_matrices<dim, double>(*
this,
90 unsigned int target_row = 0;
91 for (
unsigned int d = 0; d < GeometryInfo<dim>::max_children_per_face; ++
d)
92 for (
unsigned int i = 0; i < face_embeddings[
d].m(); ++i)
94 for (
unsigned int j = 0; j < face_embeddings[
d].n(); ++j)
108 std::ostringstream namebuf;
109 namebuf <<
"FE_RT_Bubbles<" << dim <<
">(" << this->
degree <<
")";
111 return namebuf.str();
117 std::unique_ptr<FiniteElement<dim, dim>>
120 return std_cxx14::make_unique<FE_RT_Bubbles<dim>>(*this);
138 unsigned int current = 0;
151 for (
unsigned int k = 0;
156 0,
true,
false,
false, this->dofs_per_face));
158 current = this->dofs_per_face * GeometryInfo<dim>::faces_per_cell;
167 std::vector<Point<1>> pts = high.
get_points();
168 pts.erase(pts.begin());
169 pts.erase(pts.end() - 1);
171 std::vector<double> wts(pts.size(), 1);
174 for (
unsigned int d = 0;
d < dim; ++
d)
176 std::unique_ptr<QAnisotropic<dim>> quadrature;
180 quadrature = std_cxx14::make_unique<QAnisotropic<dim>>(high);
183 quadrature = std_cxx14::make_unique<QAnisotropic<dim>>(
184 ((
d == 0) ? low : high), ((d == 1) ? low : high));
188 std_cxx14::make_unique<QAnisotropic<dim>>(((d == 0) ? low : high),
189 ((d == 1) ? low : high),
197 for (
unsigned int k = 0; k < quadrature->size(); ++k)
206 std::vector<unsigned int>
211 for (
unsigned int d = 1;
d < dim; ++
d)
212 dofs_per_face *= deg + 1;
215 const unsigned int interior_dofs =
218 std::vector<unsigned int> dpo(dim + 1);
220 dpo[dim] = interior_dofs;
232 return std::vector<bool>();
244 for (
unsigned int d = 2;
d < dim; ++
d)
245 dofs_per_face *= deg + 1;
249 std::vector<bool> ret_val(dofs_per_cell,
false);
264 std::vector<double> & nodal_values)
const 277 unsigned int fbase = 0;
279 for (; f < GeometryInfo<dim>::faces_per_cell;
284 nodal_values[fbase + i] = support_point_values[fbase + i](
290 const unsigned int istep = (this->
dofs_per_cell - fbase) / dim;
296 for (
unsigned int i = 0; i < istep; ++i)
298 nodal_values[fbase + i] = support_point_values[fbase + i](f);
309 #include "fe_rt_bubbles.inst" void reinit(MatrixBlock< MatrixType > &v, const BlockSparsityPattern &p)
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
std::vector< Point< dim > > generalized_support_points
FullMatrix< double > interface_constraints
const std::vector< Point< dim > > & get_points() const
virtual std::string get_name() const override
static std::vector< unsigned int > get_dpo_vector(const unsigned int degree)
const unsigned int degree
const Point< dim > & point(const unsigned int i) const
void invert(const FullMatrix< number2 > &M)
FullMatrix< double > inverse_node_matrix
std::vector< Point< dim - 1 > > generalized_face_support_points
constexpr T pow(const T base, const int iexp)
static ::ExceptionBase & ExcMessage(std::string arg1)
static ::ExceptionBase & ExcImpossibleInDim(int arg1)
std::vector< std::vector< FullMatrix< double > > > prolongation
void reinit(const TableIndices< N > &new_size, const bool omit_default_initialization=false)
#define Assert(cond, exc)
FE_RT_Bubbles(const unsigned int k)
static ::ExceptionBase & ExcDimensionMismatch(std::size_t arg1, std::size_t arg2)
#define DEAL_II_NAMESPACE_CLOSE
void initialize_support_points(const unsigned int rt_degree)
SymmetricTensor< 2, dim, Number > d(const Tensor< 2, dim, Number > &F, const Tensor< 2, dim, Number > &dF_dt)
const unsigned int dofs_per_cell
virtual std::unique_ptr< FiniteElement< dim, dim > > clone() const override
static unsigned int n_children(const RefinementCase< dim > &refinement_case)
static Quadrature< dim > project_to_all_faces(const SubQuadrature &quadrature)
unsigned int n_components() const
#define DEAL_II_NAMESPACE_OPEN
const unsigned int dofs_per_face
static ::ExceptionBase & ExcNotImplemented()
static unsigned int n_polynomials(const unsigned int degree)
static ::ExceptionBase & ExcInternalError()
static std::vector< bool > get_ria_vector(const unsigned int degree)
std::vector< MappingKind > mapping_kind