VertexCFD  0.0-dev
VertexCFD_BoundaryState_TurbulenceKOmegaWallResolved.hpp
1 #ifndef VERTEXCFD_BOUNDARYSTATE_TURBULENCEKOMEGAWALLRESOLVED_HPP
2 #define VERTEXCFD_BOUNDARYSTATE_TURBULENCEKOMEGAWALLRESOLVED_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>
21  : public panzer::EvaluatorWithBaseImpl<Traits>,
22  public PHX::EvaluatorDerived<EvalType, Traits>
23 {
24  public:
25  using scalar_type = typename EvalType::ScalarT;
26 
27  TurbulenceKOmegaWallResolved(const panzer::IntegrationRule& ir,
28  const Teuchos::ParameterList& bc_params);
29 
30  void evaluateFields(typename Traits::EvalData workset) override;
31 
32  KOKKOS_INLINE_FUNCTION
33  void operator()(
34  const Kokkos::TeamPolicy<PHX::exec_space>::member_type& team) const;
35 
36  public:
37  PHX::MDField<scalar_type, panzer::Cell, panzer::Point> _boundary_k;
38  PHX::MDField<scalar_type, panzer::Cell, panzer::Point> _boundary_w;
39 
40  PHX::MDField<scalar_type, panzer::Cell, panzer::Point, panzer::Dim>
41  _boundary_grad_k;
42  PHX::MDField<scalar_type, panzer::Cell, panzer::Point, panzer::Dim>
43  _boundary_grad_w;
44 
45  private:
46  PHX::MDField<const scalar_type, panzer::Cell, panzer::Point> _k;
47  PHX::MDField<const scalar_type, panzer::Cell, panzer::Point, panzer::Dim>
48  _grad_k;
49  PHX::MDField<const scalar_type, panzer::Cell, panzer::Point, panzer::Dim>
50  _grad_w;
51  PHX::MDField<const scalar_type, panzer::Cell, panzer::Point, panzer::Dim>
52  _normals;
53 
54  double _time;
55  double _omega_wall;
56  double _omega_wall_init;
57  double _omega_ramp_time;
58  int _num_grad_dim;
59 };
60 
61 //---------------------------------------------------------------------------//
62 
63 } // end namespace BoundaryCondition
64 } // end namespace VertexCFD
65 
66 #endif // VERTEXCFD_BOUNDARYSTATE_TURBULENCEKOMEGAWALLRESOLVED_HPP
VertexCFD
Definition: tstMethodManufacturedSolutionBC.cpp:23
VertexCFD::BoundaryCondition::TurbulenceKOmegaWallResolved
Definition: VertexCFD_BoundaryState_TurbulenceKOmegaWallResolved.hpp:23