Skip to content

Commit

Permalink
GB Ratio bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhar-abbas committed Jul 23, 2020
1 parent 532b462 commit b3480e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ReadSetParameters.f90
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ SUBROUTINE ComputeVariablesSetpoints(CntrPar, LocalVar, objInst)

! Force zero torque in shutdown mode
IF (LocalVar%SD) THEN
VS_RefSpd = CntrPar%VS_MinOMSpd * CntrPar%WE_GearboxRatio
VS_RefSpd = CntrPar%VS_MinOMSpd
ENDIF

! Force minimum rotor speed
Expand All @@ -280,7 +280,7 @@ SUBROUTINE ComputeVariablesSetpoints(CntrPar, LocalVar, objInst)

! Define transition region setpoint errors
LocalVar%VS_SpdErrAr = VS_RefSpd - LocalVar%GenSpeedF ! Current speed error - Region 2.5 PI-control (Above Rated)
LocalVar%VS_SpdErrBr = CntrPar%VS_MinOMSpd * CntrPar%WE_GearboxRatio - LocalVar%GenSpeedF ! Current speed error - Region 1.5 PI-control (Below Rated)
LocalVar%VS_SpdErrBr = CntrPar%VS_MinOMSpd - LocalVar%GenSpeedF ! Current speed error - Region 1.5 PI-control (Below Rated)

! Region 3 minimum pitch angle for state machine
LocalVar%VS_Rgn3Pitch = LocalVar%PC_MinPit + CntrPar%PC_Switch
Expand Down

0 comments on commit b3480e1

Please sign in to comment.