-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathmain.py
52 lines (47 loc) · 1.6 KB
/
main.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
__author__ = "Juri Bieler"
__version__ = "0.0.1"
__status__ = "Development"
from constants import *
import traceback
import optimization.bwbAirfoilOptimizerV4 as opti
try:
opti.cabinLength = 0.55
opti.cabinHeigth = 0.14
opti.PROJECT_NAME_PREFIX = 'bwbCenter_'
opti.config['AOA'] = str(0.0)
#opti.config['UPDATE_ALPHA'] = str(10)
#opti.config['FIXED_CL_MODE'] = 'NO'
#opti.config['TARGET_CL'] = str(0.25)
opti.runOpenMdao()
except:
print('#################################################################')
print('ERROR: some exception accured in run: ' + opti.PROJECT_NAME_PREFIX)
print('')
traceback.print_exc()
print('#################################################################')
"""
try:
opti.cabinLength = 0.55
opti.cabinHeigth = 0.14
opti.PROJECT_NAME_PREFIX = 'test02'
opti.config['AOA'] = str(0.0)
opti.runOpenMdao()
except:
print('#################################################################')
print('ERROR: some exception accured in run: ' + opti.PROJECT_NAME_PREFIX)
print('')
traceback.print_exc()
print('#################################################################')
try:
opti.cabinLength = 0.6
opti.cabinHeigth = 0.13
opti.PROJECT_NAME_PREFIX = 'test03'
opti.config['AOA'] = str(0.0)
opti.runOpenMdao()
except:
print('#################################################################')
print('ERROR: some exception accured in run: ' + opti.PROJECT_NAME_PREFIX)
print('')
traceback.print_exc()
print('#################################################################')
"""