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

The inviscid flux of one 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, with no second input and no penalty. More...

#include <AdvTraceFluxCFEKernels.hpp>

Public Member Functions

template<typename TData >
NEK_HOSTDEVICE_INLINE void operator() (const TData *fwd, const TData *bwd, const TData *second0, const TData *second1, const TData *normal, const TData penalty, TData *flux) const
 

Public Attributes

EoSParamType EoS
 

Static Public Attributes

static constexpr unsigned numVar = NDIM + 2
 
static constexpr unsigned secondPerVar = 0
 
static constexpr bool usesPenalty = false
 

Detailed Description

template<template< typename, typename, unsigned int > typename RiemannKernel, typename ExecSpace, typename EoSParamType, unsigned int NDIM>
struct Nektar::detail::InviscidPointFlux< RiemannKernel, ExecSpace, EoSParamType, NDIM >

The inviscid flux of one 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, with no second input and no penalty.

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

Definition at line 129 of file AdvTraceFluxCFEKernels.hpp.

Member Function Documentation

◆ operator()()

template<template< typename, typename, unsigned int > typename RiemannKernel, typename ExecSpace , typename EoSParamType , unsigned int NDIM>
template<typename TData >
NEK_HOSTDEVICE_INLINE void Nektar::detail::InviscidPointFlux< RiemannKernel, ExecSpace, EoSParamType, NDIM >::operator() ( const TData *  fwd,
const TData *  bwd,
const TData *  second0,
const TData *  second1,
const TData *  normal,
const TData  penalty,
TData *  flux 
) const
inline

Definition at line 138 of file AdvTraceFluxCFEKernels.hpp.

144 {
145 RiemannKernel<ExecSpace, EoSParamType, NDIM>()(EoS, 1, fwd, bwd, normal,
146 flux);
147 }

References Nektar::detail::InviscidPointFlux< RiemannKernel, ExecSpace, EoSParamType, NDIM >::EoS.

Member Data Documentation

◆ EoS

template<template< typename, typename, unsigned int > typename RiemannKernel, typename ExecSpace , typename EoSParamType , unsigned int NDIM>
EoSParamType Nektar::detail::InviscidPointFlux< RiemannKernel, ExecSpace, EoSParamType, NDIM >::EoS

◆ numVar

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

Definition at line 131 of file AdvTraceFluxCFEKernels.hpp.

◆ secondPerVar

template<template< typename, typename, unsigned int > typename RiemannKernel, typename ExecSpace , typename EoSParamType , unsigned int NDIM>
constexpr unsigned Nektar::detail::InviscidPointFlux< RiemannKernel, ExecSpace, EoSParamType, NDIM >::secondPerVar = 0
staticconstexpr

Definition at line 132 of file AdvTraceFluxCFEKernels.hpp.

◆ usesPenalty

template<template< typename, typename, unsigned int > typename RiemannKernel, typename ExecSpace , typename EoSParamType , unsigned int NDIM>
constexpr bool Nektar::detail::InviscidPointFlux< RiemannKernel, ExecSpace, EoSParamType, NDIM >::usesPenalty = false
staticconstexpr

Definition at line 133 of file AdvTraceFluxCFEKernels.hpp.