Nektar++
Loading...
Searching...
No Matches
Namespaces | Functions
HOPressureBndCondKernels.hpp File Reference
#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, bool SUBTRACT, typename TData >
void Nektar::detail::HOPressureVolumeGatherKernel (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]], or subtract them from it with SUBTRACT. Both index maps are built on the host, so no index is divided here.
 
template<typename ExecSpace , unsigned int NDIM, bool FORCING, typename TData >
void Nektar::detail::HOPressureVolumeCombineKernel (const size_t nsize, const size_t compSize, const TData kinvis, const TData scale, const TData *forcing, TData *curlcurl, const unsigned int streamID)
 curlcurl = scale * (forcing - kinvis * curlcurl), in place, for the NDIM components of a vector field on the boundary-adjacent elements, or curlcurl = -scale * kinvis * curlcurl without FORCING.
 
template<typename ExecSpace , unsigned int NDIM, typename TData >
void Nektar::detail::HOPressureBoundaryCombineKernel (const size_t bndSize, const size_t compSize, const TData *flux, const TData *normals, TData *out, const unsigned int streamID)
 out = flux . normals at the points of a boundary region.
 
template<typename ExecSpace , unsigned int NDIM, typename TData >
void Nektar::detail::HOPressureSubtractNormalVelocityKernel (const size_t bndSize, const size_t compSize, const TData scale, const TData *velocity, const TData *normals, TData *normalFlux, const unsigned int streamID)
 normalFlux -= scale * velocity . normals at the points of a boundary region.