1 #ifndef VERTEXCFD_INITIALCONDITION_INCOMPRESSIBLELSVOFBUBBLE_HPP
2 #define VERTEXCFD_INITIALCONDITION_INCOMPRESSIBLELSVOFBUBBLE_HPP
4 #include <Panzer_Dimension.hpp>
5 #include <Panzer_Evaluator_WithBaseImpl.hpp>
6 #include <Panzer_PureBasis.hpp>
8 #include <Phalanx_Evaluator_Derived.hpp>
9 #include <Phalanx_Evaluator_WithBaseImpl.hpp>
10 #include <Phalanx_FieldManager.hpp>
11 #include <Phalanx_config.hpp>
13 #include <Teuchos_ParameterList.hpp>
15 #include <Kokkos_Core.hpp>
19 namespace InitialCondition
22 template<
class EvalType,
class Traits,
int NumSpaceDim>
24 :
public panzer::EvaluatorWithBaseImpl<Traits>,
25 public PHX::EvaluatorDerived<EvalType, Traits>
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;
33 const panzer::PureBasis& basis);
35 void postRegistrationSetup(
typename Traits::SetupData sd,
36 PHX::FieldManager<Traits>& fm)
override;
38 void evaluateFields(
typename Traits::EvalData workset)
override;
40 KOKKOS_INLINE_FUNCTION
42 const Kokkos::TeamPolicy<PHX::exec_space>::member_type& team)
const;
45 PHX::MDField<scalar_type, panzer::Cell, panzer::BASIS> _alpha;
54 std::string _basis_name;
56 PHX::MDField<double, panzer::Cell, panzer::BASIS, panzer::Dim> _basis_coords;
59 PhaseType _phase_type;
60 Kokkos::Array<double, num_space_dim> _location;
68 #endif // end VERTEXCFD_INITIALCONDITION_INCOMPRESSIBLELSVOFBUBBLE_HPP