1 #ifndef VERTEXCFD_CLOSURE_INDUCTIONRESISTIVEFLUX_HPP
2 #define VERTEXCFD_CLOSURE_INDUCTIONRESISTIVEFLUX_HPP
4 #include "full_induction_mhd_solver/mhd_properties/VertexCFD_FullInductionMHDProperties.hpp"
6 #include "utils/VertexCFD_Utils_MagneticDim.hpp"
8 #include <Panzer_Dimension.hpp>
9 #include <Panzer_Evaluator_WithBaseImpl.hpp>
11 #include <Phalanx_Evaluator_Derived.hpp>
12 #include <Phalanx_Evaluator_WithBaseImpl.hpp>
13 #include <Phalanx_FieldManager.hpp>
14 #include <Phalanx_config.hpp>
16 #include <Kokkos_Core.hpp>
22 namespace ClosureModel
27 template<
class EvalType,
class Traits,
int NumSpaceDim>
29 public PHX::EvaluatorDerived<EvalType, Traits>
32 using scalar_type =
typename EvalType::ScalarT;
33 static constexpr
int num_space_dim = NumSpaceDim;
36 const panzer::IntegrationRule& ir,
38 const std::string& flux_prefix =
"",
39 const std::string& gradient_prefix =
"");
41 void evaluateFields(
typename Traits::EvalData workset)
override;
43 KOKKOS_INLINE_FUNCTION
45 const Kokkos::TeamPolicy<PHX::exec_space>::member_type& team)
const;
48 PHX::MDField<scalar_type, panzer::Cell, panzer::Point, panzer::Dim>,
51 PHX::MDField<scalar_type, panzer::Cell, panzer::Point, panzer::Dim>
52 _magnetic_correction_potential_flux;
55 PHX::MDField<const scalar_type, panzer::Cell, panzer::Point, MagneticDim>
56 _total_magnetic_field;
57 PHX::MDField<const scalar_type, panzer::Cell, panzer::Point> _resistivity;
59 PHX::MDField<const scalar_type, panzer::Cell, panzer::Point, panzer::Dim, MagneticDim>
60 _grad_total_magnetic_field;
61 PHX::MDField<const scalar_type, panzer::Cell, panzer::Point>
62 _divergence_total_magnetic_field;
63 PHX::MDField<const scalar_type, panzer::Cell, panzer::Point, panzer::Dim>
66 bool _variable_resistivity;
67 bool _solve_magn_corr;
68 double _magnetic_permeability;
76 #endif // end VERTEXCFD_CLOSURE_INDUCTIONRESISTIVEFLUX_HPP