Go to the source code of this file.
|
| template<unsigned int NDIM, typename TData > |
| NEK_HOSTDEVICE_INLINE void | Nektar::detail::EnergyKernel (const size_t idx, const TData weight, const TData *NEK_RESTRICT velocity, const TData *NEK_RESTRICT gradient, const size_t uOffset, const size_t vOffset, const size_t wOffset, const size_t dudyOffset, const size_t dudzOffset, const size_t dvdxOffset, const size_t dvdzOffset, const size_t dwdxOffset, const size_t dwdyOffset, TData *vals) |
| | Write the squared velocity and vorticity magnitudes at storage index idx, and the volume it stands for, each times weight, to vals[0], vals[1] and vals[2].
|
| |
| template<typename ExecSpace , unsigned int NDIM, typename TData > |
| void | Nektar::detail::EnergyKernelLauncher (const size_t planeSize, const unsigned int nPlanes, const unsigned int velocityComponent0, const unsigned int velocityComponent1, const unsigned int velocityComponent2, const TData *metric, const TData *planeWeights, const TData *velocity, const TData *gradient, TData *result, const unsigned int streamID) |
| | Add the integrals of the squared velocity and vorticity magnitudes and the volume of one block to result[0], result[1] and result[2].
|
| |