|
Nektar++
|
Kernels of the Serial/AVX sum-factorised advection operator: tensor-product differentiation, collapsed-coordinate correction, derivative factors and velocity dot product, one element per SIMD lane. More...
#include <StdRegions/Operators/PhysDerivSumFacStdKernels.hpp>#include <MultiRegions/ElmtOps/ElmtHelper.hpp>Go to the source code of this file.
Namespaces | |
| namespace | Nektar |
| namespace | Nektar::MultiRegions |
| namespace | Nektar::MultiRegions::detail |
Functions | |
| template<LibUtilities::ShapeType SHAPE_TYPE, bool APPEND, bool DEFORMED, typename simd_type > | |
| static NEK_FORCE_INLINE void | Nektar::MultiRegions::detail::Advection1DKernel (const unsigned int nq0, const unsigned int ncoord, const simd_type *df_ptr, const simd_type *advVel0_ptr, const simd_type *advVel1_ptr, const simd_type *advVel2_ptr, simd_type *deriv0, simd_type *out, const typename simd_type::scalarType scale) |
| 1D advection finish: out = scale * du/dxi * sum_k df(k) V_k per quadrature point. | |
| template<LibUtilities::ShapeType SHAPE_TYPE, bool APPEND, bool DEFORMED, typename simd_type > | |
| static NEK_FORCE_INLINE void | Nektar::MultiRegions::detail::Advection2DKernel (const unsigned int nq0, const unsigned int nq1, const unsigned int ncoord, const simd_type *f0, const simd_type *f1, const simd_type *df_ptr, const simd_type *advVel0_ptr, const simd_type *advVel1_ptr, const simd_type *advVel2_ptr, simd_type *deriv0, simd_type *deriv1, simd_type *out, const typename simd_type::scalarType scale) |
| 2D advection finish: chain-rule the tensor-direction derivatives into Cartesian ones and contract with the velocity, out = scale * sum_k V_k sum_d df(k,d) du/dxi_d per point. | |
| template<LibUtilities::ShapeType SHAPE_TYPE, bool APPEND, bool DEFORMED, typename simd_type > | |
| static NEK_FORCE_INLINE void | Nektar::MultiRegions::detail::Advection3DKernel (const unsigned int nq0, const unsigned int nq1, const unsigned int nq2, const simd_type *f0, const simd_type *f1, const simd_type *f1m, const simd_type *f2, const simd_type *df_ptr, const simd_type *advVel0_ptr, const simd_type *advVel1_ptr, const simd_type *advVel2_ptr, simd_type *deriv0, simd_type *deriv1, simd_type *deriv2, simd_type *out, const typename simd_type::scalarType scale) |
| 3D advection finish: chain-rule the tensor-direction derivatives into Cartesian ones and contract with the velocity, out = scale * sum_k V_k sum_d df(k,d) du/dxi_d per point. | |
| template<LibUtilities::ShapeType SHAPE_TYPE, bool APPEND, bool DEFORMED, typename TPhysSizeParameter1D , typename simd_type > | |
| static NEK_FORCE_INLINE void | Nektar::MultiRegions::detail::AdvectionKernelLauncher (const TPhysSizeParameter1D sizeParam1D, const typename simd_type::scalarType *D0, const simd_type *df_ptr, const simd_type *advVel0_ptr, const simd_type *advVel1_ptr, const simd_type *advVel2_ptr, simd_type *deriv0, const simd_type *in, simd_type *out, const typename simd_type::scalarType scale) |
| Advect one element group of a 1D block: tensor-product differentiation followed by Advection1DKernel. | |
| template<LibUtilities::ShapeType SHAPE_TYPE, bool APPEND, bool DEFORMED, typename TPhysSizeParameter2D , typename simd_type > | |
| static NEK_FORCE_INLINE void | Nektar::MultiRegions::detail::AdvectionKernelLauncher (const TPhysSizeParameter2D sizeParam2D, const typename simd_type::scalarType *D0, const typename simd_type::scalarType *D1, const simd_type *f0, const simd_type *f1, const simd_type *df_ptr, const simd_type *advVel0_ptr, const simd_type *advVel1_ptr, const simd_type *advVel2_ptr, simd_type *deriv0, simd_type *deriv1, const simd_type *in, simd_type *out, const typename simd_type::scalarType scale) |
| Advect one element group of a 2D block: tensor-product differentiation followed by Advection2DKernel. | |
| template<LibUtilities::ShapeType SHAPE_TYPE, bool APPEND, bool DEFORMED, typename TPhysSizeParameter3D , typename simd_type > | |
| static NEK_FORCE_INLINE void | Nektar::MultiRegions::detail::AdvectionKernelLauncher (const TPhysSizeParameter3D sizeParam3D, const typename simd_type::scalarType *D0, const typename simd_type::scalarType *D1, const typename simd_type::scalarType *D2, const simd_type *f0, const simd_type *f1, const simd_type *f1m, const simd_type *f2, const simd_type *df_ptr, const simd_type *advVel0_ptr, const simd_type *advVel1_ptr, const simd_type *advVel2_ptr, simd_type *deriv0, simd_type *deriv1, simd_type *deriv2, const simd_type *in, simd_type *out, const typename simd_type::scalarType scale) |
| Advect one element group of a 3D block: tensor-product differentiation followed by Advection3DKernel. | |
Kernels of the Serial/AVX sum-factorised advection operator: tensor-product differentiation, collapsed-coordinate correction, derivative factors and velocity dot product, one element per SIMD lane.
AdvectionKernelLauncher is the entry point the block operator (AdvectionBlockOpSerialAVXSumFac.hpp) calls for one element group; its one-, two- and three-dimensional overloads are selected by the type of the size parameter. Each unpacks the sizes, differentiates the group along the reference tensor directions with the PhysDerivTensor kernels (StdRegions/Operators/PhysDerivSumFacStdKernels.hpp) and hands the result to the matching Advection*DKernel, which writes scale * (V . grad u) per quadrature point. For simplex-type shapes the tensor directions are the collapsed coordinates, and the kernels first chain-rule the derivatives back to the standard coordinates using the pointwise factors f0/f1/f1m/f2 – tabulations of (1 + eta)/2 and 2/(1 - eta) at the quadrature points of the respective direction (see AdvectionBlockOpSerialAVXSumFac.hpp for how they are fetched).
Definition in file AdvectionBlockOpSerialAVXSumFacKernels.hpp.