VertexCFD  0.0-dev
VertexCFD_BoundaryState_IncompressibleDirichlet.hpp
1 #ifndef VERTEXCFD_BOUNDARYSTATE_INCOMPRESSIBLEDIRICHLET_HPP
2 #define VERTEXCFD_BOUNDARYSTATE_INCOMPRESSIBLEDIRICHLET_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 namespace VertexCFD
13 {
14 namespace BoundaryCondition
15 {
16 //---------------------------------------------------------------------------//
17 template<class EvalType, class Traits, int NumSpaceDim>
18 class IncompressibleDirichlet : public panzer::EvaluatorWithBaseImpl<Traits>,
19  public PHX::EvaluatorDerived<EvalType, Traits>
20 {
21  public:
22  using scalar_type = typename EvalType::ScalarT;
23  static constexpr int num_space_dim = NumSpaceDim;
24 
25  IncompressibleDirichlet(const panzer::IntegrationRule& ir,
26  const Teuchos::ParameterList& fluid_params,
27  const Teuchos::ParameterList& bc_params,
28  const bool is_edac);
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>
38  _boundary_lagrange_pressure;
39  PHX::MDField<scalar_type, panzer::Cell, panzer::Point, panzer::Dim>
40  _boundary_grad_lagrange_pressure;
41  Kokkos::Array<PHX::MDField<scalar_type, panzer::Cell, panzer::Point>,
42  num_space_dim>
43  _boundary_velocity;
44  PHX::MDField<scalar_type, panzer::Cell, panzer::Point> _boundary_temperature;
45 
46  Kokkos::Array<
47  PHX::MDField<scalar_type, panzer::Cell, panzer::Point, panzer::Dim>,
48  num_space_dim>
49  _boundary_grad_velocity;
50 
51  PHX::MDField<scalar_type, panzer::Cell, panzer::Point, panzer::Dim>
52  _boundary_grad_temperature;
53 
54  private:
55  double _time;
56  double _time_init;
57  double _time_final;
58  Kokkos::Array<double, num_space_dim> _a_vel;
59  Kokkos::Array<double, num_space_dim> _b_vel;
60  double _T_dirichlet;
61 
62  PHX::MDField<const scalar_type, panzer::Cell, panzer::Point> _lagrange_pressure;
63  PHX::MDField<const scalar_type, panzer::Cell, panzer::Point, panzer::Dim>
64  _grad_lagrange_pressure;
65  Kokkos::Array<
66  PHX::MDField<const scalar_type, panzer::Cell, panzer::Point, panzer::Dim>,
67  num_space_dim>
68  _grad_velocity;
69  PHX::MDField<const scalar_type, panzer::Cell, panzer::Point, panzer::Dim>
70  _grad_temperature;
71 
72  bool _solve_temp;
73  bool _is_edac;
74 };
75 
76 //---------------------------------------------------------------------------//
77 
78 } // end namespace BoundaryCondition
79 } // end namespace VertexCFD
80 
81 #endif // VERTEXCFD_BOUNDARYSTATE_INCOMPRESSIBLEDIRICHLET_HPP
VertexCFD
Definition: tstMethodManufacturedSolutionBC.cpp:23
VertexCFD::BoundaryCondition::IncompressibleDirichlet
Definition: VertexCFD_BoundaryState_IncompressibleDirichlet.hpp:20