|
Reference documentation for deal.II version 9.2.0
|
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\)
\(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\)
\(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\)
\(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
Go to the documentation of this file.
37 template <
int dim,
int spacedim>
40 this->renumber_bases(degree),
45 std::vector<
bool>(1, false))
50 template <
int dim,
int spacedim>
64 template <
int dim,
int spacedim>
74 return this->restriction[0][0];
79 template <
int dim,
int spacedim>
89 return this->prolongation[0][0];
94 template <
int dim,
int spacedim>
101 get_subface_interpolation_matrix(source_fe,
103 interpolation_matrix);
107 template <
int dim,
int spacedim>
111 const unsigned int subface,
124 Assert(interpolation_matrix.
n() == this->dofs_per_face,
126 this->dofs_per_face));
134 this->dofs_per_face <= source_fe->dofs_per_face,
136 spacedim>::ExcInterpolationNotImplemented()));
146 2
e-13 *
std::max(this->degree, source_fe->degree) * (dim - 1);
158 for (
unsigned int i = 0; i < source_fe->dofs_per_face; ++i)
160 const Point<dim> &p = subface_quadrature.point(i);
161 for (
unsigned int j = 0; j < this->dofs_per_face; ++j)
163 double matrix_entry =
164 this->shape_value(this->face_to_cell_index(j, 0), p);
174 interpolation_matrix(i, j) = matrix_entry;
180 for (
unsigned int j = 0; j < source_fe->dofs_per_face; ++j)
184 for (
unsigned int i = 0; i < this->dofs_per_face; ++i)
185 sum += interpolation_matrix(j, i);
190 else if (
dynamic_cast<const FE_Nothing<dim> *
>(&x_source_fe) !=
nullptr)
198 spacedim>::ExcInterpolationNotImplemented()));
203 template <
int dim,
int spacedim>
211 template <
int dim,
int spacedim>
212 std::vector<std::pair<unsigned int, unsigned int>>
222 return std::vector<std::pair<unsigned int, unsigned int>>(
223 1, std::make_pair(0
U, 0
U));
229 return std::vector<std::pair<unsigned int, unsigned int>>();
240 return std::vector<std::pair<unsigned int, unsigned int>>();
245 return std::vector<std::pair<unsigned int, unsigned int>>();
250 template <
int dim,
int spacedim>
251 std::vector<std::pair<unsigned int, unsigned int>>
261 return std::vector<std::pair<unsigned int, unsigned int>>();
265 template <
int dim,
int spacedim>
266 std::vector<std::pair<unsigned int, unsigned int>>
276 return std::vector<std::pair<unsigned int, unsigned int>>();
280 template <
int dim,
int spacedim>
284 const unsigned int codim)
const
303 if (this->degree < fe_b_other->degree)
305 else if (this->degree == fe_b_other->degree)
313 if (fe_nothing->is_dominating())
327 template <
int dim,
int spacedim>
335 std::ostringstream namebuf;
336 namebuf <<
"FE_Bernstein<" << dim <<
">(" << this->degree <<
")";
337 return namebuf.str();
341 template <
int dim,
int spacedim>
342 std::unique_ptr<FiniteElement<dim, spacedim>>
345 return std_cxx14::make_unique<FE_Bernstein<dim, spacedim>>(*this);
352 template <
int dim,
int spacedim>
353 std::vector<unsigned int>
357 std::vector<unsigned int> dpo(dim + 1, 1
U);
358 for (
unsigned int i = 1; i < dpo.size(); ++i)
359 dpo[i] = dpo[i - 1] * (deg - 1);
364 template <
int dim,
int spacedim>
369 ::generate_complete_bernstein_basis<double>(deg));
370 tpp.
set_numbering(FETools::hierarchic_to_lexicographic_numbering<dim>(deg));
376 #include "fe_bernstein.inst"
static ::ExceptionBase & ExcNotImplemented()
TensorProductPolynomials< dim > renumber_bases(const unsigned int degree)
virtual FiniteElementDomination::Domination compare_for_domination(const FiniteElement< dim, spacedim > &fe_other, const unsigned int codim=0) const override final
virtual const FullMatrix< double > & get_restriction_matrix(const unsigned int child, const RefinementCase< dim > &refinement_case=RefinementCase< dim >::isotropic_refinement) const override
SymmetricTensor< 2, dim, Number > e(const Tensor< 2, dim, Number > &F)
virtual std::string get_name() const override
virtual void get_interpolation_matrix(const FiniteElement< dim, spacedim > &source, FullMatrix< double > &matrix) const override
@ either_element_can_dominate
virtual void get_face_interpolation_matrix(const FiniteElement< dim, spacedim > &source, FullMatrix< double > &matrix) const override
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_quad_dof_identities(const FiniteElement< dim, spacedim > &fe_other) const override
static void project_to_face(const SubQuadrature &quadrature, const unsigned int face_no, std::vector< Point< dim >> &q_points)
Expression fabs(const Expression &x)
virtual const FullMatrix< double > & get_prolongation_matrix(const unsigned int child, const RefinementCase< dim > &refinement_case=RefinementCase< dim >::isotropic_refinement) const override
virtual bool hp_constraints_are_implemented() const override
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_line_dof_identities(const FiniteElement< dim, spacedim > &fe_other) const override
@ neither_element_dominates
@ other_element_dominates
static ::ExceptionBase & ExcMessage(std::string arg1)
virtual void get_subface_interpolation_matrix(const FiniteElement< dim, spacedim > &source, const unsigned int subface, FullMatrix< double > &matrix) const override
static void project_to_subface(const SubQuadrature &quadrature, const unsigned int face_no, const unsigned int subface_no, std::vector< Point< dim >> &q_points, const RefinementCase< dim - 1 > &ref_case=RefinementCase< dim - 1 >::isotropic_refinement)
static std::vector< unsigned int > get_dpo_vector(const unsigned int degree)
#define DEAL_II_NAMESPACE_OPEN
SymmetricTensor< rank, dim, Number > sum(const SymmetricTensor< rank, dim, Number > &local, const MPI_Comm &mpi_communicator)
const unsigned int dofs_per_face
static ::ExceptionBase & ExcInternalError()
#define Assert(cond, exc)
static ::ExceptionBase & ExcImpossibleInDim(int arg1)
FE_Bernstein(const unsigned int p)
static const unsigned int invalid_unsigned_int
static ::ExceptionBase & ExcDimensionMismatch(std::size_t arg1, std::size_t arg2)
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_vertex_dof_identities(const FiniteElement< dim, spacedim > &fe_other) const override
#define DEAL_II_NAMESPACE_CLOSE
const std::vector< Point< dim - 1 > > & get_unit_face_support_points() const
void set_numbering(const std::vector< unsigned int > &renumber)
virtual std::unique_ptr< FiniteElement< dim, spacedim > > clone() const override
#define AssertThrow(cond, exc)
T max(const T &t, const MPI_Comm &mpi_communicator)