Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • openfoam openfoam
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 420
    • Issues 420
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 7
    • Merge requests 7
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Development
  • openfoamopenfoam
  • Merge requests
  • !410

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

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Andrew Heather requested to merge feature-function-objects-multiply into develop Dec 10, 2020
  • Overview 1
  • Commits 1
  • Changes 4

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

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: feature-function-objects-multiply