Panzer
Version of the Day
Toggle main menu visibility
Loading...
Searching...
No Matches
disc-fe
src
Panzer_BasisIRLayout.hpp
Go to the documentation of this file.
1
// @HEADER
2
// ***********************************************************************
3
//
4
// Panzer: A partial differential equation assembly
5
// engine for strongly coupled complex multiphysics systems
6
// Copyright (2011) Sandia Corporation
7
//
8
// Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
9
// the U.S. Government retains certain rights in this software.
10
//
11
// Redistribution and use in source and binary forms, with or without
12
// modification, are permitted provided that the following conditions are
13
// met:
14
//
15
// 1. Redistributions of source code must retain the above copyright
16
// notice, this list of conditions and the following disclaimer.
17
//
18
// 2. Redistributions in binary form must reproduce the above copyright
19
// notice, this list of conditions and the following disclaimer in the
20
// documentation and/or other materials provided with the distribution.
21
//
22
// 3. Neither the name of the Corporation nor the names of the
23
// contributors may be used to endorse or promote products derived from
24
// this software without specific prior written permission.
25
//
26
// THIS SOFTWARE IS PROVIDED BY SANDIA CORPORATION "AS IS" AND ANY
27
// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
29
// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SANDIA CORPORATION OR THE
30
// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
31
// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
32
// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
33
// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
34
// LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
35
// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
36
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
37
//
38
// Questions? Contact Roger P. Pawlowski (rppawlo@sandia.gov) and
39
// Eric C. Cyr (eccyr@sandia.gov)
40
// ***********************************************************************
41
// @HEADER
42
43
44
#ifndef PANZER_BASIS_HPP
45
#define PANZER_BASIS_HPP
46
47
#include <string>
48
#include "Teuchos_RCP.hpp"
49
#include "Phalanx_DataLayout.hpp"
50
#include "Kokkos_DynRankView.hpp"
51
#include "Intrepid2_Basis.hpp"
52
53
#include "
Panzer_Dimension.hpp
"
54
#include "
Panzer_PureBasis.hpp
"
55
#include "
Panzer_CellTopologyInfo.hpp
"
56
57
namespace
panzer
{
58
59
class
PointRule
;
60
class
CellTopologyInfo
;
61
class
BasisIRLayout
;
62
64
Teuchos::RCP<panzer::BasisIRLayout>
65
basisIRLayout
(std::string basis_type,
const
int
basis_order,
const
PointRule
& pt_rule);
66
68
Teuchos::RCP<panzer::BasisIRLayout>
69
basisIRLayout
(
const
Teuchos::RCP<const PureBasis> & b,
const
PointRule
& pt_rule);
70
71
class
BasisIRLayout
{
72
73
public
:
74
75
BasisIRLayout
(std::string basis_type,
const
int
basis_order,
const
PointRule
& int_rule);
76
BasisIRLayout
(
const
Teuchos::RCP<const PureBasis> & b,
const
PointRule
& int_rule);
77
78
void
setup
(
const
panzer::PointRule
& int_rule);
79
80
int
cardinality
()
const
;
81
82
int
numCells
()
const
;
83
84
int
numPoints
()
const
;
85
86
int
dimension
()
const
;
87
89
std::string
name
()
const
;
90
91
std::string
fieldName
()
const
;
92
93
std::string
fieldNameD1
()
const
;
94
95
std::string
fieldNameD2
()
const
;
96
97
Teuchos::RCP< Intrepid2::Basis<PHX::Device::execution_space,double,double> >
98
getIntrepid2Basis
()
const
;
99
100
Teuchos::RCP<const PureBasis>
getBasis
()
const
;
101
102
void
print
(std::ostream & os)
const
;
103
104
Teuchos::RCP<const CellTopologyInfo>
getCellTopologyInfo
()
const
105
{
return
cell_topo_info
; }
106
107
108
public
:
109
111
Teuchos::RCP<PHX::DataLayout>
basis_ref
;
113
Teuchos::RCP<PHX::DataLayout>
basis
;
115
Teuchos::RCP<PHX::DataLayout>
basis_grad_ref
;
117
Teuchos::RCP<PHX::DataLayout>
basis_grad
;
119
Teuchos::RCP<PHX::DataLayout>
basis_D2_ref
;
121
Teuchos::RCP<PHX::DataLayout>
basis_D2
;
122
124
Teuchos::RCP<PHX::DataLayout>
functional
;
126
Teuchos::RCP<PHX::DataLayout>
functional_grad
;
128
Teuchos::RCP<PHX::DataLayout>
functional_D2
;
129
130
private
:
131
std::string
basis_name_
;
132
int
num_cells_
;
133
int
num_points_
;
134
int
dimension_
;
135
136
Teuchos::RCP<const PureBasis>
basis_data_
;
137
138
Teuchos::RCP<const CellTopologyInfo>
cell_topo_info
;
139
};
140
141
typedef
std::pair<std::string,Teuchos::RCP<panzer::BasisIRLayout> >
StrBasisPair
;
142
144
struct
StrBasisComp
{
145
bool
operator()
(
const
StrBasisPair
& lhs,
const
StrBasisPair
& rhs)
const
146
{
return
lhs.first<rhs.first;}
147
};
148
149
}
150
151
#endif
Panzer_CellTopologyInfo.hpp
Panzer_Dimension.hpp
Panzer_PureBasis.hpp
panzer::BasisIRLayout
Definition
Panzer_BasisIRLayout.hpp:71
panzer::BasisIRLayout::basis_grad
Teuchos::RCP< PHX::DataLayout > basis_grad
<Cell,BASIS,IP,Dim>
Definition
Panzer_BasisIRLayout.hpp:117
panzer::BasisIRLayout::basis_data_
Teuchos::RCP< const PureBasis > basis_data_
Definition
Panzer_BasisIRLayout.hpp:136
panzer::BasisIRLayout::name
std::string name() const
Unique key for workset indexing composed of basis name and point rule name.
Definition
Panzer_BasisIRLayout.cpp:156
panzer::BasisIRLayout::fieldNameD2
std::string fieldNameD2() const
Definition
Panzer_BasisIRLayout.cpp:171
panzer::BasisIRLayout::functional
Teuchos::RCP< PHX::DataLayout > functional
<Cell,Basis>
Definition
Panzer_BasisIRLayout.hpp:124
panzer::BasisIRLayout::getCellTopologyInfo
Teuchos::RCP< const CellTopologyInfo > getCellTopologyInfo() const
Definition
Panzer_BasisIRLayout.hpp:104
panzer::BasisIRLayout::BasisIRLayout
BasisIRLayout(const Teuchos::RCP< const PureBasis > &b, const PointRule &int_rule)
panzer::BasisIRLayout::getBasis
Teuchos::RCP< const PureBasis > getBasis() const
Definition
Panzer_BasisIRLayout.cpp:183
panzer::BasisIRLayout::cell_topo_info
Teuchos::RCP< const CellTopologyInfo > cell_topo_info
Definition
Panzer_BasisIRLayout.hpp:138
panzer::BasisIRLayout::basis_D2
Teuchos::RCP< PHX::DataLayout > basis_D2
<Cell,BASIS,IP,Dim,Dim>
Definition
Panzer_BasisIRLayout.hpp:121
panzer::BasisIRLayout::basis_name_
std::string basis_name_
Definition
Panzer_BasisIRLayout.hpp:131
panzer::BasisIRLayout::numCells
int numCells() const
Definition
Panzer_BasisIRLayout.cpp:141
panzer::BasisIRLayout::dimension
int dimension() const
Definition
Panzer_BasisIRLayout.cpp:151
panzer::BasisIRLayout::functional_D2
Teuchos::RCP< PHX::DataLayout > functional_D2
<Cell,Basis,Dim,Dim>
Definition
Panzer_BasisIRLayout.hpp:128
panzer::BasisIRLayout::getIntrepid2Basis
Teuchos::RCP< Intrepid2::Basis< PHX::Device::execution_space, double, double > > getIntrepid2Basis() const
Definition
Panzer_BasisIRLayout.cpp:177
panzer::BasisIRLayout::basis_D2_ref
Teuchos::RCP< PHX::DataLayout > basis_D2_ref
<BASIS,IP,Dim,Dim>
Definition
Panzer_BasisIRLayout.hpp:119
panzer::BasisIRLayout::cardinality
int cardinality() const
Definition
Panzer_BasisIRLayout.cpp:136
panzer::BasisIRLayout::BasisIRLayout
BasisIRLayout(std::string basis_type, const int basis_order, const PointRule &int_rule)
Definition
Panzer_BasisIRLayout.cpp:71
panzer::BasisIRLayout::num_points_
int num_points_
Definition
Panzer_BasisIRLayout.hpp:133
panzer::BasisIRLayout::basis_grad_ref
Teuchos::RCP< PHX::DataLayout > basis_grad_ref
<BASIS,IP,Dim>
Definition
Panzer_BasisIRLayout.hpp:115
panzer::BasisIRLayout::fieldNameD1
std::string fieldNameD1() const
Definition
Panzer_BasisIRLayout.cpp:166
panzer::BasisIRLayout::basis_ref
Teuchos::RCP< PHX::DataLayout > basis_ref
<BASIS,IP>
Definition
Panzer_BasisIRLayout.hpp:111
panzer::BasisIRLayout::fieldName
std::string fieldName() const
Definition
Panzer_BasisIRLayout.cpp:161
panzer::BasisIRLayout::dimension_
int dimension_
Definition
Panzer_BasisIRLayout.hpp:134
panzer::BasisIRLayout::basis
Teuchos::RCP< PHX::DataLayout > basis
<Cell,BASIS,IP>
Definition
Panzer_BasisIRLayout.hpp:113
panzer::BasisIRLayout::setup
void setup(const panzer::PointRule &int_rule)
Definition
Panzer_BasisIRLayout.cpp:86
panzer::BasisIRLayout::num_cells_
int num_cells_
Definition
Panzer_BasisIRLayout.hpp:132
panzer::BasisIRLayout::print
void print(std::ostream &os) const
Definition
Panzer_BasisIRLayout.cpp:188
panzer::BasisIRLayout::functional_grad
Teuchos::RCP< PHX::DataLayout > functional_grad
<Cell,Basis,Dim>
Definition
Panzer_BasisIRLayout.hpp:126
panzer::BasisIRLayout::numPoints
int numPoints() const
Definition
Panzer_BasisIRLayout.cpp:146
panzer::CellTopologyInfo
Definition
Panzer_CellTopologyInfo.hpp:64
panzer::PointRule
Definition
Panzer_PointRule.hpp:61
panzer
Computes .
Definition
Panzer_BasisValues_Evaluator_decl.hpp:54
panzer::basisIRLayout
Teuchos::RCP< panzer::BasisIRLayout > basisIRLayout(std::string basis_type, const int basis_order, const PointRule &pt_rule)
Nonmember constructor.
Definition
Panzer_BasisIRLayout.cpp:55
panzer::StrBasisPair
std::pair< std::string, Teuchos::RCP< panzer::BasisIRLayout > > StrBasisPair
Definition
Panzer_BasisIRLayout.hpp:141
panzer::StrBasisComp
Simple binary comparison class to help with sorting.
Definition
Panzer_BasisIRLayout.hpp:144
panzer::StrBasisComp::operator()
bool operator()(const StrBasisPair &lhs, const StrBasisPair &rhs) const
Definition
Panzer_BasisIRLayout.hpp:145
Generated by
1.17.0