File tree Expand file tree Collapse file tree 3 files changed +72
-0
lines changed
openfast_toolbox/fastfarm/examples/SampleFiles Expand file tree Collapse file tree 3 files changed +72
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ source $HOME /.bash_profile
3+
4+ # ********************************** USER INPUT ********************************** #
5+ turbsimbin=' /full/path/to/your/binary/.../bin/turbsim'
6+ basepath=' /full/path/to/your/case/dir'
7+
8+ condList=(' Cond00_v08.6_PL0.2_TI10' ' Cond01_v10.6_PL0.2_TI10' ' Cond02_v12.6_PL0.2_TI10' )
9+
10+ caseList=(' Case00_wdirp00_WSfalse_YMfalse' ' Case01_wdirp00_WStrue_YMfalse' )
11+
12+ nSeeds=6
13+ nTurbines=12
14+ # ******************************************************************************** #
15+
16+ for cond in ${condList[@]} ; do
17+ for case in ${caseList[@]} ; do
18+ for (( seed= 0 ; seed< $nSeeds ; seed++ )) ; do
19+ for (( t= 1 ; t<= $nTurbines ; t++ )) ; do
20+ dir=$( printf " %s/%s/%s/Seed_%01d/TurbSim" $basepath $cond $case $seed )
21+ echo " Submitting $dir /HighT$t .inp"
22+ $turbsimbin $dir /HighT$t .inp > $dir /log.hight$t .seed$seed .txt 2>&1 &
23+ sleep 0.1
24+ done
25+ done
26+ done
27+ done
28+
29+ wait
30+
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ source $HOME /.bash_profile
4+
5+ # ********************************** USER INPUT ********************************** #
6+ turbsimbin=' /full/path/to/your/binary/.../bin/turbsim'
7+ basepath=' /full/path/to/your/case/dir'
8+
9+ condList=(' Cond00_v08.6_PL0.2_TI10' ' Cond01_v10.6_PL0.2_TI10' ' Cond02_v12.6_PL0.2_TI10' )
10+
11+ nSeeds=6
12+ # ******************************************************************************** #
13+
14+ for cond in ${condList[@]} ; do
15+ for(( seed= 0 ; seed< $nSeeds ; seed++ )) ; do
16+ dir=$( printf " %s/%s/Seed_%01d" $basepath $cond $seed )
17+ echo " Running $dir /Low.inp"
18+ $turbsimbin $dir /Low.inp > $dir /log.low.seed$seed .txt 2>&1 &
19+ done
20+ done
21+
22+ wait
23+
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ source $HOME /.bash_profile
4+
5+ # ********************************** USER INPUT ********************************** #
6+ fastfarmbin=' /full/path/to/your/binary/.../bin/FAST.Farm'
7+ basepath=' /full/path/to/your/case/dir'
8+
9+ cond=' Cond00_v08.6_TI10'
10+ case=' Case00_wdirp00'
11+ seed=0
12+ # ******************************************************************************** #
13+
14+ dir=$( printf " %s/%s/%s/Seed_%01d" $basepath $cond $case $seed )
15+ cd $dir
16+ export OMP_STACKSIZE=" 32 M"
17+ echo " Running $dir /FFarm_mod.fstf with OMP_STACKSIZE=32M"
18+ $fastfarmbin $dir /FFarm_mod.fstf > $dir /log.fastfarm.seed$seed .txt 2>&1
19+
You can’t perform that action at this time.
0 commit comments