Commit 3d76a4ec authored by Alan Wai Hou Lio's avatar Alan Wai Hou Lio
Browse files

bug fixed 2

parent 53b64415
Pipeline #17755 passed with stage
in 43 seconds
......@@ -711,7 +711,7 @@ subroutine update_regulation(array1, array2) bind(c,name='update_regulation')
TimerShutdown = 0.0_mk
TimerShutdown2 = 0.0_mk
endif
! derating by Alan
!! derating by Alan
! if (time.gt.200) then
! deratevar%strat = 4
! deratevar%dr = 1.05_mk
......
......@@ -323,7 +323,7 @@ subroutine derate_operation(GenSpeed, PitchVect, wsp, Pe, TTfa_acc, GenTorqueRef
GenSpeedRefMax= GenSpeedRefMax_Nom*0.9 + deratevar%Grad*(deratevar%dr - deratevar%drAt90) ! Linear relationship between dr and RotSpeed
if (deratevar%dr < deratevar%drAt90) then ! When RotSpeed is below 0.9 rated, the RotSpeed is governed by Kopt law
GenSpeedRefMax = PeRated*deratevar%dr/(Kopt*deratevar%deltaK)**(1/3)
GenSpeedRefMax = (PeRated*deratevar%dr/Kopt*deratevar%deltaK)**(1.0_mk/3.0_mk)
endif
GenSpeedRefMax = min(max(GenSpeedRefMax,GenSpeedRefMin),GenSpeedRefMax_Nom*1.2_mk) ! limit on RotSpeed set-point
GenTorqueRated = min(PeRated*deratevar%dr/GenSpeedRefMax,GenTorqueMax)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment