rem File name multirun.bat by dbs 06.02.12
rem The purpose of this file is to explore the influences 
rem of ntumin and flotyp on the effectivenes of presumed-
rem flow heat exchangers for fixed values of grid size 
rem and mass_flow_times_specific_heat ratio.
rem Thirty runs are performed without user intervention.
rem The values of effectiveness (and a few other items)
rem are placed for later inspection in a file called 
rem info.htm
 
rem get the q1 file
copy ..\input\q1.htm q1
rem                             open new info.htm
if exist info.htm del info.htm
type info1 >info.htm
echo heatex multi-run >>info.htm
rem                             open new frommenu.htm
echo irunn=1 >frommenu.htm
echo lsweep=200 >>info.htm
echo lsweep=200 >>frommenu.htm
echo nxcont=42 >>frommenu.htm
rem msp2d1=1.0 is the default
echo msp2d1=0.5 >>frommenu.htm
rem lastt over-rides previous
echo msp2d1=0.75 >>frommenu.htm
echo msp2d1=0.25 >>frommenu.htm
echo msp2d1=0.001 >>frommenu.htm
echo msp2d1=1.0 >>frommenu.htm
rem
rem          The above settings  are true for all runs
rem The next two vary from run to run with five values
rem of ntumin (1, 2, 3, 4, and 5) as an outer loop, and
rem 6 values of flotyp (3, 4, 5, 6 and 7) as inner loops.
rem Thus there are 30 runs altogether
rem satellite (in silent mode) and earth are run in 
rem success, activated by 'call se'
rem
echo ntumin=1 >>frommenu.htm
echo flotyp=2 >>frommenu.htm
rem goto end
call se
type inforout >> info.htm

echo irunn=2 >>frommenu.htm
echo flotyp=3 >>frommenu.htm
call se
type inforout >>info.htm

echo irunn=3 >>frommenu.htm
echo flotyp=4 >>frommenu.htm
call se
type inforout >>info.htm

rem goto end
echo irunn=4 >>frommenu.htm
echo flotyp=5 >>frommenu.htm
call se
type inforout >>info.htm

echo irunn=5 >>frommenu.htm
echo flotyp=6 >>frommenu.htm
call se
type inforout >>info.htm
             
echo irunn=6 >>frommenu.htm
echo flotyp=7 >>frommenu.htm
call se
type inforout >>info.htm
             
echo ntumin=2 >>frommenu.htm

echo irunn=7 >>frommenu.htm
echo flotyp=2 >>frommenu.htm
call se
type inforout >> info.htm

echo irunn=8 >>frommenu.htm
echo flotyp=3 >>frommenu.htm
call se
type inforout >>info.htm

echo irunn=9 >>frommenu.htm
echo flotyp=4 >>frommenu.htm
call se
type inforout >>info.htm

echo irunn=10 >>frommenu.htm
echo flotyp=5 >>frommenu.htm
call se
type inforout >>info.htm

echo irunn=11 >>frommenu.htm
echo flotyp=6 >>frommenu.htm
call se
type inforout >>info.htm
             
echo irunn=12 >>frommenu.htm
echo flotyp=7 >>frommenu.htm
call se
type inforout >>info.htm
             
echo ntumin=3 >>frommenu.htm
 
echo irunn=13 >>frommenu.htm
echo nxcont=42 >>frommenu.htm
rem goto 2
echo flotyp=2 >>frommenu.htm
call se
type inforout>> info.htm

:2
echo irunn=14 >>frommenu.htm
echo flotyp=3 >>frommenu.htm
call se
type inforout >>info.htm

echo irunn=15 >>frommenu.htm
echo flotyp=4 >>frommenu.htm
call se
type inforout >>info.htm

rem goto end
echo irunn=16 >>frommenu.htm
echo flotyp=5 >>frommenu.htm
call se
type inforout >>info.htm

echo irunn=17 >>frommenu.htm
echo flotyp=6 >>frommenu.htm
call se
type inforout >>info.htm
             
echo irunn=18 >>frommenu.htm
echo flotyp=7 >>frommenu.htm
call se
type inforout >>info.htm
             
echo ntumin=4 >>frommenu.htm
 
echo irunn=19 >>frommenu.htm
echo flotyp=2 >>frommenu.htm
call se
type inforout >> info.htm

echo irunn=20 >>frommenu.htm
echo flotyp=3 >>frommenu.htm
call se
type inforout >>info.htm

echo irunn=21 >>frommenu.htm
echo flotyp=4 >>frommenu.htm
call se
type inforout >>info.htm

echo irunn=22 >>frommenu.htm
echo flotyp=5 >>frommenu.htm
call se
type inforout >>info.htm

echo irunn=23 >>frommenu.htm
echo flotyp=6 >>frommenu.htm
call se
type inforout >>info.htm

echo irunn=24 >>frommenu.htm
echo flotyp=6 >>frommenu.htm
call se
type inforout >>info.htm


echo ntumin=5 >>frommenu.htm
 
echo irunn=25 >>frommenu.htm
echo flotyp=2 >>frommenu.htm
call se
type inforout >> info.htm

echo irunn=26 >>frommenu.htm
echo flotyp=3 >>frommenu.htm
call se
type inforout >>info.htm

echo irunn=27 >>frommenu.htm
echo flotyp=4 >>frommenu.htm
call se
type inforout >>info.htm

echo irunn=28 >>frommenu.htm
echo flotyp=5 >>frommenu.htm
call se
type inforout >>info.htm

echo irunn=29 >>frommenu.htm
echo flotyp=6 >>frommenu.htm
call se
type inforout >>info.htm

echo irunn=30 >>frommenu.htm
echo flotyp=7 >>frommenu.htm
call se
type inforout >>info.htm

:end
type info2>>info.htm
rem