1 #ifndef VERTEXCFD_CLOSURE_CONDUCTIONERRORNORMS_HPP
2 #define VERTEXCFD_CLOSURE_CONDUCTIONERRORNORMS_HPP
4 #include <Panzer_Dimension.hpp>
5 #include <Panzer_Evaluator_WithBaseImpl.hpp>
7 #include <Phalanx_Evaluator_Derived.hpp>
8 #include <Phalanx_Evaluator_WithBaseImpl.hpp>
9 #include <Phalanx_FieldManager.hpp>
10 #include <Phalanx_config.hpp>
12 #include <Teuchos_ParameterList.hpp>
14 #include <Kokkos_Core.hpp>
18 namespace ClosureModel
31 template<
class EvalType,
class Traits,
int NumSpaceDim>
33 public PHX::EvaluatorDerived<EvalType, Traits>
68 KOKKOS_INLINE_FUNCTION
70 const Kokkos::TeamPolicy<PHX::exec_space>::member_type& team)
const;
80 Kokkos::Array<PHX::MDField<scalar_type, panzer::Cell, panzer::Point>,
91 Kokkos::Array<PHX::MDField<scalar_type, panzer::Cell, panzer::Point>,
99 PHX::MDField<scalar_type, panzer::Cell, panzer::Point>
_volume;
103 PHX::MDField<const double, panzer::Cell, panzer::Point> _exact_temperature;
106 PHX::MDField<const scalar_type, panzer::Cell, panzer::Point> _temperature;
114 #include "VertexCFD_Closure_ConductionErrorNorms_impl.hpp"
116 #endif // VERTEXCFD_CLOSURE_CONDUCTIONERRORNORMS_HPP
PHX::MDField< scalar_type, panzer::Cell, panzer::Point > _L1_error_continuity
L1 error of the continuity equation (scalar field).
Definition: VertexCFD_Closure_ConductionErrorNorms.hpp:73
Definition: tstMethodManufacturedSolutionBC.cpp:23
Kokkos::Array< PHX::MDField< scalar_type, panzer::Cell, panzer::Point >, num_space_dim > _L1_error_momentum
L1 error of the momentum equations (vector field).
Definition: VertexCFD_Closure_ConductionErrorNorms.hpp:82
PHX::MDField< scalar_type, panzer::Cell, panzer::Point > _L2_error_continuity
L2 error of the continuity equation (scalar field).
Definition: VertexCFD_Closure_ConductionErrorNorms.hpp:88
ConductionErrorNorms(const panzer::IntegrationRule &ir)
Constructor.
Definition: VertexCFD_Closure_ConductionErrorNorms_impl.hpp:22
PHX::MDField< scalar_type, panzer::Cell, panzer::Point > _L1_error_energy
L1 error of the energy equation (scalar field).
Definition: VertexCFD_Closure_ConductionErrorNorms.hpp:85
typename EvalType::ScalarT scalar_type
Alias for the scalar type used by the evaluation type.
Definition: VertexCFD_Closure_ConductionErrorNorms.hpp:37
Compute error norms between exact and numerical conduction solutions.
Definition: VertexCFD_Closure_ConductionErrorNorms.hpp:34
PHX::MDField< scalar_type, panzer::Cell, panzer::Point > _L2_error_energy
L2 error of the energy equation (scalar field).
Definition: VertexCFD_Closure_ConductionErrorNorms.hpp:96
static constexpr int num_space_dim
Number of spatial dimensions (compile‑time constant).
Definition: VertexCFD_Closure_ConductionErrorNorms.hpp:40
KOKKOS_INLINE_FUNCTION void operator()(const Kokkos::TeamPolicy< PHX::exec_space >::member_type &team) const
Kokkos functor invoked for each team of threads.
Definition: VertexCFD_Closure_ConductionErrorNorms_impl.hpp:67
Kokkos::Array< PHX::MDField< scalar_type, panzer::Cell, panzer::Point >, num_space_dim > _L2_error_momentum
L2 error of the momentum equations (vector field).
Definition: VertexCFD_Closure_ConductionErrorNorms.hpp:93
PHX::MDField< scalar_type, panzer::Cell, panzer::Point > _volume
Cell volume at each integration point (used for weighting).
Definition: VertexCFD_Closure_ConductionErrorNorms.hpp:99
void evaluateFields(typename Traits::EvalData workset) override
Evaluate the error norm fields over the workset.
Definition: VertexCFD_Closure_ConductionErrorNorms_impl.hpp:56