VertexCFD  0.0-dev
VertexCFD_BoundaryState_IncompressiblePressureOutflow.hpp
1 #ifndef VERTEXCFD_BOUNDARYSTATE_INCOMPRESSIBLEPRESSUREOUTFLOW_HPP
2 #define VERTEXCFD_BOUNDARYSTATE_INCOMPRESSIBLEPRESSUREOUTFLOW_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 and isotropic pressure outflow boundary condition.
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  IncompressiblePressureOutflow(const panzer::IntegrationRule& ir,
33  const Teuchos::ParameterList& fluid_params,
34  const Teuchos::ParameterList& bc_params,
35  const bool is_edac);
36 
37  void evaluateFields(typename Traits::EvalData workset) override;
38 
39  KOKKOS_INLINE_FUNCTION
40  void operator()(
41  const Kokkos::TeamPolicy<PHX::exec_space>::member_type& team) const;
42 
43  public:
44  PHX::MDField<scalar_type, panzer::Cell, panzer::Point>
45  _boundary_lagrange_pressure;
46  PHX::MDField<scalar_type, panzer::Cell, panzer::Point, panzer::Dim>
47  _boundary_grad_lagrange_pressure;
48 
49  PHX::MDField<scalar_type, panzer::Cell, panzer::Point> _boundary_temperature;
50 
51  PHX::MDField<scalar_type, panzer::Cell, panzer::Point, panzer::Dim>
52  _boundary_grad_temperature;
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  private:
64  PHX::MDField<const scalar_type, panzer::Cell, panzer::Point, panzer::Dim>
65  _grad_lagrange_pressure;
66 
67  PHX::MDField<const scalar_type, panzer::Cell, panzer::Point> _temperature;
68 
69  PHX::MDField<const scalar_type, panzer::Cell, panzer::Point, panzer::Dim>
70  _grad_temperature;
71 
72  Kokkos::Array<PHX::MDField<const scalar_type, panzer::Cell, panzer::Point>,
73  num_space_dim>
74  _velocity;
75 
76  Kokkos::Array<
77  PHX::MDField<const scalar_type, panzer::Cell, panzer::Point, panzer::Dim>,
78  num_space_dim>
79  _grad_velocity;
80 
81  bool _solve_temp;
82  bool _is_edac;
83  double _p_back;
84 };
85 
86 //---------------------------------------------------------------------------//
87 
88 } // end namespace BoundaryCondition
89 } // end namespace VertexCFD
90 
91 #endif // VERTEXCFD_BOUNDARYSTATE_INCOMPRESSIBLEPRESSUREOUTFLOW_HPP
VertexCFD
Definition: tstMethodManufacturedSolutionBC.cpp:23
VertexCFD::BoundaryCondition::IncompressiblePressureOutflow
Definition: VertexCFD_BoundaryState_IncompressiblePressureOutflow.hpp:27