-
Notifications
You must be signed in to change notification settings - Fork 15
/
constants.py
30 lines (22 loc) · 895 Bytes
/
constants.py
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
import os
import sys
GMSH_EXE_PATH = 'bin/gmsh/gmsh.exe'
#SU2_BIN_PATH = 'D:/prog/portable/Luftfahrt/su2-windows-latest/ExecParallel/bin/'
SU2_BIN_PATH = 'bin/su2-windows-latest/ExecParallel/bin/'
OS_MPI_COMMAND = 'mpiexec'
CONSTRUCT2D_EXE_PATH = 'bin/construct2d/construct2d.exe'
SU2_USED_CORES = 6
WORKING_DIR = 'dataOut/'
INPUT_DIR = 'dataIn/'
### some checks here...
# create working dir if necessary
if not os.path.isdir(WORKING_DIR):
os.mkdir(WORKING_DIR)
# check if gmsh exe exists
GMSH_EXE_PATH = os.path.abspath(GMSH_EXE_PATH)
if not os.path.isfile(GMSH_EXE_PATH):
print('WARNING: gmsh executable could not be found in: ' + GMSH_EXE_PATH)
# check if construct2d exe exists
CONSTRUCT2D_EXE_PATH = os.path.abspath(CONSTRUCT2D_EXE_PATH)
if not os.path.isfile(CONSTRUCT2D_EXE_PATH):
print('WARNING: construct2d executable could not be found in: ' + CONSTRUCT2D_EXE_PATH)