Skip to content

Commit

Permalink
Add eps for torque output
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhar-abbas committed Sep 24, 2020
1 parent 8ae3569 commit 452863d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controllers.f90
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ SUBROUTINE VariableSpeedControl(avrSWAP, CntrPar, LocalVar, objInst)
LocalVar%VS_LastGenTrq = LocalVar%GenTq

! Set the command generator torque (See Appendix A of Bladed User's Guide):
avrSWAP(47) = LocalVar%VS_LastGenTrq ! Demanded generator torque
avrSWAP(47) = MAX(0.0+epsilon(0.0), LocalVar%VS_LastGenTrq) ! Demanded generator torque, prevent negatives.
END SUBROUTINE VariableSpeedControl
!-------------------------------------------------------------------------------------------------------------------------------
SUBROUTINE YawRateControl(avrSWAP, CntrPar, LocalVar, objInst)
Expand Down

0 comments on commit 452863d

Please sign in to comment.