Hello,
yes, there is the possibility to run Wufi2D in batch, but you will need little knowledge of command line parameters.
If you call the kernel in a command window with /h you will get the following information:
-----------------------------------------------------------------------------------
C:\Programme\IBP-Software\WUFI2D-3>w2d_flow.exe /h
usage: prog [switches] [workingdirectory] inputfile
-- workingdirectory is the directory where the output files are stored
all the additional input files (e.g. climate files) must be
located in the same directory as the inputfile
-- inputfile is the name of the parameter file, defining the construction
-- gridfile is the name of the parameter file, defining the grid partitioning
-- switches:
/i: print version info of all linked files and start
the calculation if inputfile is supplied
/v: print kernel version and start the
calculation if inputfile is supplied
/r n: restart the calculation at timestep n
with binarydata from disc
/h: print this help and quit
/g gridfile: use parallel mode applying separation defined in gridfile
/s: write slavespeed file
-------------------------------------------------------------------------------------
This is all you need for batch calulation...
Now step by step:
First create the case and go to calculation and start calculation for at least one time step, to make sure that the input.dat contains the actual information. Then save the case. You may do so with a couple of cases.
Now you can close Wufi2D.
Second create a batch-file with the following content:
Code: Select all
"c:\programme\ibp-software\wufi2d-3\w2d_flow.exe" "path to project" "path to project\input.dat"
of all your projects to be calculated. Doing this, in the command window the printout of the calculation will be shown. If you want to create the iter.txt, which can be opened in Wufi for the convergence analysis, you have to add 2>"path to project\iter.txt":
Code: Select all
"c:\programme\ibp-software\wufi2d-3\w2d_flow.exe" "path to project" "path to project\input.dat" 2>"path to project\iter.txt"
During the calculation you will only see a black window with a cursor blinking, but if you open the iter.txt with a text editor during calculation, and scroll down, you will see the state of the calculation at the end of the file.
Third step: call the batch-file
Please note:
The name and path of the kernel has changed for
WUFI 2D 4:
Code: Select all
"c:\Program Files (x86)\WUFI\WUFI2D-4\kernel\x64\w2dcore-x64.exe" "path to project" "path to project\input.dat" 2>"path to project\iter.txt"
Hope that helps,
Christian