VertexCFD  0.0-dev
VertexCFD_BoundaryState_IncompressibleLSVOFNoSlip.hpp
1 #ifndef VERTEXCFD_BOUNDARYSTATE_INCOMPRESSIBLELSVOFNOSLIP_HPP
2 #define VERTEXCFD_BOUNDARYSTATE_INCOMPRESSIBLELSVOFNOSLIP_HPP
3 
4 #include "utils/VertexCFD_Utils_PhaseIndex.hpp"
5 
6 #include <Panzer_Dimension.hpp>
7 #include <Panzer_Evaluator_WithBaseImpl.hpp>
8 
9 #include <Phalanx_DataLayout.hpp>
10 #include <Phalanx_Evaluator_Derived.hpp>
11 #include <Phalanx_Evaluator_WithBaseImpl.hpp>
12 #include <Phalanx_FieldManager.hpp>
13 #include <Phalanx_config.hpp>
14 
15 #include <Teuchos_ParameterList.hpp>
16 
17 #include <Kokkos_Core.hpp>
18 
19 namespace VertexCFD
20 {
21 namespace BoundaryCondition
22 {
23 //---------------------------------------------------------------------------//
24 template<class EvalType, class Traits, int NumSpaceDim>
26  : public panzer::EvaluatorWithBaseImpl<Traits>,
27  public PHX::EvaluatorDerived<EvalType, Traits>
28 {
29  public:
30  using scalar_type = typename EvalType::ScalarT;
31  static constexpr int num_space_dim = NumSpaceDim;
32 
33  IncompressibleLSVOFNoSlip(const panzer::IntegrationRule& ir,
34  const int& num_lsvof_dofs,
35  const std::string& continuity_model_name,
36  const bool& build_mom_equ);
37 
38  void evaluateFields(typename Traits::EvalData workset) override;
39 
40  KOKKOS_INLINE_FUNCTION
41  void operator()(
42  const Kokkos::TeamPolicy<PHX::exec_space>::member_type& team) const;
43 
44  private:
45  Teuchos::RCP<PHX::DataLayout> _phase_layout;
46 
47  public:
48  PHX::MDField<scalar_type, panzer::Cell, panzer::Point>
49  _boundary_lagrange_pressure;
50 
51  PHX::MDField<scalar_type, panzer::Cell, panzer::Point, panzer::Dim>
52  _boundary_grad_lagrange_pressure;
53 
54  Kokkos::Array<PHX::MDField<scalar_type, panzer::Cell, panzer::Point>,
55  num_space_dim>
56  _boundary_velocity;
57 
58  Kokkos::Array<
59  PHX::MDField<scalar_type, panzer::Cell, panzer::Point, panzer::Dim>,
60  num_space_dim>
61  _boundary_grad_velocity;
62 
63  PHX::MDField<scalar_type, panzer::Cell, panzer::Point, PhaseIndex>
64  _boundary_alphas;
65 
66  private:
67  PHX::MDField<const scalar_type, panzer::Cell, panzer::Point> _lagrange_pressure;
68 
69  PHX::MDField<const scalar_type, panzer::Cell, panzer::Point, panzer::Dim>
70  _grad_lagrange_pressure;
71 
72  Kokkos::Array<
73  PHX::MDField<const scalar_type, panzer::Cell, panzer::Point, panzer::Dim>,
74  num_space_dim>
75  _grad_velocity;
76 
77  PHX::MDField<const scalar_type, panzer::Cell, panzer::Point, panzer::Dim>
78  _normals;
79 
80  PHX::MDField<const scalar_type, panzer::Cell, panzer::Point, PhaseIndex>
81  _alphas;
82 
83  bool _is_edac;
84  bool _build_mom_equ;
85 };
86 
87 //---------------------------------------------------------------------------//
88 
89 } // end namespace BoundaryCondition
90 } // end namespace VertexCFD
91 
92 #endif // VERTEXCFD_BOUNDARYSTATE_INCOMPRESSIBLELSVOFNOSLIP_HPP
VertexCFD
Definition: tstMethodManufacturedSolutionBC.cpp:23
VertexCFD::BoundaryCondition::IncompressibleLSVOFNoSlip
Definition: VertexCFD_BoundaryState_IncompressibleLSVOFNoSlip.hpp:28