43 #ifndef PANZER_BASIS_VALUES2_HPP
44 #define PANZER_BASIS_VALUES2_HPP
48 #include "Intrepid2_Basis.hpp"
49 #include "Intrepid2_Orientation.hpp"
62 template <
typename Scalar>
68 typedef PHX::MDField<Scalar,BASIS,IP,void,void,void,void,void,void>
Array_BasisIP;
72 typedef PHX::MDField<Scalar,BASIS,Dim,void,void,void,void,void,void>
Array_BasisDim;
75 BasisValues2(
const std::string & pre=
"",
bool allocArrays=
false,
bool buildWeighted=
false)
81 bool computeDerivatives=
true);
83 void evaluateValues(
const PHX::MDField<Scalar,IP,Dim,void,void,void,void,void,void> & cub_points,
84 const PHX::MDField<Scalar,Cell,IP,Dim,Dim,void,void,void,void> &
jac,
85 const PHX::MDField<Scalar,Cell,IP,void,void,void,void,void,void> & jac_det,
86 const PHX::MDField<Scalar,Cell,IP,Dim,Dim,void,void,void,void> & jac_inv,
87 const int in_num_cells = -1);
89 void evaluateValues(
const PHX::MDField<Scalar,IP,Dim,void,void,void,void,void,void> & cub_points,
90 const PHX::MDField<Scalar,Cell,IP,Dim,Dim,void,void,void,void> &
jac,
91 const PHX::MDField<Scalar,Cell,IP,void,void,void,void,void,void> & jac_det,
92 const PHX::MDField<Scalar,Cell,IP,Dim,Dim,void,void,void,void> & jac_inv,
93 const PHX::MDField<Scalar,Cell,IP> & weighted_measure,
94 const PHX::MDField<Scalar,Cell,NODE,Dim> & vertex_coordinates,
95 bool use_vertex_coordinates=
true,
96 const int in_num_cells = -1);
98 void evaluateValuesCV(
const PHX::MDField<Scalar,Cell,IP,Dim,void,void,void,void,void> & cell_cub_points,
99 const PHX::MDField<Scalar,Cell,IP,Dim,Dim,void,void,void,void> &
jac,
100 const PHX::MDField<Scalar,Cell,IP,void,void,void,void,void,void> & jac_det,
101 const PHX::MDField<Scalar,Cell,IP,Dim,Dim,void,void,void,void> & jac_inv);
103 void evaluateValues(
const PHX::MDField<Scalar,Cell,IP,Dim,void,void,void,void,void> & cub_points,
104 const PHX::MDField<Scalar,Cell,IP,Dim,Dim,void,void,void,void> &
jac,
105 const PHX::MDField<Scalar,Cell,IP,void,void,void,void,void,void> & jac_det,
106 const PHX::MDField<Scalar,Cell,IP,Dim,Dim,void,void,void,void> & jac_inv,
107 const PHX::MDField<Scalar,Cell,IP> & weighted_measure,
108 const PHX::MDField<Scalar,Cell,NODE,Dim> & vertex_coordinates,
109 bool use_vertex_coordinates=
true,
110 const int in_num_cells = -1);
115 void applyOrientations(
const PHX::MDField<const Scalar,Cell,BASIS> & orientations);
119 const int in_num_cells = -1);
173 std::vector<PHX::index_size_type>
ddims_;
178 void evaluateValues_Const(
const PHX::MDField<Scalar,Cell,IP,Dim,void,void,void,void,void> & cub_points,
179 const PHX::MDField<Scalar,Cell,IP,Dim,Dim,void,void,void,void> & jac_inv,
180 const PHX::MDField<Scalar,Cell,IP> & weighted_measure,
181 const int in_num_cells);
183 void evaluateValues_HVol(
const PHX::MDField<Scalar,Cell,IP,Dim,void,void,void,void,void> & cub_points,
184 const PHX::MDField<Scalar,Cell,IP,void,void,void,void,void,void> & jac_det,
185 const PHX::MDField<Scalar,Cell,IP,Dim,Dim,void,void,void,void> & jac_inv,
186 const PHX::MDField<Scalar,Cell,IP> & weighted_measure,
187 const int in_num_cells);
189 void evaluateValues_HGrad(
const PHX::MDField<Scalar,Cell,IP,Dim,void,void,void,void,void> & cub_points,
190 const PHX::MDField<Scalar,Cell,IP,Dim,Dim,void,void,void,void> & jac_inv,
191 const PHX::MDField<Scalar,Cell,IP> & weighted_measure,
192 const int in_num_cells);
194 void evaluateValues_HCurl(
const PHX::MDField<Scalar,Cell,IP,Dim,void,void,void,void,void> & cub_points,
195 const PHX::MDField<Scalar,Cell,IP,Dim,Dim,void,void,void,void> &
jac,
196 const PHX::MDField<Scalar,Cell,IP,void,void,void,void,void,void> & jac_det,
197 const PHX::MDField<Scalar,Cell,IP,Dim,Dim,void,void,void,void> & jac_inv,
198 const PHX::MDField<Scalar,Cell,IP> & weighted_measure,
199 const int in_num_cells);
201 void evaluateValues_HDiv(
const PHX::MDField<Scalar,Cell,IP,Dim,void,void,void,void,void> & cub_points,
202 const PHX::MDField<Scalar,Cell,IP,Dim,Dim,void,void,void,void> &
jac,
203 const PHX::MDField<Scalar,Cell,IP,void,void,void,void,void,void> & jac_det,
204 const PHX::MDField<Scalar,Cell,IP> & weighted_measure,
205 const int in_num_cells);
210 const int in_num_cells = -1);
Array_CellBasisIPDim weighted_curl_basis_vector
Array_BasisIP basis_ref_scalar
PHX::MDField< Scalar, Cell, BASIS, IP, Dim, void, void, void, void > Array_CellBasisIPDim
Array_BasisIPDim curl_basis_ref_vector
PHX::MDField< Scalar, Cell, BASIS, Dim, void, void, void, void, void > Array_CellBasisDim
void evaluateReferenceValues(const PHX::MDField< Scalar, IP, Dim > &cub_points, bool compute_derivatives, bool use_vertex_coordinates)
ArrayTraits< Scalar, PHX::MDField< Scalar, void, void, void, void, void, void, void, void > >::size_type size_type
Array_CellBasisIPDim curl_basis_vector
BasisValues2(const std::string &pre="", bool allocArrays=false, bool buildWeighted=false)
Array_CellBasisIP weighted_basis_scalar
Array_CellBasisIP basis_scalar
Array_CellBasisIP div_basis
void applyOrientations(const PHX::MDField< const Scalar, Cell, BASIS > &orientations)
Method to apply orientations to a basis values container.
void setExtendedDimensions(const std::vector< PHX::index_size_type > &ddims)
Array_CellBasisIPDim basis_vector
void evaluateValues(const PHX::MDField< Scalar, IP, Dim, void, void, void, void, void, void > &cub_points, const PHX::MDField< Scalar, Cell, IP, Dim, Dim, void, void, void, void > &jac, const PHX::MDField< Scalar, Cell, IP, void, void, void, void, void, void > &jac_det, const PHX::MDField< Scalar, Cell, IP, Dim, Dim, void, void, void, void > &jac_inv, const int in_num_cells=-1)
void evaluateBasisCoordinates(const PHX::MDField< Scalar, Cell, NODE, Dim > &vertex_coordinates, const int in_num_cells=-1)
PHX::MDField< Scalar, BASIS, IP, void, void, void, void, void, void > Array_BasisIP
Array_BasisIPDim basis_ref_vector
void evaluateValues_HVol(const PHX::MDField< Scalar, Cell, IP, Dim, void, void, void, void, void > &cub_points, const PHX::MDField< Scalar, Cell, IP, void, void, void, void, void, void > &jac_det, const PHX::MDField< Scalar, Cell, IP, Dim, Dim, void, void, void, void > &jac_inv, const PHX::MDField< Scalar, Cell, IP > &weighted_measure, const int in_num_cells)
std::vector< PHX::index_size_type > ddims_
void evaluateValues_HGrad(const PHX::MDField< Scalar, Cell, IP, Dim, void, void, void, void, void > &cub_points, const PHX::MDField< Scalar, Cell, IP, Dim, Dim, void, void, void, void > &jac_inv, const PHX::MDField< Scalar, Cell, IP > &weighted_measure, const int in_num_cells)
void evaluateValues_Const(const PHX::MDField< Scalar, Cell, IP, Dim, void, void, void, void, void > &cub_points, const PHX::MDField< Scalar, Cell, IP, Dim, Dim, void, void, void, void > &jac_inv, const PHX::MDField< Scalar, Cell, IP > &weighted_measure, const int in_num_cells)
PHX::MDField< Scalar, BASIS, Dim, void, void, void, void, void, void > Array_BasisDim
Teuchos::RCP< const panzer::BasisIRLayout > basis_layout
Teuchos::RCP< Intrepid2::Basis< PHX::Device::execution_space, Scalar, Scalar > > intrepid_basis
PureBasis::EElementSpace getElementSpace() const
void evaluateValues_HDiv(const PHX::MDField< Scalar, Cell, IP, Dim, void, void, void, void, void > &cub_points, const PHX::MDField< Scalar, Cell, IP, Dim, Dim, void, void, void, void > &jac, const PHX::MDField< Scalar, Cell, IP, void, void, void, void, void, void > &jac_det, const PHX::MDField< Scalar, Cell, IP > &weighted_measure, const int in_num_cells)
bool references_evaluated
Array_CellBasisIP weighted_curl_basis_scalar
Array_BasisIP div_basis_ref
Array_CellBasisDim basis_coordinates
Array_CellBasisIPDim weighted_grad_basis
Array_CellBasisIPDim weighted_basis_vector
void setupArrays(const Teuchos::RCP< const panzer::BasisIRLayout > &basis, bool computeDerivatives=true)
Sizes/allocates memory for arrays.
PHX::MDField< Scalar, BASIS, IP, Dim, void, void, void, void, void > Array_BasisIPDim
Array_CellBasisIPDim grad_basis
Array_CellBasisIP weighted_div_basis
PHX::MDField< Scalar, Cell, BASIS, IP, void, void, void, void, void > Array_CellBasisIP
Array_BasisDim basis_coordinates_ref
void evaluateValuesCV(const PHX::MDField< Scalar, Cell, IP, Dim, void, void, void, void, void > &cell_cub_points, const PHX::MDField< Scalar, Cell, IP, Dim, Dim, void, void, void, void > &jac, const PHX::MDField< Scalar, Cell, IP, void, void, void, void, void, void > &jac_det, const PHX::MDField< Scalar, Cell, IP, Dim, Dim, void, void, void, void > &jac_inv)
Array_BasisIP curl_basis_ref_scalar
void evaluateValues_HCurl(const PHX::MDField< Scalar, Cell, IP, Dim, void, void, void, void, void > &cub_points, const PHX::MDField< Scalar, Cell, IP, Dim, Dim, void, void, void, void > &jac, const PHX::MDField< Scalar, Cell, IP, void, void, void, void, void, void > &jac_det, const PHX::MDField< Scalar, Cell, IP, Dim, Dim, void, void, void, void > &jac_inv, const PHX::MDField< Scalar, Cell, IP > &weighted_measure, const int in_num_cells)
Array_BasisIPDim grad_basis_ref
Array_CellBasisIP curl_basis_scalar
PHX::MDField< Scalar > ArrayDynamic