Skip to content

Commit

Permalink
Merge pull request #10 from NREL/develop
Browse files Browse the repository at this point in the history
Major updates to post processing, Minor bug fixes
  • Loading branch information
nikhar-abbas authored Apr 21, 2020
2 parents a0bcf9f + a7b714a commit a905ecc
Show file tree
Hide file tree
Showing 10 changed files with 438 additions and 134 deletions.
1 change: 1 addition & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[submodule "ROSCO"]
path = ROSCO
url = https://github.com/NREL/ROSCO.git
branch = develop
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ cited as:
For LaTeX users:

```
@misc{ROSCO_toolbox_2019,
@misc{ROSCO_toolbox_2019,
author = {NREL},
title = {{ROSCO Toolbox. Version 0.1.0}},
year = {2019},
Expand Down
2 changes: 1 addition & 1 deletion ROSCO
Submodule ROSCO updated 1 files
+1 −1 README.md
2 changes: 1 addition & 1 deletion ROSCO_toolbox/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@

__author__ = """Nikhar J. Abbas and Paul Fleming"""
__email__ = 'nikhar.abbas@nrel.gov'
__version__ = '0.1.0'
__version__ = '2.0.1'
5 changes: 3 additions & 2 deletions ROSCO_toolbox/control_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,10 @@ def __init__(self, lib_name, param_filename='DISCON.IN'):
self.avrSWAP[0] = 0

# Put some values in
self.avrSWAP[48] = len(self.param_name)
self.avrSWAP[49] = self.char_buffer
self.avrSWAP[58] = self.char_buffer
self.avrSWAP[49] = len(self.param_name)
self.avrSWAP[50] = self.char_buffer
self.avrSWAP[51] = self.char_buffer

# Initialize DISCON and related
self.aviFAIL = c_int32() # 1
Expand Down
3 changes: 3 additions & 0 deletions ROSCO_toolbox/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,9 @@ def tune_controller(self, turbine):
except AttributeError:
print('ERROR: If Flp_Mode > 0, you need to have blade information loaded in the turbine object.')
raise
except UnboundLocalError:
print('ERROR: You are attempting to tune a flap controller for a blade without flaps!')
raise
else:
self.flp_angle = 0.0
self.Ki_flap = np.array([0.0])
Expand Down
2 changes: 1 addition & 1 deletion ROSCO_toolbox/turbine.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ def load_blade_info(self):
self.span = r
self.chord = chord
self.twist = theta
self.bld_flapwise_damp = self.fast.fst_vt['ElastoDynBlade']['BldFlDmp1']
self.bld_flapwise_damp = self.fast.fst_vt['ElastoDynBlade']['BldFlDmp1']/100 * 0.7

class RotorPerformance():
'''
Expand Down
Loading

0 comments on commit a905ecc

Please sign in to comment.