dune-localfunctions
2.11
Toggle main menu visibility
Loading...
Searching...
No Matches
dune
localfunctions
lagrange
q2.hh
Go to the documentation of this file.
1
// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2
// vi: set et ts=4 sw=2 sts=2:
3
// SPDX-FileCopyrightInfo: Copyright © DUNE Project contributors, see file LICENSE.md in module root
4
// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
5
#ifndef DUNE_Q2_LOCALFINITEELEMENT_HH
6
#define DUNE_Q2_LOCALFINITEELEMENT_HH
7
8
#include <dune/common/typetraits.hh>
9
#include <dune/geometry/type.hh>
10
11
#include <
dune/localfunctions/common/localfiniteelementtraits.hh
>
12
#include <
dune/localfunctions/common/localtoglobaladaptors.hh
>
13
14
#include <
dune/localfunctions/lagrange/lagrangecube.hh
>
15
#include <
dune/localfunctions/lagrange/lagrangesimplex.hh
>
16
17
namespace
Dune
18
{
20
25
template
<
class
Geometry,
class
RF>
26
class
Q2FiniteElementFactory
:
27
public
ScalarLocalToGlobalFiniteElementAdaptorFactory
<
28
typename std::conditional<Geometry::mydimension == 1,
29
LagrangeSimplexLocalFiniteElement<typename Geometry::ctype, RF, 1, 2>,
30
LagrangeCubeLocalFiniteElement<typename Geometry::ctype, RF, Geometry::mydimension, 2> >::type,
31
Geometry>
32
{
33
typedef
typename
std::conditional<Geometry::mydimension == 1,
34
LagrangeSimplexLocalFiniteElement<typename Geometry::ctype, RF, 1, 2>
,
35
LagrangeCubeLocalFiniteElement<typename Geometry::ctype, RF, Geometry::mydimension, 2>
>::type LFE;
36
typedef
ScalarLocalToGlobalFiniteElementAdaptorFactory<LFE, Geometry>
Base;
37
38
static
const
LFE lfe;
39
40
public
:
42
Q2FiniteElementFactory
() : Base(lfe) {}
43
};
44
45
template
<
class
Geometry,
class
RF>
46
const
typename
Q2FiniteElementFactory<Geometry, RF>::LFE
47
Q2FiniteElementFactory<Geometry, RF>::lfe;
48
}
49
50
#endif
localfiniteelementtraits.hh
localtoglobaladaptors.hh
lagrangecube.hh
lagrangesimplex.hh
Dune
Definition
bdfmcube.hh:18
Dune::ScalarLocalToGlobalFiniteElementAdaptorFactory< std::conditional< Geometry::mydimension==1, LagrangeSimplexLocalFiniteElement< Geometry::ctype, RF, 1, 2 >, LagrangeCubeLocalFiniteElement< Geometry::ctype, RF, Geometry::mydimension, 2 > >::type, Geometry >::ScalarLocalToGlobalFiniteElementAdaptorFactory
ScalarLocalToGlobalFiniteElementAdaptorFactory(const std::conditional< Geometry::mydimension==1, LagrangeSimplexLocalFiniteElement< Geometry::ctype, RF, 1, 2 >, LagrangeCubeLocalFiniteElement< Geometry::ctype, RF, Geometry::mydimension, 2 > >::type &localFE_)
Definition
localtoglobaladaptors.hh:261
Dune::LagrangeCubeLocalFiniteElement
Lagrange finite element for cubes with arbitrary compile-time dimension and polynomial order.
Definition
lagrangecube.hh:709
Dune::LagrangeSimplexLocalFiniteElement
Lagrange finite element for simplices with arbitrary compile-time dimension and polynomial order.
Definition
lagrangesimplex.hh:790
Dune::Q2FiniteElementFactory::Q2FiniteElementFactory
Q2FiniteElementFactory()
default constructor
Definition
q2.hh:42
Generated by
1.17.0