VertexCFD  0.0-dev
VertexCFD_BoundaryState_ElectricPotentialFixed.hpp
1 #ifndef VERTEXCFD_BOUNDARYSTATE_ELECTRICPOTENTIALFIXED_HPP
2 #define VERTEXCFD_BOUNDARYSTATE_ELECTRICPOTENTIALFIXED_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 <string>
13 
14 namespace VertexCFD
15 {
16 namespace BoundaryCondition
17 {
18 //---------------------------------------------------------------------------//
19 template<class EvalType, class Traits>
20 class ElectricPotentialFixed : public panzer::EvaluatorWithBaseImpl<Traits>,
21  public PHX::EvaluatorDerived<EvalType, Traits>
22 {
23  public:
24  using scalar_type = typename EvalType::ScalarT;
25 
26  ElectricPotentialFixed(const panzer::IntegrationRule& ir,
27  const Teuchos::ParameterList& bc_params);
28 
29  void evaluateFields(typename Traits::EvalData workset) override;
30 
31  KOKKOS_INLINE_FUNCTION
32  void operator()(
33  const Kokkos::TeamPolicy<PHX::exec_space>::member_type& team) const;
34 
35  public:
36  PHX::MDField<scalar_type, panzer::Cell, panzer::Point>
37  _boundary_electric_potential;
38 
39  PHX::MDField<scalar_type, panzer::Cell, panzer::Point, panzer::Dim>
40  _boundary_grad_electric_potential;
41 
42  private:
43  int _num_grad_dim;
44  double _time;
45  double _time_init;
46  double _time_final;
47  double _a_sc;
48  double _b_sc;
49 
50  PHX::MDField<const scalar_type, panzer::Cell, panzer::Point, panzer::Dim>
51  _grad_electric_potential;
52 };
53 
54 //---------------------------------------------------------------------------//
55 
56 } // end namespace BoundaryCondition
57 } // end namespace VertexCFD
58 
59 #endif // VERTEXCFD_BOUNDARYSTATE_ELECTRICPOTENTIALFIXED_HPP
VertexCFD
Definition: tstMethodManufacturedSolutionBC.cpp:23
VertexCFD::BoundaryCondition::ElectricPotentialFixed
Definition: VertexCFD_BoundaryState_ElectricPotentialFixed.hpp:22