VertexCFD  0.0-dev
VertexCFD_Closure_MetricTensorElementLength.hpp
1 #ifndef VERTEXCFD_CLOSURE_METRICTENSORELEMENTLENGTH_HPP
2 #define VERTEXCFD_CLOSURE_METRICTENSORELEMENTLENGTH_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 #include <Kokkos_Core.hpp>
13 
14 namespace VertexCFD
15 {
16 namespace ClosureModel
17 {
18 //---------------------------------------------------------------------------//
19 template<class EvalType, class Traits>
21  : public panzer::EvaluatorWithBaseImpl<Traits>,
22  public PHX::EvaluatorDerived<EvalType, Traits>
23 {
24  public:
25  using scalar_type = typename EvalType::ScalarT;
26 
27  PHX::MDField<double, panzer::Cell, panzer::Point, panzer::Dim> _element_length;
28 
29  MetricTensorElementLength(const panzer::IntegrationRule& ir,
30  const std::string& prefix = "");
31 
32  void evaluateFields(typename Traits::EvalData workset) override;
33 
34  KOKKOS_INLINE_FUNCTION
35  void operator()(
36  const Kokkos::TeamPolicy<PHX::exec_space>::member_type& team) const;
37 
38  private:
39  PHX::MDField<const double, panzer::Cell, panzer::Point, panzer::Dim, panzer::Dim>
40  _metric_tensor;
41 };
42 
43 //---------------------------------------------------------------------------//
44 
45 } // end namespace ClosureModel
46 } // end namespace VertexCFD
47 
48 #endif // end VERTEXCFD_CLOSURE_METRICTENSORELEMENTLENGTH_HPP
VertexCFD
Definition: tstMethodManufacturedSolutionBC.cpp:23
VertexCFD::ClosureModel::MetricTensorElementLength
Definition: VertexCFD_Closure_MetricTensorElementLength.hpp:23