|
|
@ -7,21 +7,30 @@ simple |
|
|
|
// Change files in during execution. |
|
|
|
// Change files in during execution. |
|
|
|
changes |
|
|
|
changes |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
// This is the automatic reduction of a case. It will look for |
|
|
|
|
|
|
|
// caseSetupDict (or, if the case lacks it, controlDict) and will |
|
|
|
|
|
|
|
// change the endTime to 10x the deltaT. |
|
|
|
reduce |
|
|
|
reduce |
|
|
|
{ |
|
|
|
{ |
|
|
|
steps 10; |
|
|
|
steps 10; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// List of commands to be run. |
|
|
|
commands |
|
|
|
commands |
|
|
|
( |
|
|
|
( |
|
|
|
"helyxHexMesh" |
|
|
|
"helyxHexMesh" |
|
|
|
"helyxSolve" |
|
|
|
"helyxSolve" |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// If all commands run without failing, run this: |
|
|
|
post |
|
|
|
post |
|
|
|
( |
|
|
|
( |
|
|
|
( |
|
|
|
( |
|
|
|
|
|
|
|
// compare is a special command, which will trigger calling |
|
|
|
|
|
|
|
// helyxProject-compare-[name], passing the other parameters |
|
|
|
|
|
|
|
// to the command; it also expects it to produce some foam |
|
|
|
|
|
|
|
// file with the comparison results (format described later) |
|
|
|
compare tsv; |
|
|
|
compare tsv; |
|
|
|
files "postProcessing/foo" "reference/foo"; |
|
|
|
files "postProcessing/foo" "reference/foo"; |
|
|
|
variables "phi"; |
|
|
|
variables "phi"; |
|
|
@ -32,15 +41,24 @@ simple |
|
|
|
|
|
|
|
|
|
|
|
continuation |
|
|
|
continuation |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
// This run will only be executed if the run named "simple" passes. |
|
|
|
execute pass simple; |
|
|
|
execute pass simple; |
|
|
|
|
|
|
|
// Reuse the worked; if not defined, a new workspace will be created, |
|
|
|
|
|
|
|
// start the run from scratch. With "reuse", the commands will be run in |
|
|
|
|
|
|
|
// the previous run workspace. |
|
|
|
workspace reuse; |
|
|
|
workspace reuse; |
|
|
|
changes |
|
|
|
changes |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
// "continue" defines a continuation. It also changes caseSetupDict |
|
|
|
|
|
|
|
// (or controlDict) to have 1xdeltaT, but also change "startTime" to |
|
|
|
|
|
|
|
// "lastTime" |
|
|
|
continue |
|
|
|
continue |
|
|
|
{ |
|
|
|
{ |
|
|
|
steps 1; |
|
|
|
steps 1; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// This run will execute only one command. |
|
|
|
commands |
|
|
|
commands |
|
|
|
( |
|
|
|
( |
|
|
|
"helyxSolve" |
|
|
|
"helyxSolve" |
|
|
@ -50,6 +68,9 @@ continuation |
|
|
|
split |
|
|
|
split |
|
|
|
{ |
|
|
|
{ |
|
|
|
execute fail simple; |
|
|
|
execute fail simple; |
|
|
|
|
|
|
|
// It is possible to indicate that the commands will come from one |
|
|
|
|
|
|
|
// external file -- in this case, a shell script named "Allrun" |
|
|
|
|
|
|
|
// (this replicates the way helyxVerify works). |
|
|
|
commands from "Allrun"; |
|
|
|
commands from "Allrun"; |
|
|
|
workspace reuse; |
|
|
|
workspace reuse; |
|
|
|
|
|
|
|
|
|
|
@ -63,13 +84,17 @@ split |
|
|
|
) |
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
continuation |
|
|
|
more-continuation |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
// This is the second run set to run after "simple" passes. The ordering |
|
|
|
|
|
|
|
// is given by their appearance in the file: "continuation" will be run |
|
|
|
|
|
|
|
// before "more-continuation" |
|
|
|
execute pass simple; |
|
|
|
execute pass simple; |
|
|
|
workspace reuse; |
|
|
|
workspace reuse; |
|
|
|
|
|
|
|
|
|
|
|
changes |
|
|
|
changes |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
// instead letting Project do all the changes, we'll do it manually. |
|
|
|
files { |
|
|
|
files { |
|
|
|
"system/caseSetupDict" |
|
|
|
"system/caseSetupDict" |
|
|
|
{ |
|
|
|
{ |
|
|
@ -91,9 +116,15 @@ continuation |
|
|
|
|
|
|
|
|
|
|
|
variation |
|
|
|
variation |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
// This have no execution clause, so it will be run in parallel with |
|
|
|
|
|
|
|
// "simple" (being considering a different case, for example). |
|
|
|
|
|
|
|
|
|
|
|
// Change files in during execution. |
|
|
|
// Change files in during execution. |
|
|
|
changes |
|
|
|
changes |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
// it is possible to mix specialized changes with manual ones, but |
|
|
|
|
|
|
|
// specialized changes will always run before the manual changes. |
|
|
|
|
|
|
|
// this makes the manual more explicit than the specialized. |
|
|
|
reduce |
|
|
|
reduce |
|
|
|
{ |
|
|
|
{ |
|
|
|
steps 5; |
|
|
|
steps 5; |
|
|
|