VertexCFD  0.0-dev
VertexCFD_Closure_RADTimeDerivative.hpp
1 #ifndef VERTEXCFD_CLOSURE_RADTIMEDERIVATIVE_HPP
2 #define VERTEXCFD_CLOSURE_RADTIMEDERIVATIVE_HPP
3 
4 #include "rad_solver/species_properties/VertexCFD_ConstantSpeciesProperties.hpp"
5 #include "utils/VertexCFD_Utils_Constants.hpp"
6 
7 #include <Panzer_Dimension.hpp>
8 #include <Panzer_Evaluator_WithBaseImpl.hpp>
9 
10 #include <Phalanx_Evaluator_Derived.hpp>
11 #include <Phalanx_Evaluator_WithBaseImpl.hpp>
12 #include <Phalanx_FieldManager.hpp>
13 #include <Phalanx_config.hpp>
14 
15 #include <Kokkos_Core.hpp>
16 
17 namespace VertexCFD
18 {
19 namespace ClosureModel
20 {
21 //---------------------------------------------------------------------------//
22 // Time derivative term for reaction advection diffusion equations
23 //---------------------------------------------------------------------------//
24 template<class EvalType, class Traits>
25 class RADTimeDerivative : public panzer::EvaluatorWithBaseImpl<Traits>,
26  public PHX::EvaluatorDerived<EvalType, Traits>
27 {
28  public:
29  using scalar_type = typename EvalType::ScalarT;
30 
32  const panzer::IntegrationRule& ir,
34 
35  void evaluateFields(typename Traits::EvalData d) override;
36 
37  KOKKOS_INLINE_FUNCTION
38  void operator()(
39  const Kokkos::TeamPolicy<PHX::exec_space>::member_type& team) const;
40 
41  private:
42  int _num_species;
43 
44  public:
45  Kokkos::Array<PHX::MDField<scalar_type, panzer::Cell, panzer::Point>,
46  VertexCFD::Constants::MAX_NUM_VIEW>
47  _dqdt_rad;
48 
49  private:
50  Kokkos::Array<PHX::MDField<const scalar_type, panzer::Cell, panzer::Point>,
51  VertexCFD::Constants::MAX_NUM_VIEW>
52  _dxdt_species;
53 };
54 
55 //---------------------------------------------------------------------------//
56 
57 } // end namespace ClosureModel
58 } // namespace VertexCFD
59 
60 #endif // end VERTEXCFD_CLOSURE_RADTIMEDERIVATIVE_HPP
VertexCFD
Definition: tstMethodManufacturedSolutionBC.cpp:23
VertexCFD::SpeciesProperties::ConstantSpeciesProperties
Definition: VertexCFD_ConstantSpeciesProperties.hpp:17
VertexCFD::ClosureModel::RADTimeDerivative
Definition: VertexCFD_Closure_RADTimeDerivative.hpp:27