Skip to content

Commit

Permalink
Comment and code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhar-abbas committed Oct 30, 2019
1 parent dd49eae commit 9d4ed91
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
2 changes: 0 additions & 2 deletions Tune_Cases/tune_NREL5MW.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,3 @@
# plot rotor performance
turbine.Cp.plot_performance(turbine.Cp_table, turbine.pitch_initial_rad, turbine.TSR_initial)
plt.show()

print(turbine.Cp.max)
9 changes: 4 additions & 5 deletions WTC_toolbox/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import datetime
from ccblade import CCAirfoil, CCBlade
from scipy import interpolate, gradient
from WTC_toolbox import turbine as wtc_turbine

# Some useful constants
now = datetime.datetime.now()
Expand Down Expand Up @@ -43,10 +42,10 @@ def __init__(self, controller_params):
Load controller tuning parameters from input dictionary
'''

print('---------------------------------------------------------------------------')
print('Tuning a reference wind turbine controller using the ROSCO toolbox')
print('Developed by Nikhar J. Abbas, 2019')
print('---------------------------------------------------------------------------')
print('-----------------------------------------------------------------------------')
print(' Tuning a reference wind turbine controller using NREL\'s ROSCO toolbox ')
print(' Developed by Nikhar J. Abbas for collaborotave research purposes. ')
print('-----------------------------------------------------------------------------')

# Controller Flags
self.LoggingLevel = controller_params['LoggingLevel']
Expand Down
6 changes: 3 additions & 3 deletions WTC_toolbox/turbine.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ def __init__(self, turbine_params):
"""
Load turbine parameters from input dictionary
"""
print('---------------------------------------------------------------------------')
print('Loading wind turbine data for ROSCO tuning processes')
print('---------------------------------------------------------------------------')
print('-----------------------------------------------------------------------------')
print('Loading wind turbine data for NREL\'s ROSCO tuning and simulation processeses')
print('-----------------------------------------------------------------------------')

# ------ Turbine Parameters------
self.rotor_inertia = turbine_params['rotor_inertia']
Expand Down

0 comments on commit 9d4ed91

Please sign in to comment.