Nektar++
Loading...
Searching...
No Matches
Classes | Namespaces
IProductWRTBaseOp.hpp File Reference

Whole-field interface of the IProductWRTBase element operator, which takes a physical-space field to its inner product with every basis function of every element. More...

#include <MultiRegions/ElmtOps/ElmtOp.hpp>
#include <MultiRegions/ElmtOps/IProductWRTBase/IProductWRTBaseBlockOp.hpp>

Go to the source code of this file.

Classes

class  Nektar::MultiRegions::IProductWRTBaseOp< TData >
 Whole-field interface of the inner product with the basis: integrates a physical-space field against every basis function of every element. More...
 

Namespaces

namespace  Nektar
 
namespace  Nektar::MultiRegions
 

Detailed Description

Whole-field interface of the IProductWRTBase element operator, which takes a physical-space field to its inner product with every basis function of every element.

For every element the operator evaluates

\[ I_n = \int_{\Omega^e} u\,\phi_n \,\mathrm{d}x \approx \sum_i w_i\,J_i\,\phi_n(\xi_i)\,u(\xi_i), \]

that is, it applies the transpose of the element's backward-transform matrix to the input after weighting the input by the quadrature metric: the tensor product of the expansion's per-direction weight tables \(w_i\) times the element Jacobian \(J_i\) (one value per element for a regular geometry, one per quadrature point for a deformed one). Through that Jacobian, and unlike BwdTrans, whose matrix it transposes, the operator does depend on the element geometry.

The per-direction weight tables are the expansion's own (LibUtilities::BasisDataKey with eWeights): for the collapsed shapes – triangle, tetrahedron, prism and pyramid – they are not the raw one-dimensional quadrature weights but already carry the factors of the collapsed coordinate map, which is why \(w_i\) above is their tensor product rather than the tensor product of the Gaussian weights. The standard-region matrices of the StdMat implementations carry the same factors, being built by applying StdExpansion::IProductWRTBase to the physical unit vectors.

Three settings modify that default behaviour, all forwarded to every block operator of the family:

IProductWRTBaseOp is the whole-field interface class of the family (see ElmtOp.hpp for the two-level element-operator structure); the per-block interface is IProductWRTBaseBlockOp (IProductWRTBaseBlockOp.hpp). The numerical work lives in the detail::IProductWRTBaseBlockOpImpl definitions – IProductWRTBaseBlockOpSerialAVXStdMat.hpp and IProductWRTBaseBlockOpSerialAVXSumFac.hpp for the Serial and AVX execution spaces, IProductWRTBaseBlockOpDeviceStdMat.hpp for the Device StdMat implementation and IProductWRTBaseBlockOpDeviceSumFac.hpp for both Device sum-factorisation strategies (SumFac and SumFacTOP) – registered with the block-operator factory by CMake-generated translation units, one per execution space, implementation and data type. The sum-factorised kernels are in IProductWRTBaseBlockOpSerialAVXSumFacKernels.hpp, IProductWRTBaseBlockOpDeviceSumFacKernels.hpp and IProductWRTBaseBlockOpDeviceSumFacTOPKernels.hpp.

See also
BwdTransOp.hpp for the operator this one transposes.

Definition in file IProductWRTBaseOp.hpp.