deal.II version GIT relicensing-6834-g5b78e6bcdf 2026-10-01 11:20:01+00:00
\(\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_dg_vector.cc
Go to the documentation of this file.
1// -----------------------------------------------------------------------------
2//
3// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception OR LGPL-2.1-or-later
4// Copyright (C) 2010 - 2025 by the deal.II authors
5//
6// This file is part of the deal.II library.
7//
8// Detailed license information governing the source code and contributions
9// can be found in LICENSE.md and CONTRIBUTING.md at the top level directory.
10//
11// -----------------------------------------------------------------------------
12
13
18
19#include <deal.II/fe/fe_dg_vector.templates.h>
20
21#include <memory>
22
23
25
26template <int dim, int spacedim>
28 : FE_DGVector<PolynomialsNedelec<dim>, dim, spacedim>(p, {mapping_nedelec})
29{}
30
31
32template <int dim, int spacedim>
33std::string
35{
36 // note that FETools::get_fe_by_name() depends on the
37 // particular format of the string
38 // this function returns, so they
39 // have to be kept in synch
40
41 std::ostringstream namebuf;
42 namebuf << "FE_DGNedelec<" << Utilities::dim_string(dim, spacedim) << ">("
43 << this->degree - 1 << ")";
44
45 return namebuf.str();
46}
47
48
49template <int dim, int spacedim>
55
56
57template <int dim, int spacedim>
58std::string
60{
61 // note that the
62 // FETools::get_fe_by_name
63 // function depends on the
64 // particular format of the string
65 // this function returns, so they
66 // have to be kept in synch
67
68 std::ostringstream namebuf;
69 namebuf << "FE_DGRaviartThomas<" << Utilities::dim_string(dim, spacedim)
70 << ">(" << this->degree - 1 << ")";
71
72 return namebuf.str();
73}
74
75
76template <int dim, int spacedim>
78 : FE_DGVector<PolynomialsBDM<dim>, dim, spacedim>(p, {mapping_bdm})
79{}
80
81
82template <int dim, int spacedim>
83std::string
85{
86 // note that the
87 // FETools::get_fe_by_name
88 // function depends on the
89 // particular format of the string
90 // this function returns, so they
91 // have to be kept in synch
92
93 std::ostringstream namebuf;
94 namebuf << "FE_DGBDM<" << Utilities::dim_string(dim, spacedim) << ">("
95 << this->degree - 1 << ")";
96
97 return namebuf.str();
98}
99
100
101#include "fe/fe_dg_vector.inst"
102
virtual std::string get_name() const override
FE_DGBDM(const unsigned int p)
virtual std::string get_name() const override
FE_DGNedelec(const unsigned int p)
virtual std::string get_name() const override
FE_DGRaviartThomas(const unsigned int p)
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:38
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:39
@ mapping_nedelec
Definition mapping.h:129
@ mapping_raviart_thomas
Definition mapping.h:134
@ mapping_bdm
Definition mapping.h:139
std::string dim_string(const int dim, const int spacedim)
Definition utilities.cc:547