Skip to content
Snippets Groups Projects

Feature run time control triggers

Merged Admin requested to merge feature-run-time-control-triggers into develop

Extends the runTimeControl function object to set 'trigger' values, that can be used to start other function objects. For example, to run for 100 steps after the average drag coefficient converges (reported by a forceCoeffs function object) the following could be used:

runTimeControl1
{
    type            runTimeControl;
    libs            ("libutilityFunctionObjects.so");
    conditions
    {
        condition1
        {
            type            average;
            functionObject  forceCoeffs1;
            fields          (Cd);
            tolerance       1e-3;
            window          20;
            windowType      exact;
        }
    }
    satisfiedAction setTrigger;
    trigger         1;
}

runTimeControl2
{
    type            runTimeControl;
    libs            ("libutilityFunctionObjects.so");
    controlMode     trigger;
    triggerStart    1;
    conditions
    {
        condition1
        {
            type            maxDuration;
            duration        100;
        }
    }
    satisfiedAction end;
}

See the $FOAM_TUTORIALS/incompressible/simpleFoam/simpleCar tutorial

Edited by Admin

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
  • Admin unmarked as a Work In Progress

    unmarked as a Work In Progress

    By Andrew Heather on 2019-01-23T14:59:07 (imported from GitLab project)

  • Admin changed the description

    changed the description

    By Andrew Heather on 2019-01-23T14:59:07 (imported from GitLab project)

  • Admin mentioned in commit 86db658632151572f36b5014cf127ac60e1b3dee

    mentioned in commit 86db658632151572f36b5014cf127ac60e1b3dee

    By Andrew Heather on 2019-01-23T14:59:19 (imported from GitLab project)

  • merged

    By Andrew Heather on 2019-01-23T14:59:20 (imported from GitLab project)

Please register or sign in to reply