VertexCFD  0.0-dev
VertexCFD_BoundaryState_TurbulenceBoundaryEddyViscosity.hpp
1 #ifndef VERTEXCFD_BOUNDARYSTATE_TURBULENCEBOUNDARYEDDYVISCOSITY_HPP
2 #define VERTEXCFD_BOUNDARYSTATE_TURBULENCEBOUNDARYEDDYVISCOSITY_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 // Populates boundary eddy viscosity fields according to boundary condition
20 // type
21 //---------------------------------------------------------------------------//
22 template<class EvalType, class Traits>
24  : public panzer::EvaluatorWithBaseImpl<Traits>,
25  public PHX::EvaluatorDerived<EvalType, Traits>
26 {
27  public:
28  using scalar_type = typename EvalType::ScalarT;
29 
30  TurbulenceBoundaryEddyViscosity(const panzer::IntegrationRule& ir,
31  const Teuchos::ParameterList& bc_params,
32  const std::string& flux_prefix);
33 
34  void evaluateFields(typename Traits::EvalData workset) override;
35 
36  KOKKOS_INLINE_FUNCTION
37  void operator()(
38  const Kokkos::TeamPolicy<PHX::exec_space>::member_type& team) const;
39 
40  public:
41  PHX::MDField<scalar_type, panzer::Cell, panzer::Point> _boundary_nu_t;
42 
43  private:
44  PHX::MDField<const scalar_type, panzer::Cell, panzer::Point> _interior_nu_t;
45  PHX::MDField<const scalar_type, panzer::Cell, panzer::Point> _wall_func_nu_t;
46 
47  bool _wall_func;
48 };
49 
50 //---------------------------------------------------------------------------//
51 
52 } // end namespace BoundaryCondition
53 } // end namespace VertexCFD
54 
55 #endif // VERTEXCFD_BOUNDARYSTATE_TURBULENCEBOUNDARYEDDYVISCOSITY_HPP
VertexCFD
Definition: tstMethodManufacturedSolutionBC.cpp:23
VertexCFD::BoundaryCondition::TurbulenceBoundaryEddyViscosity
Definition: VertexCFD_BoundaryState_TurbulenceBoundaryEddyViscosity.hpp:26