Skip to content

Commit

Permalink
Write pitch and TSR vector sizes to rotor performance files
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhar-abbas committed Jul 10, 2020
1 parent ffa17c9 commit bf844ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ROSCO_toolbox/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -829,10 +829,10 @@ def write_rotor_performance(self,turbine,txt_filename='Cp_Ct_Cq.txt'):
file.write('# ------------ Written on {} using the ROSCO toolbox ------------ \n\n'.format(now.strftime('%b-%d-%y')))

# Pitch angles, TSR, and wind speed
file.write('# Pitch angle vector - x axis (matrix columns) (deg)\n')
file.write('# Pitch angle vector, {} entries - x axis (matrix columns) (deg)\n'.format(len(turbine.Cp.pitch_initial_rad)))
for i in range(len(turbine.Cp.pitch_initial_rad)):
file.write('{:0.4} '.format(turbine.Cp.pitch_initial_rad[i] * rad2deg))
file.write('\n# TSR vector - y axis (matrix rows) (-)\n')
file.write('\n# TSR vector, {} entries - y axis (matrix rows) (-)\n'.format(len(turbine.TSR_initial)))
for i in range(len(turbine.TSR_initial)):
file.write('{:0.4} '.format(turbine.Cp.TSR_initial[i]))
file.write('\n# Wind speed vector - z axis (m/s)\n')
Expand Down

0 comments on commit bf844ef

Please sign in to comment.