-
Notifications
You must be signed in to change notification settings - Fork 1
/
app.py
24 lines (20 loc) · 894 Bytes
/
app.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import os
import logging
import xfoil_module
REPOSITORY_ROOT = os.path.abspath(os.path.dirname(__file__))
logger = logging.getLogger(__name__)
def run(analysis):
"""
Runs the application
"""
logger.info('Panel Codes App is running!')
# See what panel code will be used.
if analysis.configuration_values['analysis_program'] == 'xfoil':
xfoil_module.call(analysis) # Pass the parsed input and configuration schema
elif analysis.configuration_values['analysis_program'] == 'vgfoil':
raise NotImplementedError("Vortex Generator XFOIL is not implemented yet!")
elif analysis.configuration_values['analysis_program'] == 'viiflow':
raise NotImplementedError("VIIFLOW is not implemented!")
elif analysis.config['analysis_program'] == 'rfoil':
raise NotImplementedError("RFOIL by DTU is not implemented!")
analysis.finalise()