The combined inviscid and viscous flux of one interior trace point, as the in-place trace flux kernels take it (the point flux of SolverCore/TraceFlux/TraceFluxKernels.hpp): the Riemann flux through the normal, then IPViscousTraceFluxPoint() with the two gradients as the second input, or under AVG_NORMAL_FLUX AvgNormalFluxTracePoint() with the two outward normal viscous fluxes.
More...
template<bool AVG_NORMAL_FLUX, template< typename, typename, unsigned int > typename RiemannKernel, typename ExecSpace, typename EoSParamType, unsigned int NDIM, typename TData>
struct Nektar::detail::ViscousPointFlux< AVG_NORMAL_FLUX, RiemannKernel, ExecSpace, EoSParamType, NDIM, TData >
The combined inviscid and viscous flux of one interior trace point, as the in-place trace flux kernels take it (the point flux of SolverCore/TraceFlux/TraceFluxKernels.hpp): the Riemann flux through the normal, then IPViscousTraceFluxPoint() with the two gradients as the second input, or under AVG_NORMAL_FLUX AvgNormalFluxTracePoint() with the two outward normal viscous fluxes.
- Template Parameters
-
| AVG_NORMAL_FLUX | The average-of-normal-fluxes form: the second input is the outward normal viscous flux, one component per state component, not the gradient. |
| RiemannKernel | Flux function, as a class template on execution space, equation-of-state parameters and dimension. |
| ExecSpace | Execution space; selects the SIMD width. |
| EoSParamType | Equation-of-state parameter pack. |
| NDIM | Spatial dimension. |
| TData | Floating-point representation. |
Definition at line 284 of file DiffTraceFluxCFEKernels.hpp.
template<bool AVG_NORMAL_FLUX, template< typename, typename, unsigned int > typename RiemannKernel, typename ExecSpace , typename EoSParamType , unsigned int NDIM, typename TData >
template<typename
vec_t >
| NEK_HOSTDEVICE_INLINE void Nektar::detail::ViscousPointFlux< AVG_NORMAL_FLUX, RiemannKernel, ExecSpace, EoSParamType, NDIM, TData >::operator() |
( |
const vec_t * |
fwd, |
|
|
const vec_t * |
bwd, |
|
|
const vec_t * |
second0, |
|
|
const vec_t * |
second1, |
|
|
const vec_t * |
normal, |
|
|
const vec_t |
penalty, |
|
|
vec_t * |
flux |
|
) |
| const |
|
inline |
Definition at line 293 of file DiffTraceFluxCFEKernels.hpp.
299 {
300 const auto &visc =
params.visc;
301 RiemannKernel<ExecSpace, EoSParamType, NDIM>()(
params.EoS, 1, fwd, bwd,
302 normal, flux);
303 if constexpr (AVG_NORMAL_FLUX)
304 {
305 AvgNormalFluxTracePoint<NDIM>(
306 params.EoS, fwd, bwd, second0, second1, normal, penalty,
307 visc.prandtl, visc.muRef, visc.isMuVariable, visc.oneOverTstar,
308 visc.tRatioSutherland, flux);
309 }
310 else
311 {
312 IPViscousTraceFluxPoint<NDIM, true>(
313 params.EoS, fwd, bwd, second0, second1, normal, penalty,
314 vec_t(1.0), visc.prandtl, visc.muRef, visc.isMuVariable,
315 visc.oneOverTstar, visc.tRatioSutherland, flux);
316 }
317 }
tinysimd::simd< NekDouble > vec_t
ViscousTraceParams< EoSParamType, TData > params
References Nektar::detail::ViscousPointFlux< AVG_NORMAL_FLUX, RiemannKernel, ExecSpace, EoSParamType, NDIM, TData >::params.