Skip to content

Commit 0e20cdc

Browse files
author
dzalkind
committed
Fix AWC_phaseoffset writing
1 parent ca19705 commit 0e20cdc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rosco/toolbox/utilities.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ def write_DISCON(turbine, controller, param_file='DISCON.IN', txt_filename='Cp_C
313313
file.write('{} ! AWC_freq - Frequency(s) of forcing mode(s) [Hz]\n'.format(write_array(rosco_vt['AWC_freq'],'<6.4f')))
314314
file.write('{} ! AWC_amp - Pitch amplitude(s) of individual forcing mode(s) [deg]\n'.format(write_array(rosco_vt['AWC_amp'],'<6.4f')))
315315
file.write('{} ! AWC_clockangle - Initial angle(s) of forcing mode(s) [deg]\n'.format(write_array(rosco_vt['AWC_clockangle'],'<6.4f')))
316-
file.write('{} ! AWC_phaseoffset - Azimuth offset in the Coleman transformation [deg]\n'.format(float(rosco_vt['AWC_phaseoffset'],'<6.4f')))
316+
file.write('{:<014.5f} ! AWC_phaseoffset - Azimuth offset in the Coleman transformation [deg]\n'.format(float(rosco_vt['AWC_phaseoffset'])))
317317
file.write('{} ! AWC_CntrGains - KP and KI/KR gain of the active wake controller [-]\n'.format(write_array(rosco_vt['AWC_CntrGains'],'<6.4f')))
318318
file.write('\n')
319319
file.write('!------- External Controller Interface -----------------------------------------------------\n')

0 commit comments

Comments
 (0)