-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathmakeExamples.py
More file actions
64 lines (48 loc) · 2.3 KB
/
makeExamples.py
File metadata and controls
64 lines (48 loc) · 2.3 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
import os
import sys
PYTHON=sys.executable
is_windows = sys.platform.startswith('win')
if is_windows:
print("Running on Windows ...")
else:
print("Running on Linux ...")
if sys.version_info[0] < 3:
raise Exception("Must be using Python 3")
else:
cmd = f'{PYTHON} run.py -i data/generated_rankine.nc -ft dns -o results/rankine -m rankine -t 0.15 -s Fourth-order -nc 2'
os.system(cmd)
cmd = f'{PYTHON} run.py -i data/generated_rankine.nc -ft dns -o results/rankine -m rankine -t 0.15 -s Second-order'
os.system(cmd)
cmd = f'{PYTHON} run.py -i data/generated_rankine.nc -ft dns -o results/rankine -m rankine -t 0.15 -s Least-square'
os.system(cmd)
cmd = f'{PYTHON} run.py -i data/generated_lamb-oseen.nc -ft dns -o results/lamb-oseen -m lamb-oseen -t 0.15'
os.system(cmd)
cmd = f'{PYTHON} run.py -i data/generated_batchelor.nc -ft dns -o results/batchelor -m batchelor -t 0.15'
os.system(cmd)
cmd = f'{PYTHON} run.py -i data/example_vel_{{:06d}}.dat ' \
'-ft piv_tecplot -o results/example_temporal_series -mf data/example_mean.dat \
-first 5 -last 6 -t 20 -ct 0.5'
os.system(cmd)
cmd = f'{PYTHON} run.py -i data/example_Ub_planeZ_0.01.raw ' \
'-ft openfoam -o results/example_openfoam -rmax 0'
os.system(cmd)
cmd = f'{PYTHON} run.py -i data/example_Ub_planeZ_0.01.raw ' \
'-ft openfoam -xy 20 50 -p detect'
os.system(cmd)
cmd = f'{PYTHON} run.py -i data/example_adim_vel_{{:06d}}.dat ' \
'-ft piv_tecplot -o results/example_adim_vel_000010 -first 10 -t 5 -b 20'
os.system(cmd)
cmd = f'{PYTHON} run.py -i data/example_data_HIT.nc ' \
'-ft dns -o results/example_data_HIT '
os.system(cmd)
cmd = f'{PYTHON} run.py -i data/example_data_numerical_PIV.nc ' \
'-ft piv_netcdf -o results/example_data_numerical_PIV -t 1.5 -rmax 0'
os.system(cmd)
cmd = f'{PYTHON} run.py -i data/example_dim_vel_{{:06d}}.dat ' \
'-ft piv_tecplot -o results/example_dim_vel_000010 -first 10 \
-mf data/example_mean.dat -t 50 -ct 0.5 -b 15'
os.system(cmd)
cmd = f'{PYTHON} run.py -i data/example_vel_{{:06d}}.dat ' \
'-ft piv_tecplot -o results/example_temporal_series -mf data/example_mean.dat \
-first 5 -last 6 -t 20 -ct 0.5'
os.system(cmd)