Nektar++
Loading...
Searching...
No Matches
Namespaces | Functions
HOutflowBndCondKernels.hpp File Reference
#include <cmath>
#include <LibUtilities/Backends/Backends.hpp>
#include <LibUtilities/BasicUtils/ErrorUtil.hpp>
#include <LibUtilities/LoopExecution/LoopExecution.hpp>

Go to the source code of this file.

Namespaces

namespace  Nektar
 
namespace  Nektar::detail
 

Functions

template<typename ExecSpace , unsigned int NDIM, typename TData >
void Nektar::detail::HOutflowVolumeGatherKernel (const size_t nsize, const size_t srcCompSize, const size_t dstCompSize, const size_t *srcIdx, const size_t *dstIdx, const TData *src, TData *dst, const unsigned int streamID)
 Copy the boundary-adjacent elements of the NDIM components of a volume field into the field on those elements: dst[c * dstCompSize + dstIdx[i]] = src[c * srcCompSize + srcIdx[i]]. Both index maps are built on the host, so no index is divided here.
 
template<typename vec_t >
NEK_HOSTDEVICE_INLINE vec_t Nektar::detail::vecTanh (const vec_t x)
 tanh of every lane of x, which tinysimd does not provide.
 
template<typename ExecSpace , unsigned int NDIM, typename TData >
void Nektar::detail::HOutflowPressureKernel (const size_t bndSize, const size_t compSize, const TData *velocity, const TData *gradient, const TData *normals, const TData *fb, const TData kinvis, const TData velocityScale, const TData theta, const TData alpha1, const TData alpha2, const TData U0, const TData delta, TData *pressure, TData *energyMinusFb, TData *divergence, const unsigned int streamID)
 Evaluate Dong's pressure condition at the points of a boundary region, keeping E(n, u*) - f_b and div(u*) for the velocity condition.
 
template<typename ExecSpace , unsigned int NDIM, typename TData >
void Nektar::detail::HOutflowVelocityKernel (const size_t bndSize, const size_t compSize, const TData *solvedPressure, const TData *normals, const TData *energyMinusFb, const TData *divergence, const TData kinvis, TData *velocityFlux, const unsigned int streamID)
 Evaluate Dong's velocity flux at the points of a boundary region, from the solved pressure and the data kept by HOutflowPressureKernel.