Skip to content

Commit

Permalink
Try for WISDEM master or dev versions of ccblade
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhar-abbas committed Nov 9, 2020
1 parent fadd73f commit fbd8a72
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions ROSCO_toolbox/turbine.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,10 +274,13 @@ def load_from_ccblade(self):

# Get values from cc-blade
print('Running CCBlade aerodynamic analysis, this may take a minute...')
outputs, derivs = self.cc_rotor.evaluate(ws_flat, omega_flat, pitch_flat, coefficients=True)
CP = outputs['CP']
CT = outputs['CT']
CQ = outputs['CQ']
try: # wisde/master as of Nov 9, 2020
_, _, _, _, CP, CT, CQ, CM = self.cc_rotor.evaluate(ws_flat, omega_flat, pitch_flat, coefficients=True)
except(ValueError): # wisdem/dev as of Nov 9, 2020
outputs, derivs = self.cc_rotor.evaluate(ws_flat, omega_flat, pitch_flat, coefficients=True)
CP = outputs['CP']
CT = outputs['CT']
CQ = outputs['CQ']
print('CCBlade aerodynamic analysis run successfully.')

# Reshape Cp, Ct and Cq
Expand Down

0 comments on commit fbd8a72

Please sign in to comment.