mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Merge branch 'feature-run-time-control-triggers' into 'develop'
Feature run time control triggers See merge request Development/OpenFOAM-plus!228
This commit is contained in:
@ -48,6 +48,9 @@ runTimeModifiable true;
|
||||
functions
|
||||
{
|
||||
#include "forceCoeffs"
|
||||
#include "fieldAverage"
|
||||
#include "runTimeControls"
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -0,0 +1,18 @@
|
||||
fieldAverage1
|
||||
{
|
||||
type fieldAverage;
|
||||
libs ("libfieldFunctionObjects.so");
|
||||
triggerStart 1;
|
||||
timeStart 500;
|
||||
controlMode timeOrTrigger;
|
||||
writeControl writeTime;
|
||||
fields
|
||||
(
|
||||
U
|
||||
{
|
||||
base iteration;
|
||||
mean on;
|
||||
prime2Mean off;
|
||||
}
|
||||
);
|
||||
}
|
||||
@ -0,0 +1,55 @@
|
||||
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;
|
||||
}
|
||||
|
||||
/*
|
||||
runTimeControl3
|
||||
{
|
||||
type runTimeControl;
|
||||
libs ("libutilityFunctionObjects.so");
|
||||
conditions
|
||||
{
|
||||
condition1
|
||||
{
|
||||
type equationInitialResidual;
|
||||
fields (U.component(0));
|
||||
value 1e-02;
|
||||
mode minimum;
|
||||
}
|
||||
}
|
||||
satisfiedAction end;
|
||||
}
|
||||
*/
|
||||
Reference in New Issue
Block a user