Panzer Version of the Day
Loading...
Searching...
No Matches
Panzer_ConstantFlux_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_CONSTANT_FLUX_DECL_HPP
12#define PANZER_EVALUATOR_CONSTANT_FLUX_DECL_HPP
13
14#include "PanzerDiscFE_config.hpp"
15
16#include "Phalanx_Evaluator_Macros.hpp"
17#include "Phalanx_MDField.hpp"
18
20
21namespace panzer {
22
30template<typename EvalT, typename Traits>
32 :
33 public panzer::EvaluatorWithBaseImpl<Traits>,
34 public PHX::EvaluatorDerived<EvalT, Traits>
35{
36 public:
37
40 const Teuchos::ParameterList& p);
41
43 void
45 typename Traits::SetupData d,
47
49 void
51 typename Traits::EvalData d);
52
53 private:
54
55 using ScalarT = typename EvalT::ScalarT;
56
57 std::vector<ScalarT> values;
58
59 PHX::MDField<ScalarT> flux;
60
61}; // end of class ConstantFlux
62
63
64}
65
66#endif
typename EvalT::ScalarT ScalarT
PHX::MDField< ScalarT > flux
void postRegistrationSetup(typename Traits::SetupData d, PHX::FieldManager< Traits > &fm)
Sets the flux field to the constant values given at construction. Called once before the first evalua...
void evaluateFields(typename Traits::EvalData d)
No-op; the flux field is already set by postRegistrationSetup().
std::vector< ScalarT > values
Wrapper to PHX::EvaluatorWithBaseImpl that implements Panzer-specific helpers.
User-defined data passed to PHX::Evaluator::postRegistrationSetup() during the one-time setup phase.