VertexCFD  0.0-dev
VertexCFD_BoundaryState_IncompressibleRotatingWall.hpp
1 #ifndef VERTEXCFD_BOUNDARYSTATE_INCOMPRESSIBLEROTATINGWALL_HPP
2 #define VERTEXCFD_BOUNDARYSTATE_INCOMPRESSIBLEROTATINGWALL_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 <Teuchos_ParameterList.hpp>
13 
14 #include <Kokkos_Core.hpp>
15 
16 namespace VertexCFD
17 {
18 namespace BoundaryCondition
19 {
20 //---------------------------------------------------------------------------//
21 // Isothermal no-slip rotating wall.
22 //---------------------------------------------------------------------------//
23 template<class EvalType, class Traits, int NumSpaceDim>
25  : public panzer::EvaluatorWithBaseImpl<Traits>,
26  public PHX::EvaluatorDerived<EvalType, Traits>
27 {
28  public:
29  using scalar_type = typename EvalType::ScalarT;
30  static constexpr int num_space_dim = NumSpaceDim;
31 
32  IncompressibleRotatingWall(const panzer::IntegrationRule& ir,
33  const Teuchos::ParameterList& fluid_params,
34  const Teuchos::ParameterList& bc_params,
35  const bool is_edac);
36 
37  void postRegistrationSetup(typename Traits::SetupData sd,
38  PHX::FieldManager<Traits>& fm) override;
39 
40  void evaluateFields(typename Traits::EvalData workset) override;
41 
42  KOKKOS_INLINE_FUNCTION
43  void operator()(
44  const Kokkos::TeamPolicy<PHX::exec_space>::member_type& team) const;
45 
46  public:
47  PHX::MDField<scalar_type, panzer::Cell, panzer::Point>
48  _boundary_lagrange_pressure;
49  PHX::MDField<scalar_type, panzer::Cell, panzer::Point, panzer::Dim>
50  _boundary_grad_lagrange_pressure;
51  PHX::MDField<scalar_type, panzer::Cell, panzer::Point> _boundary_temperature;
52  Kokkos::Array<PHX::MDField<scalar_type, panzer::Cell, panzer::Point>,
53  num_space_dim>
54  _boundary_velocity;
55 
56  Kokkos::Array<
57  PHX::MDField<scalar_type, panzer::Cell, panzer::Point, panzer::Dim>,
58  num_space_dim>
59  _boundary_grad_velocity;
60  PHX::MDField<scalar_type, panzer::Cell, panzer::Point, panzer::Dim>
61  _boundary_grad_temperature;
62 
63  private:
64  int _ir_degree;
65  bool _set_lagrange_pressure;
66  double _lp_wall;
67  int _ir_index;
68  double _a_vel, _b_vel;
69  double _time_init, _time_final;
70  double _angular_velocity;
71  bool _solve_temp;
72  bool _is_edac;
73  double _T_wall;
74 
75  PHX::MDField<const scalar_type, panzer::Cell, panzer::Point> _lagrange_pressure;
76  PHX::MDField<const scalar_type, panzer::Cell, panzer::Point, panzer::Dim>
77  _grad_lagrange_pressure;
78 
79  Kokkos::Array<
80  PHX::MDField<const scalar_type, panzer::Cell, panzer::Point, panzer::Dim>,
81  num_space_dim>
82  _grad_velocity;
83 
84  PHX::MDField<const scalar_type, panzer::Cell, panzer::Point, panzer::Dim>
85  _grad_temperature;
86 
87  PHX::MDField<const scalar_type, panzer::Cell, panzer::Point, panzer::Dim>
88  _normals;
89 
90  PHX::MDField<const double, panzer::Cell, panzer::Point, panzer::Dim> _ip_coords;
91 };
92 
93 //---------------------------------------------------------------------------//
94 
95 } // end namespace BoundaryCondition
96 } // end namespace VertexCFD
97 
98 #endif // VERTEXCFD_BOUNDARYSTATE_INCOMPRESSIBLEROTATINGWALL_HPP
VertexCFD
Definition: tstMethodManufacturedSolutionBC.cpp:23
VertexCFD::BoundaryCondition::IncompressibleRotatingWall
Definition: VertexCFD_BoundaryState_IncompressibleRotatingWall.hpp:27