TUT: Added example of runTimeControl with triggers
This commit is contained in:
parent
848f0266eb
commit
124eb1c922
@ -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,35 @@
|
||||
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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user