Skip to content

Commit

Permalink
Update sim.py (#196)
Browse files Browse the repository at this point in the history
Fix gen_power in sim_ws_wd_series so it includes efficiency
  • Loading branch information
aclerc authored Dec 19, 2022
1 parent 602332e commit 827b281
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ROSCO_toolbox/sim.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 827b281

Please sign in to comment.