Panzer Version of the Day
Loading...
Searching...
No Matches
Panzer_CoordinatesEvaluator.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_COORDINATESEVALUTOR_HPP
12#define PANZER_COORDINATESEVALUTOR_HPP
13
14#include "PanzerDiscFE_config.hpp"
15
16#include "Phalanx_Evaluator_Macros.hpp"
17#include "Phalanx_MDField.hpp"
18
20
21namespace panzer {
22
28template<typename EvalT, typename Traits>
30 :
31 public panzer::EvaluatorWithBaseImpl<Traits>,
32 public PHX::EvaluatorDerived<EvalT, Traits>
33{
34 public:
35
38 const Teuchos::ParameterList& p);
39
41 void
43 typename Traits::SetupData d,
45
47 void
49 typename Traits::EvalData d);
50
51 private:
52
53 using ScalarT = typename EvalT::ScalarT;
54
56
57 PHX::MDField<ScalarT,Cell,BASIS> coordinate;
58
59}; // end of class CoordinatesEvaluator
60
61
62}
63
64#endif
void evaluateFields(typename Traits::EvalData d)
Copies the selected spatial dimension of this workset's cell node coordinates into the field.
void postRegistrationSetup(typename Traits::SetupData d, PHX::FieldManager< Traits > &fm)
Sets up the field data handle used by evaluateFields(). Called once before the first evaluation.
PHX::MDField< ScalarT, Cell, BASIS > coordinate
Wrapper to PHX::EvaluatorWithBaseImpl that implements Panzer-specific helpers.
User-defined data passed to PHX::Evaluator::postRegistrationSetup() during the one-time setup phase.