VertexCFD  0.0-dev
VertexCFD_BoundaryState_IncompressibleWallFunctionStress.hpp
1 #ifndef VERTEXCFD_BOUNDARYSTATE_INCOMPRESSIBLEWALLFUNCTIONSTRESS_HPP
2 #define VERTEXCFD_BOUNDARYSTATE_INCOMPRESSIBLEWALLFUNCTIONSTRESS_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 
28  IncompressibleWallFunctionStress(const panzer::IntegrationRule& ir,
29  const std::string& flux_prefix);
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  Kokkos::Array<PHX::MDField<scalar_type, panzer::Cell, panzer::Point>,
39  num_space_dim>
40  _wall_func_shear_stress;
41 
42  private:
43  PHX::MDField<const scalar_type, panzer::Cell, panzer::Point> _boundary_u_tau;
44  PHX::MDField<const scalar_type, panzer::Cell, panzer::Point> _boundary_y_plus;
45  Kokkos::Array<PHX::MDField<const scalar_type, panzer::Cell, panzer::Point>,
46  num_space_dim>
47  _velocity;
48 };
49 
50 //---------------------------------------------------------------------------//
51 
52 } // end namespace BoundaryCondition
53 } // end namespace VertexCFD
54 
55 #endif // VERTEXCFD_BOUNDARYSTATE_INCOMPRESSIBLEWALLFUNCTIONSTRESS_HPP
VertexCFD
Definition: tstMethodManufacturedSolutionBC.cpp:23
VertexCFD::BoundaryCondition::IncompressibleWallFunctionStress
Definition: VertexCFD_BoundaryState_IncompressibleWallFunctionStress.hpp:23