- Posts: 5254
import PySAM.Windpower as wpsystem_model = wp.default('WindPowerLCOECalculator')
system_model = wp.default('WindPowerLCOECalculator')
system_model.Resource.wind_resource_filename = 'lat39.74_lon-104.98__2013_80m.srw'
system_model.Farm.system_capacity = 10e3 # (kW)
system_model.execute(0)
print(system_model.Outputs.annual_energy)
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
import PySAM.Windpower as wp
system_model = wp.default('WindPowerLCOECalculator')
system_model.Resource.wind_resource_filename = 'sample-wind-data.srw'
# Wind turbine power curve data
system_model.Turbine.wind_turbine_powercurve_windspeeds = [ 0, 0.25, 0.5, 0.75, 1, 1.25, 1.5, 1.75, 2, 2.25, 2.5, 2.75, 3, 3.25, 3.5, 3.75, 4, 4.25, 4.5, 4.75, 5, 5.25, 5.5, 5.75, 6, 6.25, 6.5, 6.75, 7, 7.25, 7.5, 7.75, 8, 8.25, 8.5, 8.75, 9, 9.25, 9.5, 9.75, 10, 10.25, 10.5, 10.75, 11, 11.25, 11.5, 11.75, 12, 12.25, 12.5, 12.75, 13, 13.25, 13.5, 13.75, 14, 14.25, 14.5, 14.75, 15, 15.25, 15.5, 15.75, 16, 16.25, 16.5, 16.75, 17, 17.25, 17.5, 17.75, 18, 18.25, 18.5, 18.75, 19, 19.25, 19.5, 19.75, 20, 20.25, 20.5, 20.75, 21, 21.25, 21.5, 21.75, 22, 22.25, 22.5, 22.75, 23, 23.25, 23.5, 23.75, 24, 24.25, 24.5, 24.75, 25, 25.25, 25.5, 25.75, 26, 26.25, 26.5, 26.75, 27, 27.25, 27.5, 27.75, 28, 28.25, 28.5, 28.75, 29, 29.25, 29.5, 29.75, 30, 30.25, 30.5, 30.75, 31, 31.25, 31.5, 31.75, 32, 32.25, 32.5, 32.75, 33, 33.25, 33.5, 33.75, 34, 34.25, 34.5, 34.75, 35, 35.25, 35.5, 35.75, 36, 36.25, 36.5, 36.75, 37, 37.25, 37.5, 37.75, 38, 38.25, 38.5, 38.75, 39, 39.25, 39.5, 39.75, 40 ]
system_model.Turbine.wind_turbine_powercurve_powerout = [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21.32, 33.51, 45.69, 65.21, 79.83, 104.25, 128.66, 157.97, 187.27, 216.58, 250.78, 292.32, 333.85, 375.4, 426.72, 475.6, 534.27, 597.81, 656.49, 724.94, 798.29, 871.63, 940.08, 1010, 1060, 1130, 1190, 1240, 1290, 1330, 1370, 1390, 1410, 1430, 1440, 1460, 1470, 1475, 1480, 1485, 1490, 1495, 1500, 1500, 1500, 1500, 1500, 1500, 1500, 1500, 1500, 1500, 1500, 1500, 1500, 1500, 1500, 1500, 1500, 1500, 1500, 1500, 1500, 1500, 1500, 1500, 1500, 1500, 1500, 1500, 1500, 1500, 1500, 1500, 1500, 1500, 1500, 1500, 1500, 1500, 1500, 1500, 1500, 1500, 1500, 1500, 1500, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
system_model.Turbine.wind_turbine_rotor_diameter = 77 # m
system_model.Turbine.wind_turbine_hub_ht = 80 # m
turbine_capacity = 1500 # kW
# Single turbine example
turbine_x_positions = [ 0 ] # m
turbine_y_positions = [ 0 ] # m
number_of_turbines = len( turbine_x_positions )
system_model.Farm.wind_farm_xCoordinates = turbine_x_positions
system_model.Farm.wind_farm_yCoordinates = turbine_y_positions
system_model.Farm.system_capacity = turbine_capacity * number_of_turbines # (kW)
system_model.execute(0)
calculate_capacity_factor = system_model.Outputs.annual_energy / system_model.Farm.system_capacity / 8760 * 100
print("One turbine:")
print(system_model.Outputs.annual_energy, "kWh")
print(system_model.Farm.system_capacity, "kW")
print(system_model.Outputs.capacity_factor, "%")
print(calculate_capacity_factor, "%")
# Four turbine example
# X-Y grid of turbine positions
turbine_x_positions = [ 0, 616, 308, 924 ] # m
turbine_y_positions = [ 0, 0, 616, 616 ] # m, must have same length as turbine x positions
number_of_turbines = len( turbine_x_positions )
system_model.Farm.wind_farm_xCoordinates = turbine_x_positions
system_model.Farm.wind_farm_yCoordinates = turbine_y_positions
system_model.Farm.system_capacity = turbine_capacity * number_of_turbines # (kW)
system_model.execute(0)
calculate_capacity_factor = system_model.Outputs.annual_energy / system_model.Farm.system_capacity / 8760 * 100
print()
print("Multiple turbines:")
print(system_model.Outputs.annual_energy, "kWh")
print(system_model.Farm.system_capacity, "kW")
print(system_model.Outputs.capacity_factor, "%")
print(calculate_capacity_factor, "%")
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
NREL is a national laboratory of the U.S. Department of Energy, Office of Energy Efficiency and Renewable Energy, operated by the Alliance for Sustainable Energy, LLC.
NREL is a national laboratory of the U.S. Department of Energy, Office of Energy Efficiency and Renewable Energy, operated by the Alliance for Sustainable Energy, LLC.