|
Nektar++
|
Public interface of the weak Helmholtz (Helmholtz) element operator, which maps a coefficient-space field to coefficient space. More...
#include <MultiRegions/ElmtOps/ElmtOp.hpp>#include <MultiRegions/ElmtOps/Helmholtz/HelmholtzBlockOp.hpp>Go to the source code of this file.
Classes | |
| class | Nektar::MultiRegions::HelmholtzOp< TData > |
| Whole-field interface of the weak Helmholtz operator: maps coefficient-space fields to coefficient space. More... | |
Namespaces | |
| namespace | Nektar |
| namespace | Nektar::MultiRegions |
Public interface of the weak Helmholtz (Helmholtz) element operator, which maps a coefficient-space field to coefficient space.
For every element the operator forms the coefficient-space vector
\[ H_{pq} = \int_{\Omega^e} \nabla\phi_{pq} \cdot \left( \mathbf{D}\,\nabla u \right) d\mathbf{x} + \lambda \int_{\Omega^e} \phi_{pq}\, u \, d\mathbf{x}, \qquad u = \sum_{rs} \hat{u}_{rs} \phi_{rs}, \]
that is, the weak Laplacian of the Laplacian family plus a \(\lambda\)-weighted mass term, applied matrix-free to the element's coefficients. \(\mathbf{D}\) is the constant symmetric diffusion tensor set through SetDiffCoeff() and \(\lambda\) the scalar set through SetLambda(); both must be set before the first Apply().
On a 3D-homogeneous-1D (3DH1) field with more than one homogeneous plane the block operators apply this plane by plane, lambda term included, and detail::HelmholtzOpImpl adds the weak z-Laplacian in v_ApplyFFT(): the xy mass matrix applied to minus the second z-derivative. The diffusion tensor covers the plane's coordinate dimension only, so that term has a unit coefficient and no xz/yz coupling.
Both integrals are evaluated on the reference element, so the geometry enters through the Jacobian \(J\) and the derivative factors \(M_{kd} = \partial\xi_d/\partial x_k\) of SpatialDomains::GeomFactors, which convert reference derivatives into physical ones, \(\partial u/\partial x_k = \sum_d M_{kd}\,\partial u/\partial\xi_d\). Substituting that for both \(u\) and \(\phi_{pq}\) in the first integral turns its integrand into a contraction with the metric
\[ G_{de} = \sum_{k,l} M_{kd}\, D_{kl}\, M_{le}, \qquad H_{pq} = \sum_{d,e} \int \frac{\partial\phi_{pq}}{\partial\xi_d}\, G_{de}\, \frac{\partial u}{\partial\xi_e}\, J \, d\boldsymbol{\xi} + \lambda \int \phi_{pq}\, u\, J \, d\boldsymbol{\xi}, \]
the integrals being replaced by quadrature sums. On a block of regular elements \(M\) and \(J\) are constant per element; on a deformed block they vary from point to point. Every implementation in this family is instantiated with a DEFORMED template parameter that selects between the two.
No implementation assembles a Helmholtz matrix: each evaluates the derivatives of \(u\) at the quadrature points and combines the two contributions on the way back to coefficient space. The paths differ both in where those derivatives come from and in where the sum is taken:
Setting \(\lambda = 0\) makes this operator the weak Laplacian. Rather than calling into that family, Helmholtz carries its own copies of its implementation and kernel headers with the mass term added.
The family follows the standard element-operator layout (see ElmtOp.hpp):
Definition in file HelmholtzOp.hpp.