Skip to content

Commit

Permalink
Shutdown: Specify defaults for shutdown parameters in toolbox
Browse files Browse the repository at this point in the history
  • Loading branch information
abhineet-gupta committed Nov 25, 2024
1 parent e36bffb commit ad24b83
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions rosco/toolbox/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -612,20 +612,20 @@ def DISCON_dict(turbine, controller, txt_filename=None):
DISCON_dict['PS_WindSpeeds'] = controller.v
DISCON_dict['PS_BldPitchMin'] = controller.ps_min_bld_pitch
# ------- SHUTDOWN -------
DISCON_dict['SD_EnablePitch'] = controller.sd_enablepitch
DISCON_dict['SD_EnableYawError'] = controller.sd_enableyawerror
DISCON_dict['SD_EnableGenSpeed'] = controller.sd_enablegenspeed
DISCON_dict['SD_EnableTime'] = controller.sd_enabletime
DISCON_dict['SD_MaxPit'] = controller.sd_maxpit
DISCON_dict['SD_PitchCornerFreq'] = controller.f_sd_pitchcornerfreq
DISCON_dict['SD_MaxYawError'] = controller.sd_maxyawerror
DISCON_dict['SD_YawErrorCornerFreq'] = controller.f_sd_yawerrorcornerfreq
DISCON_dict['SD_MaxGenSpd'] = controller.sd_maxgenspd
DISCON_dict['SD_GenSpdCornerFreq'] = controller.f_sd_genspdcornerfreq
DISCON_dict['SD_Time'] = controller.sd_time
DISCON_dict['SD_Method'] = controller.sd_method
DISCON_dict['SD_MaxTorqueRate'] = turbine.max_torque_rate
DISCON_dict['SD_MaxPitchRate'] = turbine.max_pitch_rate
DISCON_dict['SD_EnablePitch'] = 0
DISCON_dict['SD_EnableYawError'] = 0
DISCON_dict['SD_EnableGenSpeed'] = 0
DISCON_dict['SD_EnableTime'] = 0
DISCON_dict['SD_MaxPit'] = 0.6981
DISCON_dict['SD_PitchCornerFreq'] = controller.f_sd_pitchcornerfreq
DISCON_dict['SD_MaxYawError'] = 0.5236
DISCON_dict['SD_YawErrorCornerFreq']= controller.f_sd_yawerrorcornerfreq
DISCON_dict['SD_MaxGenSpd'] = 10
DISCON_dict['SD_GenSpdCornerFreq'] = controller.f_sd_genspdcornerfreq
DISCON_dict['SD_Time'] = 9999
DISCON_dict['SD_Method'] = 1
DISCON_dict['SD_MaxTorqueRate'] = turbine.max_torque_rate
DISCON_dict['SD_MaxPitchRate'] = turbine.max_pitch_rate
# ------- Floating -------
DISCON_dict['Fl_n'] = len(controller.Kp_float)
DISCON_dict['Fl_Kp'] = controller.Kp_float
Expand Down

0 comments on commit ad24b83

Please sign in to comment.