|
Nektar++
|
Public interface of the physical-space derivative (PhysDeriv) element operator, which maps a field at the quadrature points to its gradient at the same points. More...
#include <MultiRegions/ElmtOps/ElmtOp.hpp>#include <MultiRegions/ElmtOps/PhysDeriv/PhysDerivBlockOp.hpp>Go to the source code of this file.
Classes | |
| class | Nektar::MultiRegions::PhysDerivOp< TData > |
| Element-block operator that computes the physical-space derivative \(\nabla u\) over a collection of elements. More... | |
Namespaces | |
| namespace | Nektar |
| namespace | Nektar::MultiRegions |
Public interface of the physical-space derivative (PhysDeriv) element operator, which maps a field at the quadrature points to its gradient at the same points.
PhysDeriv takes \(u\) sampled at an element's quadrature points and returns the Cartesian derivatives
\[ \frac{\partial u}{\partial x_k}(\xi_i) = \sum_{d} \frac{\partial \xi_d}{\partial x_k}(\xi_i) \frac{\partial u}{\partial \xi_d}(\xi_i), \qquad k = 0,\dots,\mathrm{coordDim}-1, \]
at those same points: a tensorial derivative on the standard element followed by the chain rule with the element's derivative factors \(\partial \xi_d / \partial x_k\) (see the notes on PhysDerivOp). Both input and output are therefore in FieldState::Phys. For an ordinary (non-homogeneous) field the output carries coordDim components per input component; for a 3D-homogeneous-1D (3DH1) field with more than one homogeneous plane it always carries exactly three, regardless of coordDim – x and y from the per-block operators, z from an FFT-based homogeneous derivative (see DerivZOpImpl.hpp).
The family follows the standard element-operator layout (see ElmtOp.hpp):
The kernel headers also define per-direction ("Dir") kernels, which produce a single Cartesian derivative component and can accumulate onto it. PhysDeriv itself never calls them: the sum-factorised ones are the building blocks of the Divergence kernels (and, in one dimension, of the CurlCurl kernels), the host StdMat one, MultiplyByDerivDirFactorKernel, of the Serial/AVX Divergence StdMat implementation. Conversely the all-component kernels PhysDeriv uses are shared with other families: MultiplyByDerivFactorKernel with the AdvectionDealias StdMat implementations, and the device PhysDeriv{1,2,3}DSumFacKernel / PhysDeriv{1,2,3}DSumFacTOPKernel with the AdvectionDealias, Helmholtz, Laplacian and LinAdvDiffReaction device kernels.
Definition in file PhysDerivOp.hpp.