Skip to content

Commit

Permalink
Options for rotor performance data collection
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhar-abbas committed Sep 6, 2019
1 parent eca1eb5 commit 6bb3545
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion WTC_toolbox/turbine.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,17 @@ def load_from_fast(self, FAST_InputFile,FAST_directory,drivetrain_inertia, FAST_
# Calculate rated rotor speed for now by scaling from NREL 5MW
self.RRspeed = (63. / TipRad) * 12.1 * rpmRadSec

self.load_from_ccblade(self,fast)
# Load Cp, Ct, Cq, surfaces
if rot_source == 'txt':
self.load_from_txt(fast,txt_filename)
elif rot_source == 'cc-blade':
self.load_from_ccblade(fast)
else: # default load from cc-blade
print('No desired rotor performance data source specified, running cc-blade by default.')
self.load_from_ccblade(fast)

def load_from_ccblade(self,fast):
print('Loading rotor performace data from cc-blade:')
# Create CC-Blade Rotor
r = np.array(fast.fst_vt['AeroDynBlade']['BlSpn'])
theta = np.array(fast.fst_vt['AeroDynBlade']['BlTwist'])
Expand Down

0 comments on commit 6bb3545

Please sign in to comment.