Reference documentation for deal.II version 9.6.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\}}\)
Loading...
Searching...
No Matches
fe_raviart_thomas.h
Go to the documentation of this file.
1// ------------------------------------------------------------------------
2//
3// SPDX-License-Identifier: LGPL-2.1-or-later
4// Copyright (C) 2003 - 2023 by the deal.II authors
5//
6// This file is part of the deal.II library.
7//
8// Part of the source code is dual licensed under Apache-2.0 WITH
9// LLVM-exception OR LGPL-2.1-or-later. Detailed license information
10// governing the source code and code contributions can be found in
11// LICENSE.md and CONTRIBUTING.md at the top level directory of deal.II.
12//
13// ------------------------------------------------------------------------
14
15#ifndef dealii_fe_raviart_thomas_h
16#define dealii_fe_raviart_thomas_h
17
18#include <deal.II/base/config.h>
19
20#include <deal.II/base/mutex.h>
21#include <deal.II/base/table.h>
22
23#include <deal.II/fe/fe.h>
25
26#include <vector>
27
29
126template <int dim>
128{
129public:
133 FE_RaviartThomas(const unsigned int p);
134
140 virtual std::string
141 get_name() const override;
142
143 // documentation inherited from the base class
144 virtual std::unique_ptr<FiniteElement<dim, dim>>
145 clone() const override;
146
154 virtual bool
155 has_support_on_face(const unsigned int shape_index,
156 const unsigned int face_index) const override;
157
158 // documentation inherited from the base class
159 virtual void
161 const std::vector<Vector<double>> &support_point_values,
162 std::vector<double> &nodal_values) const override;
163
168 virtual std::pair<Table<2, bool>, std::vector<unsigned int>>
169 get_constant_modes() const override;
170
171 virtual std::size_t
172 memory_consumption() const override;
173
174private:
181 static std::vector<unsigned int>
182 get_dpo_vector(const unsigned int degree);
183
189 void
190 initialize_support_points(const unsigned int rt_degree);
191
198 void
200
212
220
294 void
296
297 // Allow access from other dimensions.
298 template <int dim1>
299 friend class FE_RaviartThomas;
300};
301
302
303
334template <int dim>
336{
337public:
341 FE_RaviartThomasNodal(const unsigned int p);
342
348 virtual std::string
349 get_name() const override;
350
351 // documentation inherited from the base class
352 virtual std::unique_ptr<FiniteElement<dim, dim>>
353 clone() const override;
354
355 virtual void
357 FullMatrix<double> &matrix,
358 const unsigned int face_no = 0) const override;
359
360 virtual void
362 const FiniteElement<dim> &source,
363 const unsigned int subface,
364 FullMatrix<double> &matrix,
365 const unsigned int face_no = 0) const override;
366
367 virtual void
369 const std::vector<Vector<double>> &support_point_values,
370 std::vector<double> &nodal_values) const override;
371
372 virtual bool
373 hp_constraints_are_implemented() const override;
374
375 virtual std::vector<std::pair<unsigned int, unsigned int>>
376 hp_vertex_dof_identities(const FiniteElement<dim> &fe_other) const override;
377
378 virtual std::vector<std::pair<unsigned int, unsigned int>>
379 hp_line_dof_identities(const FiniteElement<dim> &fe_other) const override;
380
381 virtual std::vector<std::pair<unsigned int, unsigned int>>
383 const unsigned int face_no = 0) const override;
384
390 const unsigned int codim = 0) const override final;
391
392 virtual const FullMatrix<double> &
394 const unsigned int child,
395 const RefinementCase<dim> &refinement_case =
397
398 virtual const FullMatrix<double> &
400 const unsigned int child,
401 const RefinementCase<dim> &refinement_case =
403
404private:
409 virtual bool
410 has_support_on_face(const unsigned int shape_index,
411 const unsigned int face_index) const override;
412
416 void
418
425};
426
429/* -------------- declaration of explicit specializations ------------- */
430
431#ifndef DOXYGEN
432
433template <>
434void
436
437#endif // DOXYGEN
438
440
441#endif
virtual std::unique_ptr< FiniteElement< dim, dim > > clone() const override
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
virtual bool has_support_on_face(const unsigned int shape_index, const unsigned int face_index) const override
Threads::Mutex restriction_matrix_mutex
virtual const FullMatrix< double > & get_restriction_matrix(const unsigned int child, const RefinementCase< dim > &refinement_case=RefinementCase< dim >::isotropic_refinement) const override
void initialize_quad_dof_index_permutation_and_sign_change()
Threads::Mutex prolongation_matrix_mutex
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_line_dof_identities(const FiniteElement< dim > &fe_other) const override
virtual void get_face_interpolation_matrix(const FiniteElement< dim > &source, FullMatrix< double > &matrix, const unsigned int face_no=0) const override
virtual std::string get_name() const override
virtual bool hp_constraints_are_implemented() const override
virtual void get_subface_interpolation_matrix(const FiniteElement< dim > &source, const unsigned int subface, FullMatrix< double > &matrix, const unsigned int face_no=0) const override
virtual FiniteElementDomination::Domination compare_for_domination(const FiniteElement< dim > &fe_other, const unsigned int codim=0) const override final
virtual const FullMatrix< double > & get_prolongation_matrix(const unsigned int child, const RefinementCase< dim > &refinement_case=RefinementCase< dim >::isotropic_refinement) const override
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_vertex_dof_identities(const FiniteElement< dim > &fe_other) const override
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_quad_dof_identities(const FiniteElement< dim > &fe_other, const unsigned int face_no=0) const override
FE_RaviartThomasNodal(const unsigned int p)
virtual std::size_t memory_consumption() const override
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
virtual bool has_support_on_face(const unsigned int shape_index, const unsigned int face_index) const override
Table< 3, double > interior_weights
virtual std::pair< Table< 2, bool >, std::vector< unsigned int > > get_constant_modes() const override
Table< 2, double > boundary_weights
void initialize_quad_dof_index_permutation_and_sign_change()
virtual std::unique_ptr< FiniteElement< dim, dim > > clone() const override
friend class FE_RaviartThomas
void initialize_support_points(const unsigned int rt_degree)
static std::vector< unsigned int > get_dpo_vector(const unsigned int degree)
virtual std::string get_name() const override
const unsigned int degree
Definition fe_data.h:452
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:503
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:504