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\}}\)
fe_dg_vector.cc
Go to the documentation of this file.
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2010 - 2019 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 
22 
23 #include <deal.II/fe/fe_dg_vector.templates.h>
24 
25 
27 
28 template <int dim, int spacedim>
30  : FE_DGVector<PolynomialsNedelec<dim>, dim, spacedim>(p, {mapping_nedelec})
31 {}
32 
33 
34 template <int dim, int spacedim>
35 std::string
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>
53  : FE_DGVector<PolynomialsRaviartThomas<dim>, dim, spacedim>(
54  p,
56 {}
57 
58 
59 template <int dim, int spacedim>
60 std::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 
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
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 
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
polynomials_abf.h
mapping_raviart_thomas
@ mapping_raviart_thomas
Definition: mapping.h:118
PolynomialsRaviartThomas
Definition: polynomials_raviart_thomas.h:50
polynomials_bdm.h
FE_DGNedelec::FE_DGNedelec
FE_DGNedelec(const unsigned int p)
Definition: fe_dg_vector.cc:29
Utilities::dim_string
std::string dim_string(const int dim, const int spacedim)
Definition: utilities.cc:559
DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:358
mapping_bdm
@ mapping_bdm
Definition: mapping.h:123
polynomials_raviart_thomas.h
FE_DGBDM::FE_DGBDM
FE_DGBDM(const unsigned int p)
Definition: fe_dg_vector.cc:79
mapping_nedelec
@ mapping_nedelec
Definition: mapping.h:113
FE_DGRaviartThomas::FE_DGRaviartThomas
FE_DGRaviartThomas(const unsigned int p)
Definition: fe_dg_vector.cc:52
PolynomialsBDM
Definition: polynomials_bdm.h:101
memory.h
DEAL_II_NAMESPACE_CLOSE
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:359
PolynomialsNedelec
Definition: polynomials_nedelec.h:53
polynomials_nedelec.h