-
Notifications
You must be signed in to change notification settings - Fork 80
Description
Hi,
I am comparing land based wind turbines, No financial model in PySAM and SAM and noticed the outputs were different for the power curves, while using the same parameters. Here is the code I've been using, any ideas on why i am receiving different different power curves?
`import csv
import PySAM.Windpower as wp
setting parameters
a = wp.new()
a.Resource.wind_resource_model_choice = 0
a.Turbine.calculate_powercurve(
turbine_size=3000,
rotor_diameter=90,
elevation=300,
max_cp=0.45,
max_tip_speed=80,
max_tip_sp_ratio=8,
cut_in=3.25,
cut_out=25.25,
drive_train=0,
)
Recieving power curve data
wind_speeds = a.Turbine.wind_turbine_powercurve_windspeeds
power_outputs = a.Turbine.wind_turbine_powercurve_powerout
Export to CSV
with open('power_curve2.csv', 'w', newline='') as f:
writer = csv.writer(f)
writer.writerow(["Wind Speed (m/s)", "Power Output (kW)"]) # Header
writer.writerows(zip(wind_speeds, power_outputs))
print(" Power curve exported to 'power_curve2.csv'")`
thank you,