Windpower

Wrapper for SAM Simulation Core model: cmod_windpower.cpp

Creating an Instance

There are three methods to create a new instance of a PySAM module. Using default populates the newclass’ attributes with default values specific to a config. Each technology-financialconfiguration corresponds to a SAM GUI configuration. Using new creates an instance with empty attributes. The wrap function allows compatibility with PySSC, for details, refer to PySSC.

Windpower model description

Wind power system with one or more wind turbines

PySAM.Windpower.default(config) → Windpower

Use financial model-specific default attributes config options:

  • “WindPowerAllEquityPartnershipFlip”
  • “WindPowerCommercial”
  • “WindPowerCommercialPPA”
  • “WindPowerIndependentPowerProducer”
  • “WindPowerLCOECalculator”
  • “WindPowerLeveragedPartnershipFlip”
  • “WindPowerNone”
  • “WindPowerResidential”
  • “WindPowerSaleLeaseback”
  • “WindPowerSingleOwner”
PySAM.Windpower.new() → Windpower
PySAM.Windpower.wrap(ssc_data_t) → Windpower

Use existing PySSC data

Warning

Do not call PySSC.data_free on the ssc_data_t provided to wrap

Functions

class PySAM.Windpower.Windpower

This class contains all the variable information for running a simulation. Variables are grouped together in the subclasses as properties. If property assignments are the wrong type, an error is thrown.

assign(dict) → None

Assign attributes from nested dictionary, except for Outputs

nested_dict = { 'Wind Resource File': { var: val, ...}, ...}

execute(int verbosity) → None

Execute simulation with verbosity level 0 (default) or 1

export() → dict

Export attributes into nested dictionary

Resource Group

Turbine Group

Farm Group

Losses Group

AdjustmentFactors Group

class PySAM.Windpower.Windpower.AdjustmentFactors
assign() → None

Assign attributes from dictionary

export() → Dict

Export attributes into dictionary

constant

type: float

dc_constant

DC Constant loss adjustment [%]

dc_hourly

DC Hourly Adjustment Factors [%]

dc_periods

DC Period-based Adjustment Factors [%]

hourly

AC Hourly Adjustment Factors [%]

periods

AC Period-based Adjustment Factors [%]

sf_constant

DC Constant loss adjustment [%]

sf_hourly

DC Hourly Adjustment Factors [%]

sf_periods

DC Period-based Adjustment Factors [%]

Outputs Group

class PySAM.Windpower.Windpower.Outputs
assign() → None

Assign attributes from dictionary

Outputs_vals = { var: val, ...}

export() → dict

Export attributes into dictionary

annual_energy

float: Annual Energy [kWh]

capacity_factor

float: Capacity factor [%]

cutoff_losses

float: Cutoff losses [%]

gen

sequence: Total electric power to grid [kWh]

kwh_per_kw

float: First year kWh/kW [kWh/kW]

monthly_energy

sequence: Monthly Energy [kWh]

pressure

sequence: Pressure [atm]

temp

sequence: Air temperature [‘C]

turbine_output_by_windspeed_bin

sequence: Turbine output by wind speed bin [kW]

wind_direction

sequence: Wind direction [deg]

wind_speed

sequence: Wind speed [m/s]