VertexCFD  0.0-dev
VertexCFD_InitialCondition_IncompressibleLSVOFBubble.hpp
1 #ifndef VERTEXCFD_INITIALCONDITION_INCOMPRESSIBLELSVOFBUBBLE_HPP
2 #define VERTEXCFD_INITIALCONDITION_INCOMPRESSIBLELSVOFBUBBLE_HPP
3 
4 #include <Panzer_Dimension.hpp>
5 #include <Panzer_Evaluator_WithBaseImpl.hpp>
6 #include <Panzer_PureBasis.hpp>
7 
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 <Teuchos_ParameterList.hpp>
14 
15 #include <Kokkos_Core.hpp>
16 
17 namespace VertexCFD
18 {
19 namespace InitialCondition
20 {
21 //---------------------------------------------------------------------------//
22 template<class EvalType, class Traits, int NumSpaceDim>
24  : public panzer::EvaluatorWithBaseImpl<Traits>,
25  public PHX::EvaluatorDerived<EvalType, Traits>
26 {
27  public:
28  using scalar_type = typename EvalType::ScalarT;
29  using view_layout = typename PHX::DevLayout<scalar_type>::type;
30  static constexpr int num_space_dim = NumSpaceDim;
31 
32  IncompressibleLSVOFBubble(const Teuchos::ParameterList& ic_params,
33  const panzer::PureBasis& basis);
34 
35  void postRegistrationSetup(typename Traits::SetupData sd,
36  PHX::FieldManager<Traits>& fm) override;
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  public:
45  PHX::MDField<scalar_type, panzer::Cell, panzer::BASIS> _alpha;
46 
47  private:
48  enum PhaseType
49  {
50  Dispersed,
51  Continuous
52  };
53 
54  std::string _basis_name;
55  int _basis_index;
56  PHX::MDField<double, panzer::Cell, panzer::BASIS, panzer::Dim> _basis_coords;
57 
58  double _radius;
59  PhaseType _phase_type;
60  Kokkos::Array<double, num_space_dim> _location;
61 };
62 
63 //---------------------------------------------------------------------------//
64 
65 } // end namespace InitialCondition
66 } // end namespace VertexCFD
67 
68 #endif // end VERTEXCFD_INITIALCONDITION_INCOMPRESSIBLELSVOFBUBBLE_HPP
VertexCFD
Definition: tstMethodManufacturedSolutionBC.cpp:23
VertexCFD::InitialCondition::IncompressibleLSVOFBubble
Definition: VertexCFD_InitialCondition_IncompressibleLSVOFBubble.hpp:26