Skip to content
Snippets Groups Projects

ENH: Function objects - added new 'multiply' function object

Merged Andrew Heather requested to merge feature-function-objects-multiply into develop

Multiplies a given list of (at least two or more) fields and outputs the result into a new field.

fieldResult = field1 * field2 * ... * fieldN

Minimal example by using system/controlDict functions:

multiply1
{
    // Mandatory entries (unmodifiable)
    type            multiply;
    libs            (fieldFunctionObjects);

    // Mandatory (inherited) entry (runtime modifiable)
    fields          (<field1> <field2> ... <fieldN>);

    // Optional (inherited) entries
    ...
}

Serves as a precursor to a more general function object based on the fieldExpression toolchain

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply