From d61e275cfaf4c30b925770d2cc54c59d2d7c7a3f Mon Sep 17 00:00:00 2001 From: dzalkind Date: Mon, 2 Nov 2020 18:39:10 -0700 Subject: [PATCH] Change upper limit to max torque --- src/Controllers.f90 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Controllers.f90 b/src/Controllers.f90 index 94c15d88c..5c0de6741 100644 --- a/src/Controllers.f90 +++ b/src/Controllers.f90 @@ -157,7 +157,7 @@ SUBROUTINE VariableSpeedControl(avrSWAP, CntrPar, LocalVar, objInst) IF ((CntrPar%VS_ControlMode == 2) .OR. (CntrPar%VS_ControlMode == 3)) THEN ! Constant Power, update VS_MaxTq IF (CntrPar%VS_ControlMode == 3) THEN - VS_MaxTq = min((CntrPar%VS_RtPwr/(CntrPar%VS_GenEff/100.0))/LocalVar%GenSpeedF, CntrPar%VS_RtTq) + VS_MaxTq = min((CntrPar%VS_RtPwr/(CntrPar%VS_GenEff/100.0))/LocalVar%GenSpeedF, CntrPar%VS_MaxTq) END IF ! PI controller