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
  • !414

Feature function1 limit range

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Andrew Heather requested to merge feature-function1-limit-range into develop Dec 16, 2020
  • Overview 0
  • Commits 3
  • Changes 6

Function1 wrapper that limits the input range of another Function1

Example usage for limiting a polynomial:

limitedPolyTest        limitRange;
limitedPolyTestCoeffs
{
    min         0.4;
    max         1.4;

    value       polynomial
    (
        (5 1)
        (-2 2)
        (-2 3)
        (1 4)
    );
}

Here the return value will be:

  • poly(0.4) for x <= 0.4;
  • poly(1.4) for x >= 1.4; and
  • poly(x) for 0.4 < x < 1.4.
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: feature-function1-limit-range