|
Nektar++
|
Public interface of the Expression operator, which evaluates analytical expressions at the quadrature points of a physical-space field. More...
#include <LibUtilities/BasicUtils/StringUtils.hpp>#include <MultiRegions/ElmtOps/ElmtOp.hpp>#include <MultiRegions/ElmtOps/Expression/ExpressionBlockOp.hpp>Go to the source code of this file.
Classes | |
| class | Nektar::MultiRegions::ExpressionOp< TData > |
| Whole-field interface of the Expression operator: evaluates one analytical expression per field component at every quadrature point. More... | |
Namespaces | |
| namespace | Nektar |
| namespace | Nektar::MultiRegions |
Public interface of the Expression operator, which evaluates analytical expressions at the quadrature points of a physical-space field.
The operator writes to every output component nc the value scale * f_nc(x, y, z, t, ...), where f_nc is a parsed session-file expression (LibUtilities::Equation), (x, y, z) are the quadrature-point coordinates, t is the time set through SetTime(), and any expression variables beyond those built-in four ("EVARS") take their values from the components of the input field. Optionally the result is accumulated onto the output instead of overwriting it (SetAppend()). SolverCore uses the operator to evaluate a session's initial-condition and body-forcing functions, and the boundary-condition operators in MultiRegions/BndCondOps use it to evaluate Dirichlet and Neumann data on boundary expansions.
The operation is purely pointwise – there is no basis, matrix or tensor-product structure to exploit – so this family provides a single "Generic" block implementation per execution space instead of the StdMat/SumFac/SumFacTOP split of the transform-type families (ExpressionBlockOpSerialAVXGeneric.hpp, ExpressionBlockOpDeviceGeneric.hpp). The whole-field interface classes are registered through the CMake-generated factory declarations shared by all element operators; the family has no factory template of its own.
Definition in file ExpressionOp.hpp.