Skip to content

Commit 45a2d5d

Browse files
committed
FF: add regular bash scripts
1 parent 130260c commit 45a2d5d

File tree

3 files changed

+72
-0
lines changed

3 files changed

+72
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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+
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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+
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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+

0 commit comments

Comments
 (0)