VertexCFD  0.0-dev
VertexCFD_Closure_IncompressibleLSVOFBubbleExact.hpp
1 #ifndef VERTEXCFD_CLOSURE_INCOMPRESSIBLELSVOFBUBBLEEXACT_HPP
2 #define VERTEXCFD_CLOSURE_INCOMPRESSIBLELSVOFBUBBLEEXACT_HPP
3 
4 #include <Panzer_Dimension.hpp>
5 #include <Panzer_Evaluator_WithBaseImpl.hpp>
6 
7 #include <Phalanx_DataLayout.hpp>
8 #include <Phalanx_Evaluator_Derived.hpp>
9 #include <Phalanx_Evaluator_WithBaseImpl.hpp>
10 #include <Phalanx_FieldManager.hpp>
11 #include <Phalanx_config.hpp>
12 
13 #include <Kokkos_Core.hpp>
14 
15 #include <string>
16 
17 namespace VertexCFD
18 {
19 namespace ClosureModel
20 {
21 //---------------------------------------------------------------------------//
22 // Exact solution for stationary bubble
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  IncompressibleLSVOFBubbleExact(const panzer::IntegrationRule& ir,
34  const Teuchos::ParameterList& closure_params);
35 
36  void postRegistrationSetup(typename Traits::SetupData sd,
37  PHX::FieldManager<Traits>& fm) override;
38 
39  void evaluateFields(typename Traits::EvalData workset) override;
40 
41  KOKKOS_INLINE_FUNCTION
42  void operator()(
43  const Kokkos::TeamPolicy<PHX::exec_space>::member_type& team) const;
44 
45  private:
46  std::string _dof_name;
47  double _radius;
48  Kokkos::Array<double, num_space_dim> _location;
49 
50  int _ir_degree;
51  int _ir_index;
52 
53  PHX::MDField<const double, panzer::Cell, panzer::Point, panzer::Dim> _ip_coords;
54 
55  public:
56  PHX::MDField<double, panzer::Cell, panzer::Point> _exact_dof;
57 };
58 
59 //---------------------------------------------------------------------------//
60 
61 } // end namespace ClosureModel
62 } // end namespace VertexCFD
63 
64 #endif // end VERTEXCFD_CLOSURE_INCOMPRESSIBLELSVOFBUBBLEEXACT_HPP
VertexCFD
Definition: tstMethodManufacturedSolutionBC.cpp:23
VertexCFD::ClosureModel::IncompressibleLSVOFBubbleExact
Definition: VertexCFD_Closure_IncompressibleLSVOFBubbleExact.hpp:28