Panzer
Version of the Day
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
disc-fe
src
Panzer_BasisInformation.hpp
Go to the documentation of this file.
1
// @HEADER
2
// *****************************************************************************
3
// Panzer: A partial differential equation assembly
4
// engine for strongly coupled complex multiphysics systems
5
//
6
// Copyright 2011 NTESS and the Panzer contributors.
7
// SPDX-License-Identifier: BSD-3-Clause
8
// *****************************************************************************
9
// @HEADER
10
11
#ifndef PANZER_BasisInformation_HPP
12
#define PANZER_BasisInformation_HPP
13
14
#include <string>
15
#include "
Teuchos_RCP.hpp
"
16
17
#include "Shards_CellTopology.hpp"
18
19
namespace
panzer {
20
22
class
BasisInformation
{
23
24
public
:
25
typedef
enum
{
HGRAD
=0,
HCURL
=1,
HDIV
=2,
CONST
=3 }
EElementSpace
;
26
32
BasisInformation
(
const
std::string & basis_type,
const
int
basis_order,
33
const
shards::CellTopology & cell_topo);
34
36
std::string
type
()
const
37
{
return
basis_type_
; }
38
40
int
order
()
const
41
{
return
basis_order_
; }
42
43
const
shards::CellTopology &
getCellTopology
()
const
44
{
return
topology_
; }
45
47
int
dimension
()
const
48
{
return
topology_
.getDimension(); }
49
50
EElementSpace
getElementSpace
()
const
51
{
return
element_space_
; }
52
53
bool
requiresOrientations
()
const
54
{
return
getElementSpace
()==
HCURL
||
getElementSpace
()==
HDIV
|| (
getElementSpace
()==
HGRAD
&&
basis_order_
> 2) ; }
55
56
bool
supportsGrad
()
const
57
{
return
getElementSpace
()==
HGRAD
; }
58
59
bool
supportsCurl
()
const
60
{
return
getElementSpace
()==
HCURL
; }
61
62
bool
supportsDiv
()
const
63
{
return
getElementSpace
()==
HDIV
; }
64
65
bool
isVectorBasis
()
const
66
{
return
getElementSpace
()==
HCURL
||
getElementSpace
()==
HDIV
; }
67
68
bool
isScalarBasis
()
const
69
{
return
getElementSpace
()==
HGRAD
||
getElementSpace
()==
CONST
; }
70
71
private
:
72
73
shards::CellTopology
topology_
;
74
75
std::string
basis_type_
;
76
int
basis_order_
;
77
78
EElementSpace
element_space_
;
79
};
80
81
}
82
83
#endif
panzer::BasisInformation::CONST
Definition:
Panzer_BasisInformation.hpp:25
panzer::BasisInformation::basis_type_
std::string basis_type_
Definition:
Panzer_BasisInformation.hpp:75
panzer::BasisInformation::supportsGrad
bool supportsGrad() const
Definition:
Panzer_BasisInformation.hpp:56
panzer::BasisInformation::topology_
shards::CellTopology topology_
Definition:
Panzer_BasisInformation.hpp:73
panzer::BasisInformation::HDIV
Definition:
Panzer_BasisInformation.hpp:25
panzer::BasisInformation::isVectorBasis
bool isVectorBasis() const
Definition:
Panzer_BasisInformation.hpp:65
panzer::BasisInformation::basis_order_
int basis_order_
Definition:
Panzer_BasisInformation.hpp:76
panzer::BasisInformation::HGRAD
Definition:
Panzer_BasisInformation.hpp:25
panzer::BasisInformation::getCellTopology
const shards::CellTopology & getCellTopology() const
Definition:
Panzer_BasisInformation.hpp:43
panzer::BasisInformation::BasisInformation
BasisInformation(const std::string &basis_type, const int basis_order, const shards::CellTopology &cell_topo)
Definition:
Panzer_BasisInformation.cpp:20
panzer::BasisInformation::requiresOrientations
bool requiresOrientations() const
Definition:
Panzer_BasisInformation.hpp:53
panzer::BasisInformation::isScalarBasis
bool isScalarBasis() const
Definition:
Panzer_BasisInformation.hpp:68
panzer::BasisInformation::getElementSpace
EElementSpace getElementSpace() const
Definition:
Panzer_BasisInformation.hpp:50
panzer::BasisInformation::order
int order() const
Returns the polynomial order of the basis.
Definition:
Panzer_BasisInformation.hpp:40
panzer::BasisInformation
Description and data layouts associated with a particular basis.
Definition:
Panzer_BasisInformation.hpp:22
panzer::BasisInformation::HCURL
Definition:
Panzer_BasisInformation.hpp:25
panzer::BasisInformation::type
std::string type() const
Returns the basis type.
Definition:
Panzer_BasisInformation.hpp:36
panzer::BasisInformation::supportsDiv
bool supportsDiv() const
Definition:
Panzer_BasisInformation.hpp:62
panzer::BasisInformation::EElementSpace
EElementSpace
Definition:
Panzer_BasisInformation.hpp:25
panzer::BasisInformation::element_space_
EElementSpace element_space_
Definition:
Panzer_BasisInformation.hpp:78
panzer::BasisInformation::supportsCurl
bool supportsCurl() const
Definition:
Panzer_BasisInformation.hpp:59
Teuchos_RCP.hpp
panzer::BasisInformation::dimension
int dimension() const
Returns the dimension of the basis from the topology.
Definition:
Panzer_BasisInformation.hpp:47
Generated on Fri Dec 20 2024 09:16:50 for Panzer by
1.8.5