VertexCFD  0.0-dev
VertexCFD_BoundaryState_ElectricCurrentDensityInsulating.hpp
1 #ifndef VERTEXCFD_BOUNDARYSTATE_ELECTRICCURRENTDENSITYINSULATING_HPP
2 #define VERTEXCFD_BOUNDARYSTATE_ELECTRICCURRENTDENSITYINSULATING_HPP
3 
4 #include <Panzer_Dimension.hpp>
5 #include <Panzer_Evaluator_WithBaseImpl.hpp>
6 
7 #include <Phalanx_Evaluator_Derived.hpp>
8 #include <Phalanx_Evaluator_WithBaseImpl.hpp>
9 #include <Phalanx_FieldManager.hpp>
10 #include <Phalanx_config.hpp>
11 
12 #include <Kokkos_Core.hpp>
13 
14 namespace VertexCFD
15 {
16 namespace BoundaryCondition
17 {
18 //---------------------------------------------------------------------------//
19 template<class EvalType, class Traits, int NumSpaceDim>
21  : public panzer::EvaluatorWithBaseImpl<Traits>,
22  public PHX::EvaluatorDerived<EvalType, Traits>
23 {
24  public:
25  using scalar_type = typename EvalType::ScalarT;
26  static constexpr int num_space_dim = NumSpaceDim;
27  static constexpr int field_size = 3;
28 
29  ElectricCurrentDensityInsulating(const panzer::IntegrationRule& ir);
30 
31  void evaluateFields(typename Traits::EvalData workset) override;
32 
33  KOKKOS_INLINE_FUNCTION
34  void operator()(
35  const Kokkos::TeamPolicy<PHX::exec_space>::member_type& team) const;
36 
37  public:
38  PHX::MDField<scalar_type, panzer::Cell, panzer::Point>
39  _boundary_electric_potential;
40  PHX::MDField<scalar_type, panzer::Cell, panzer::Point, panzer::Dim>
41  _boundary_grad_electric_potential;
42 
43  private:
44  PHX::MDField<const scalar_type, panzer::Cell, panzer::Point>
45  _electric_potential;
46  PHX::MDField<const scalar_type, panzer::Cell, panzer::Point, panzer::Dim>
47  _grad_electric_potential;
48  PHX::MDField<const scalar_type, panzer::Cell, panzer::Point, panzer::Dim>
49  _normals;
50 
51  Kokkos::Array<PHX::MDField<const scalar_type, panzer::Cell, panzer::Point>,
52  num_space_dim>
53  _boundary_velocity;
54  Kokkos::Array<PHX::MDField<const scalar_type, panzer::Cell, panzer::Point>,
55  num_space_dim>
56  _velocity;
57  Kokkos::Array<PHX::MDField<const scalar_type, panzer::Cell, panzer::Point>,
58  field_size>
59  _ext_magn_field;
60 };
61 
62 //---------------------------------------------------------------------------//
63 
64 } // end namespace BoundaryCondition
65 } // end namespace VertexCFD
66 
67 #endif // VERTEXCFD_BOUNDARYSTATE_ELECTRICCURRENTDENSITYINSULATING_HPP
VertexCFD
Definition: tstMethodManufacturedSolutionBC.cpp:23
VertexCFD::BoundaryCondition::ElectricCurrentDensityInsulating
Definition: VertexCFD_BoundaryState_ElectricCurrentDensityInsulating.hpp:23