Skip to content

Commit

Permalink
Variable name updates
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhar-abbas committed Sep 26, 2019
1 parent 93d7f72 commit 6a1911a
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions WTC_toolbox/turbine.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,17 +200,16 @@ def load_from_ccblade(self,fast):
P, T, Q, M, CP, CT, CQ, CM = self.cc_rotor.evaluate(ws_flat, omega_flat, pitch_flat, coefficients=True)

# Reshape Cp, Ct and Cq
CP = np.transpose(np.reshape(CP, (len(pitch_initial), len(TSR_initial))))
CT = np.transpose(np.reshape(CT, (len(pitch_initial), len(TSR_initial))))
CQ = np.transpose(np.reshape(CQ, (len(pitch_initial), len(TSR_initial))))
Cp = np.transpose(np.reshape(CP, (len(pitch_initial), len(TSR_initial))))
Ct = np.transpose(np.reshape(CT, (len(pitch_initial), len(TSR_initial))))
Cq = np.transpose(np.reshape(CQ, (len(pitch_initial), len(TSR_initial))))

# Store necessary metrics for analysis
self.pitch_initial_rad = pitch_initial_rad
self.TSR_initial = TSR_initial
self.CP_table = CP
self.CT_table = CT
self.CQ_table = CQ

self.Cp_table = Cp
self.Ct_table = Ct
self.Cq_table = Cq
def load_from_txt(self,fast,txt_filename):
'''
Load rotor performance data from a *.txt file.
Expand Down

0 comments on commit 6a1911a

Please sign in to comment.