diff --git a/wetb/prepost/Simulations.py b/wetb/prepost/Simulations.py index ebe39449c855a12ec9e89aefec3262248bb16fbf..5847a5a50fec0ce03c3bf1e790748e1013c71616 100755 --- a/wetb/prepost/Simulations.py +++ b/wetb/prepost/Simulations.py @@ -4776,8 +4776,9 @@ class Cases: nn_shaft = 4 itorque = self.res.ch_dict['shaft-shaft-node-%3.3i-momentvec-z'%nn_shaft]['chi'] torque = self.res.sig[:,itorque] - - return torque*rads + # negative means power is being extracted, which is exactly what a wind + # turbine is about, we call that positive + return -1.0*torque*rads def calc_torque_const(self, save=False, name='ojf'): """