VertexCFD  0.0-dev
VertexCFD_Closure_RADFissionSource.hpp
1 #ifndef VERTEXCFD_CLOSURE_RADFISSIONSOURCE_HPP
2 #define VERTEXCFD_CLOSURE_RADFISSIONSOURCE_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 #include <string>
18 
19 namespace VertexCFD
20 {
21 namespace ClosureModel
22 {
23 //---------------------------------------------------------------------------//
24 // Fission source term for reaction advection diffusion equations
25 //---------------------------------------------------------------------------//
26 template<class EvalType, class Traits>
27 class RADFissionSource : public panzer::EvaluatorWithBaseImpl<Traits>,
28  public PHX::EvaluatorDerived<EvalType, Traits>
29 {
30  public:
31  using scalar_type = typename EvalType::ScalarT;
32 
34  const panzer::IntegrationRule& ir,
36  const std::string& neutron_flux_name);
37 
38  void evaluateFields(typename Traits::EvalData d) override;
39 
40  KOKKOS_INLINE_FUNCTION
41  void operator()(
42  const Kokkos::TeamPolicy<PHX::exec_space>::member_type& team) const;
43 
44  private:
45  int _num_species;
46 
47  public:
48  Kokkos::Array<PHX::MDField<scalar_type, panzer::Cell, panzer::Point>,
49  VertexCFD::Constants::MAX_NUM_VIEW>
50  _fission_source;
51 
52  private:
53  PHX::MDField<const scalar_type, panzer::Cell, panzer::Point> _neutron_flux;
54  Kokkos::View<double*, Kokkos::LayoutLeft, PHX::mem_space> _gamma;
55  double _xs;
56  double _avagadro;
57 };
58 
59 //---------------------------------------------------------------------------//
60 
61 } // end namespace ClosureModel
62 } // end namespace VertexCFD
63 
64 #endif // end VERTEXCFD_CLOSURE_RADFISSIONSOURCE_HPP
VertexCFD
Definition: tstMethodManufacturedSolutionBC.cpp:23
VertexCFD::SpeciesProperties::ConstantSpeciesProperties
Definition: VertexCFD_ConstantSpeciesProperties.hpp:17
VertexCFD::ClosureModel::RADFissionSource
Definition: VertexCFD_Closure_RADFissionSource.hpp:29