|
Nektar++
|
Whole-field interface of the linearised advection-diffusion-reaction (LinAdvDiffReaction) element operator, which maps a field from coefficient space to coefficient space. More...
#include <MultiRegions/ElmtOps/ElmtOp.hpp>#include <MultiRegions/ElmtOps/LinAdvDiffReaction/LinAdvDiffReactionBlockOp.hpp>Go to the source code of this file.
Classes | |
| class | Nektar::MultiRegions::LinAdvDiffReactionOp< TData > |
| Whole-field interface of the linearised advection-diffusion-reaction operator: applies the weak advection-diffusion-reaction form element by element, coefficients in and coefficients out. More... | |
Namespaces | |
| namespace | Nektar |
| namespace | Nektar::MultiRegions |
Whole-field interface of the linearised advection-diffusion-reaction (LinAdvDiffReaction) element operator, which maps a field from coefficient space to coefficient space.
For every element the operator forms the weak advection-diffusion- reaction residual of the expansion \(u = \sum_n \hat{u}_n \phi_n\) against every basis function \(\phi_p\) of the element,
\[ I_p = (\phi_p,\, \mathbf{V}\cdot\nabla u) + \lambda\,(\phi_p,\, u) + (\nabla\phi_p,\, \mathbf{D}\,\nabla u), \]
where the inner products are the element's quadrature sums including the Jacobian. The three terms and the data they need are:
All three setters must have been called before Apply(); v_Apply() asserts as much. With \(\mathbf{V} = 0\) the operator reduces to the Helmholtz operator of the same sign convention. The sum-factorised implementations exploit that: they include the corresponding Helmholtz kernel header and reuse its diffusion-metric kernels, adding only the advection term. The two StdMat implementations include no Helmholtz header and instead carry their own pointwise metric kernel, the Helmholtz one with the advection term added.
On a multi-plane 3DH1 expansion the block operators apply the form plane by plane, and detail::LinAdvDiffReactionOpImpl adds the homogeneous-direction terms – the weak z-Laplacian and the advection \(w\,\partial u/\partial z\) – after the block loop.
The family follows the standard element-operator layout (see ElmtOp.hpp):
Definition in file LinAdvDiffReactionOp.hpp.