Panzer Version of the Day
Loading...
Searching...
No Matches
Panzer_DOF_BasisToBasis_decl.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_EVALUATOR_DOF_BASIS_TO_BASIS_DECL_HPP
12#define PANZER_EVALUATOR_DOF_BASIS_TO_BASIS_DECL_HPP
13
14#include <string>
15
16#include "Phalanx_Evaluator_Macros.hpp"
17#include "Phalanx_MDField.hpp"
18#include "Phalanx_DataLayout.hpp"
19#include "PanzerDiscFE_config.hpp"
20#include "Panzer_PureBasis.hpp"
21#include "Kokkos_DynRankView.hpp"
23
24namespace panzer {
25
27template <typename EvalT, typename TRAITST>
29 : public panzer::EvaluatorWithBaseImpl<TRAITST>,
30 public PHX::EvaluatorDerived<EvalT, TRAITST> {
31public:
32
39 DOF_BasisToBasis(const std::string & fieldName,
40 const PureBasis & sourceBasis,
41 const PureBasis & targetBasis);
42
43 void evaluateFields(typename TRAITST::EvalData workset);
44
45private:
46 typedef typename EvalT::ScalarT ScalarT;
47
49 PHX::MDField<const ScalarT> dof_source_coeff;
50
52 PHX::MDField<ScalarT> dof_target_coeff;
53
55 Kokkos::DynRankView<double,PHX::Device> basis;
56};
57
58}
59
60#endif
Interpolates DOF coefficients on one basis to points on another basis. This is used with nodal bases ...
void evaluateFields(typename TRAITST::EvalData workset)
PHX::MDField< const ScalarT > dof_source_coeff
Dependent field: DOF coefficient values at source basis.
Kokkos::DynRankView< double, PHX::Device > basis
Reference cell basis values at target points, replicated for each cell in workset.
PHX::MDField< ScalarT > dof_target_coeff
Evaluated field: DOF coefficient values at target basis.
Wrapper to PHX::EvaluatorWithBaseImpl that implements Panzer-specific helpers.
Description and data layouts associated with a particular basis.