-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpreprocess_fds.sh
executable file
·43 lines (34 loc) · 1.12 KB
/
preprocess_fds.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/sh
# Execution of preprocessing script to supply JPSfire
#===================CHANGE PARAMETERS AS NECEASSARY=============================
quantities_FED=(
'CARBON DIOXIDE VOLUME FRACTION'
'CARBON MONOXIDE VOLUME FRACTION'
'HYDROGEN CYANIDE VOLUME FRACTION'
'HYDROGEN CHLORIDE VOLUME FRACTION'
'TEMPERATURE'
'EXTINCTION COEFFICIENT'
)
locations=(
'Z',2.25 #height for extinction coefficient (must be compliant with FDS simulation)
'Z',1.75 #height for FED calculation (must be compliant with FDS simulation)
)
#jps_path=(
#'../demos/C_toxicity_analysis/JuPedSim'
#)
#fds_path=(
#'../demos/C_toxicity_analysis/FDS'
#)
#==================AUTOMATIC PART - NO CHANGES NECEASSARY=======================
#FED grids
IFS=","; set ${locations[1]};
# $1 = slice_dim as str and $2 = slice_coord as float
for quantity in "${quantities_FED[@]}"
do
echo Slicefile quantity: "$quantity"
echo Slicefile dimension: "$1", coordinate: $2 m
#python3 preprocess_fds.py -q "$quantity" -d "$1" -c $2 -p -j "${jps_path}" -f "${fds_path}"
python3 preprocess_fds.py -q "$quantity" -d "$1" -c $2 -p
done
#extinction grids
python3 preprocess_fds.py -p