Reference documentation for deal.II version GIT relicensing-362-gab68047079 2024-04-11 17:50:02+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: LGPL-2.1-or-later
4// Copyright (C) 2010 - 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
20
21#include <deal.II/fe/fe_dg_vector.templates.h>
22
23#include <memory>
24
25
27
28template <int dim, int spacedim>
30 : FE_DGVector<PolynomialsNedelec<dim>, dim, spacedim>(p, {mapping_nedelec})
31{}
32
33
34template <int dim, int spacedim>
35std::string
37{
38 // note that FETools::get_fe_by_name() depends on the
39 // particular format of the string
40 // this function returns, so they
41 // have to be kept in synch
42
43 std::ostringstream namebuf;
44 namebuf << "FE_DGNedelec<" << Utilities::dim_string(dim, spacedim) << ">("
45 << this->degree - 1 << ")";
46
47 return namebuf.str();
48}
49
50
51template <int dim, int spacedim>
57
58
59template <int dim, int spacedim>
60std::string
62{
63 // note that the
64 // FETools::get_fe_by_name
65 // function depends on the
66 // particular format of the string
67 // this function returns, so they
68 // have to be kept in synch
69
70 std::ostringstream namebuf;
71 namebuf << "FE_DGRaviartThomas<" << Utilities::dim_string(dim, spacedim)
72 << ">(" << this->degree - 1 << ")";
73
74 return namebuf.str();
75}
76
77
78template <int dim, int spacedim>
80 : FE_DGVector<PolynomialsBDM<dim>, dim, spacedim>(p, {mapping_bdm})
81{}
82
83
84template <int dim, int spacedim>
85std::string
87{
88 // note that the
89 // FETools::get_fe_by_name
90 // function depends on the
91 // particular format of the string
92 // this function returns, so they
93 // have to be kept in synch
94
95 std::ostringstream namebuf;
96 namebuf << "FE_DGBDM<" << Utilities::dim_string(dim, spacedim) << ">("
97 << this->degree - 1 << ")";
98
99 return namebuf.str();
100}
101
102
103#include "fe_dg_vector.inst"
104
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:502
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:503
@ mapping_nedelec
Definition mapping.h:127
@ mapping_raviart_thomas
Definition mapping.h:132
@ mapping_bdm
Definition mapping.h:137
std::string dim_string(const int dim, const int spacedim)
Definition utilities.cc:555