Nektar++
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
Nektar::detail::ViscousPointFlux< AVG_NORMAL_FLUX, RiemannKernel, ExecSpace, EoSParamType, NDIM, TData > Struct Template Reference

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...

#include <DiffTraceFluxCFEKernels.hpp>

Public Member Functions

template<typename vec_t >
NEK_HOSTDEVICE_INLINE void 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
 

Public Attributes

ViscousTraceParams< EoSParamType, TData > params
 

Static Public Attributes

static constexpr unsigned numVar = NDIM + 2
 
static constexpr unsigned secondPerVar = AVG_NORMAL_FLUX ? 1 : NDIM
 
static constexpr bool usesPenalty = true
 

Detailed Description

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_FLUXThe average-of-normal-fluxes form: the second input is the outward normal viscous flux, one component per state component, not the gradient.
RiemannKernelFlux function, as a class template on execution space, equation-of-state parameters and dimension.
ExecSpaceExecution space; selects the SIMD width.
EoSParamTypeEquation-of-state parameter pack.
NDIMSpatial dimension.
TDataFloating-point representation.

Definition at line 284 of file DiffTraceFluxCFEKernels.hpp.

Member Function Documentation

◆ operator()()

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.

Member Data Documentation

◆ numVar

template<bool AVG_NORMAL_FLUX, template< typename, typename, unsigned int > typename RiemannKernel, typename ExecSpace , typename EoSParamType , unsigned int NDIM, typename TData >
constexpr unsigned Nektar::detail::ViscousPointFlux< AVG_NORMAL_FLUX, RiemannKernel, ExecSpace, EoSParamType, NDIM, TData >::numVar = NDIM + 2
staticconstexpr

Definition at line 286 of file DiffTraceFluxCFEKernels.hpp.

◆ params

template<bool AVG_NORMAL_FLUX, template< typename, typename, unsigned int > typename RiemannKernel, typename ExecSpace , typename EoSParamType , unsigned int NDIM, typename TData >
ViscousTraceParams<EoSParamType, TData> Nektar::detail::ViscousPointFlux< AVG_NORMAL_FLUX, RiemannKernel, ExecSpace, EoSParamType, NDIM, TData >::params

◆ secondPerVar

template<bool AVG_NORMAL_FLUX, template< typename, typename, unsigned int > typename RiemannKernel, typename ExecSpace , typename EoSParamType , unsigned int NDIM, typename TData >
constexpr unsigned Nektar::detail::ViscousPointFlux< AVG_NORMAL_FLUX, RiemannKernel, ExecSpace, EoSParamType, NDIM, TData >::secondPerVar = AVG_NORMAL_FLUX ? 1 : NDIM
staticconstexpr

Definition at line 287 of file DiffTraceFluxCFEKernels.hpp.

◆ usesPenalty

template<bool AVG_NORMAL_FLUX, template< typename, typename, unsigned int > typename RiemannKernel, typename ExecSpace , typename EoSParamType , unsigned int NDIM, typename TData >
constexpr bool Nektar::detail::ViscousPointFlux< AVG_NORMAL_FLUX, RiemannKernel, ExecSpace, EoSParamType, NDIM, TData >::usesPenalty = true
staticconstexpr

Definition at line 288 of file DiffTraceFluxCFEKernels.hpp.