VertexCFD  0.0-dev
VertexCFD_BoundaryState_FullInductionFixed.hpp
1 #ifndef VERTEXCFD_BOUNDARYSTATE_FULLINDUCTIONFIXED_HPP
2 #define VERTEXCFD_BOUNDARYSTATE_FULLINDUCTIONFIXED_HPP
3 
4 #include "full_induction_mhd_solver/mhd_properties/VertexCFD_FullInductionMHDProperties.hpp"
5 
6 #include <Panzer_Dimension.hpp>
7 #include <Panzer_Evaluator_WithBaseImpl.hpp>
8 
9 #include <Phalanx_Evaluator_Derived.hpp>
10 #include <Phalanx_Evaluator_WithBaseImpl.hpp>
11 #include <Phalanx_FieldManager.hpp>
12 #include <Phalanx_config.hpp>
13 
14 namespace VertexCFD
15 {
16 namespace BoundaryCondition
17 {
18 //---------------------------------------------------------------------------//
19 template<class EvalType, class Traits, int NumSpaceDim>
20 class FullInductionFixed : public panzer::EvaluatorWithBaseImpl<Traits>,
21  public PHX::EvaluatorDerived<EvalType, Traits>
22 {
23  public:
24  using scalar_type = typename EvalType::ScalarT;
25  static constexpr int num_space_dim = NumSpaceDim;
26 
28  const panzer::IntegrationRule& ir,
29  const Teuchos::ParameterList& bc_params,
31 
32  void evaluateFields(typename Traits::EvalData workset) override;
33 
34  KOKKOS_INLINE_FUNCTION
35  void operator()(
36  const Kokkos::TeamPolicy<PHX::exec_space>::member_type& team) const;
37 
38  public:
39  Kokkos::Array<PHX::MDField<scalar_type, panzer::Cell, panzer::Point>,
40  num_space_dim>
41  _boundary_induced_magnetic_field;
42  PHX::MDField<scalar_type, panzer::Cell, panzer::Point>
43  _boundary_scalar_magnetic_potential;
44 
45  Kokkos::Array<
46  PHX::MDField<scalar_type, panzer::Cell, panzer::Point, panzer::Dim>,
47  num_space_dim>
48  _boundary_grad_induced_magnetic_field;
49 
50  private:
51  Kokkos::Array<double, num_space_dim> _bnd_magn_field;
52  bool _build_magn_corr;
53  bool _dirichlet_scalar_magn_pot;
54  double _bnd_scalar_magn_pot;
55 
56  PHX::MDField<const scalar_type, panzer::Cell, panzer::Point>
57  _scalar_magnetic_potential;
58  Kokkos::Array<
59  PHX::MDField<const scalar_type, panzer::Cell, panzer::Point, panzer::Dim>,
60  num_space_dim>
61  _grad_induced_magnetic_field;
62 };
63 
64 //---------------------------------------------------------------------------//
65 
66 } // end namespace BoundaryCondition
67 } // end namespace VertexCFD
68 
69 #endif // VERTEXCFD_BOUNDARYSTATE_FULLINDUCTIONFIXED_HPP
VertexCFD
Definition: tstMethodManufacturedSolutionBC.cpp:23
VertexCFD::MHDProperties::FullInductionMHDProperties
Definition: VertexCFD_FullInductionMHDProperties.hpp:17
VertexCFD::BoundaryCondition::FullInductionFixed
Definition: VertexCFD_BoundaryState_FullInductionFixed.hpp:22