VertexCFD  0.0-dev
VertexCFD_Closure_IncompressibleCLSEpsilon.hpp
1 #ifndef VERTEXCFD_CLOSURE_INCOMPRESSIBLECLSEPSILON_HPP
2 #define VERTEXCFD_CLOSURE_INCOMPRESSIBLECLSEPSILON_HPP
3 
4 #include <Panzer_Dimension.hpp>
5 #include <Panzer_Evaluator_WithBaseImpl.hpp>
6 #include <Panzer_GlobalData.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 <Kokkos_Core.hpp>
14 
15 #include <string>
16 
17 namespace VertexCFD
18 {
19 namespace ClosureModel
20 {
21 //---------------------------------------------------------------------------//
22 // Interface thickness for conservative level set method. See Quezada de Luna
23 // (2019)
24 //---------------------------------------------------------------------------//
25 template<class EvalType, class Traits, int NumSpaceDim>
26 class IncompressibleCLSEpsilon : 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  IncompressibleCLSEpsilon(const panzer::IntegrationRule& ir,
34  const Teuchos::ParameterList& lsvof_params);
35 
36  void evaluateFields(typename Traits::EvalData workset) override;
37 
38  KOKKOS_INLINE_FUNCTION
39  void operator()(
40  const Kokkos::TeamPolicy<PHX::exec_space>::member_type& team) const;
41 
42  public:
43  PHX::MDField<double, panzer::Cell, panzer::Point> _epsilon;
44 
45  private:
46  PHX::MDField<const double, panzer::Cell, panzer::Point, panzer::Dim>
47  _element_length;
48 
49  double _alpha;
50 
51  enum EpsilonMeasurementMethod
52  {
53  Minimum,
54  Maximum,
55  Magnitude,
56  Average
57  };
58 
59  EpsilonMeasurementMethod _method;
60 };
61 
62 //---------------------------------------------------------------------------//
63 
64 } // end namespace ClosureModel
65 } // end namespace VertexCFD
66 
67 #endif // end VERTEXCFD_CLOSURE_INCOMPRESSIBLECLSEPSILON_HPP
VertexCFD
Definition: tstMethodManufacturedSolutionBC.cpp:23
VertexCFD::ClosureModel::IncompressibleCLSEpsilon
Definition: VertexCFD_Closure_IncompressibleCLSEpsilon.hpp:28