Reference documentation for deal.II version 9.1.1
\(\newcommand{\dealcoloneq}{\mathrel{\vcenter{:}}=}\)
source
fe
fe_dg_vector.cc
1
// ---------------------------------------------------------------------
2
//
3
// Copyright (C) 2010 - 2018 by the deal.II authors
4
//
5
// This file is part of the deal.II library.
6
//
7
// The deal.II library is free software; you can use it, redistribute
8
// it, and/or modify it under the terms of the GNU Lesser General
9
// Public License as published by the Free Software Foundation; either
10
// version 2.1 of the License, or (at your option) any later version.
11
// The full text of the license can be found in the file LICENSE.md at
12
// the top level directory of deal.II.
13
//
14
// ---------------------------------------------------------------------
15
16
17
#include <deal.II/base/polynomials_abf.h>
18
#include <deal.II/base/polynomials_bdm.h>
19
#include <deal.II/base/polynomials_nedelec.h>
20
#include <deal.II/base/polynomials_raviart_thomas.h>
21
#include <deal.II/base/std_cxx14/memory.h>
22
23
#include <deal.II/fe/fe_dg_vector.templates.h>
24
25
26
DEAL_II_NAMESPACE_OPEN
27
28
template
<
int
dim,
int
spacedim>
29
FE_DGNedelec<dim, spacedim>::FE_DGNedelec
(
const
unsigned
int
p)
30
:
FE_DGVector
<
PolynomialsNedelec
<dim>, dim, spacedim>(p,
mapping_nedelec
)
31
{}
32
33
34
template
<
int
dim,
int
spacedim>
35
std::string
36
FE_DGNedelec<dim, spacedim>::get_name
()
const
37
{
38
// note that the FETools::get_fe_by_nam function 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
51
template
<
int
dim,
int
spacedim>
52
FE_DGRaviartThomas<dim, spacedim>::FE_DGRaviartThomas
(
const
unsigned
int
p)
53
:
FE_DGVector
<
PolynomialsRaviartThomas
<dim>, dim, spacedim>(
54
p,
55
mapping_raviart_thomas
)
56
{}
57
58
59
template
<
int
dim,
int
spacedim>
60
std::string
61
FE_DGRaviartThomas<dim, spacedim>::get_name
()
const
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
78
template
<
int
dim,
int
spacedim>
79
FE_DGBDM<dim, spacedim>::FE_DGBDM
(
const
unsigned
int
p)
80
:
FE_DGVector
<
PolynomialsBDM
<dim>, dim, spacedim>(p,
mapping_bdm
)
81
{}
82
83
84
template
<
int
dim,
int
spacedim>
85
std::string
86
FE_DGBDM<dim, spacedim>::get_name
()
const
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
105
DEAL_II_NAMESPACE_CLOSE
mapping_raviart_thomas
Definition:
mapping.h:117
FE_DGBDM::get_name
virtual std::string get_name() const override
Definition:
fe_dg_vector.cc:86
FE_DGRaviartThomas::get_name
virtual std::string get_name() const override
Definition:
fe_dg_vector.cc:61
FE_DGVector
Definition:
fe_dg_vector.h:55
FE_DGNedelec::get_name
virtual std::string get_name() const override
Definition:
fe_dg_vector.cc:36
PolynomialsRaviartThomas
Definition:
polynomials_raviart_thomas.h:49
FE_DGNedelec::FE_DGNedelec
FE_DGNedelec(const unsigned int p)
Definition:
fe_dg_vector.cc:29
mapping_bdm
Definition:
mapping.h:122
Utilities::dim_string
std::string dim_string(const int dim, const int spacedim)
Definition:
utilities.cc:457
mapping_nedelec
Definition:
mapping.h:112
FE_DGBDM::FE_DGBDM
FE_DGBDM(const unsigned int p)
Definition:
fe_dg_vector.cc:79
FE_DGRaviartThomas::FE_DGRaviartThomas
FE_DGRaviartThomas(const unsigned int p)
Definition:
fe_dg_vector.cc:52
PolynomialsBDM
Definition:
polynomials_bdm.h:100
PolynomialsNedelec
Definition:
polynomials_nedelec.h:52
Generated by
1.8.16