Nektar++
Loading...
Searching...
No Matches
Classes | Namespaces | Functions
DiffTraceFluxCFEKernels.hpp File Reference
#include <DiffusionCFEVolFlux/CFEViscosityParams.hpp>
#include <DiffusionCFEVolFlux/DiffusionCFEVolFluxKernels.hpp>
#include <LibUtilities/BasicUtils/SafeDivide.hpp>
#include <SolverCore/TraceFlux/TraceFluxKernels.hpp>
#include <type_traits>

Go to the source code of this file.

Classes

struct  Nektar::detail::ViscousTraceParams< EoSParamType, TData >
 The equation of state and the viscosity law the interior trace flux kernels take. More...
 
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. More...
 

Namespaces

namespace  Nektar
 
namespace  Nektar::detail
 

Functions

template<unsigned int NDIM, typename vec_t >
static NEK_HOSTDEVICE_INLINE vec_t Nektar::detail::AveragedTraceState (const vec_t *fwd, const vec_t *bwd, vec_t *aver)
 The averaged state of one trace point: the conserved variables averaged, and the energy as the average of the two internal energies plus the kinetic energy of the averaged momentum, so that the kinetic energy the averaged momentum implies is consistent with the averaged density.
 
template<unsigned int NDIM, bool IsInterior, typename EqnOfSParams , typename vec_t , typename TData >
static NEK_HOSTDEVICE_INLINE void Nektar::detail::IPViscousTraceFluxPoint (const EqnOfSParams &EoS, const vec_t *fwd, const vec_t *bwd, const vec_t *dfwd, const vec_t *dbwd, const vec_t *normal, const vec_t penalty, const vec_t energyWeight, const TData prandtl, const TData muRef, const bool isMuVariable, const TData oneOverTStar, const TData tRatioSutherland, vec_t *flux)
 The interior-penalty viscous trace flux of one point, in registers.
 
template<unsigned int NDIM, typename EqnOfSParams , typename vec_t , typename TData >
static NEK_HOSTDEVICE_INLINE void Nektar::detail::AvgNormalFluxTracePoint (const EqnOfSParams &EoS, const vec_t *fwd, const vec_t *bwd, const vec_t *nFfwd, const vec_t *nFbwd, const vec_t *normal, const vec_t penalty, const TData prandtl, const TData muRef, const bool isMuVariable, const TData oneOverTStar, const TData tRatioSutherland, vec_t *flux)
 The viscous trace flux of one interior point in the average-of-normal-fluxes form, in registers.
 
template<typename ExecSpace , unsigned int NDIM, typename EqnOfSParams , typename TData >
static NEK_FORCE_INLINE void Nektar::detail::AvgNormalFluxTraceKernelLauncher (const EqnOfSParams EoS, const unsigned npts, const TData prandtl, const TData muRef, const bool isMuVariable, const TData oneOverTStar, const TData tRatioSutherland, const TData *normbase, const TData *penaltyFactorBase, const TData *fwdbase, const TData *bwdbase, const TData *nFfwdbase, const TData *nFbwdbase, TData *fluxbase, const unsigned int streamID)
 AvgNormalFluxTracePoint() over one padded interior trace block, for a compile-time dimension. The layout is DiffuseTraceFluxKernelLauncher()'s, with the two normal-flux arrays carrying nvarComps components each in place of the gradients.
 
template<typename ExecSpace , unsigned int NDIM, bool IsInterior, typename EqnOfSParams , typename TData >
static NEK_FORCE_INLINE void Nektar::detail::DiffuseTraceFluxKernelLauncher (const EqnOfSParams EoS, const unsigned npts, const TData prandtl, const TData muRef, const bool isMuVariable, const TData oneOverTStar, const TData tRatioSutherland, const TData *normbase, const TData *penaltyFactorBase, const TData *viscousEnergyWeightBase, const TData *fwdbase, const TData *bwdbase, const TData *derivfwdbase, const TData *derivbwdbase, TData *fluxbase, const unsigned int streamID)
 Viscous numerical flux for the compressible Navier-Stokes equations, evaluated over one padded trace block and accumulated onto the negated inviscid flux already there.
 
template<typename ExecSpace , typename TData >
static NEK_FORCE_INLINE void Nektar::detail::DiffusionGhostStateKernelLauncher (const size_t npTBlock, const unsigned numflux, const unsigned *reflectGhost, const TData *gloT0, const TData *gloT1, TData *gloT1Diff, const unsigned int streamID)
 The boundary exterior state the diffusion sees, in one pass.