From ad24b832cb3726f6b71836dea854e2986cf9d013 Mon Sep 17 00:00:00 2001 From: AbhineetGupta Date: Sun, 24 Nov 2024 17:23:57 -0700 Subject: [PATCH] Shutdown: Specify defaults for shutdown parameters in toolbox --- rosco/toolbox/utilities.py | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/rosco/toolbox/utilities.py b/rosco/toolbox/utilities.py index 57c07d4f..74a7a903 100644 --- a/rosco/toolbox/utilities.py +++ b/rosco/toolbox/utilities.py @@ -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