From c57c9c47908a1b204ded138c0e8f61beaa41aa70 Mon Sep 17 00:00:00 2001 From: Alex Clerc Date: Thu, 15 Dec 2022 12:29:06 +0000 Subject: [PATCH] Update sim.py Fix gen_power in sim_ws_wd_series so it includes efficiency --- ROSCO_toolbox/sim.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ROSCO_toolbox/sim.py b/ROSCO_toolbox/sim.py index 7ea930cd..39ab71f6 100644 --- a/ROSCO_toolbox/sim.py +++ b/ROSCO_toolbox/sim.py @@ -304,6 +304,7 @@ def sim_ws_wd_series(self, t_array, ws_array, wd_array, # Calculate the power gen_power[i] = gen_speed[i] * gen_torque[i] + gen_power[i] = gen_speed[i] * gen_torque[i] * self.turbine.GenEff / 100 # Update the nacelle position nac_yaw[i] = nac_yaw[i-1] + nac_yawrate[i]*rad2deg*dt