Wind Power Component

class aaem.components.wind_power.component.WindPower(community_data, forecast, diag=None, prerequisites={})[source]

Bases: aaem.components.annual_savings.annual_savings.AnnualSavings

Wind power component of the Alaska Affordable Energy Model: This module estimates potential reduction in diesel fuel use from the installation of wind power systems. Proposed wind generation is from existing projects or estimated from a proposed capacity. Financial savings result from decrease in diesel used in generation due to wind systems. The cost to build or improve wind infrastructure are also estimated.

Parameters:

community_data : CommunityData

CommunityData Object for a community

forecast : Forecast

forecast for a community

diagnostics : diagnostics, optional

diagnostics for tracking error/warning messages

prerequisites : dictionary of components, optional

prerequisite component data this component has no prerequisites leave empty

See also

aaem.community_data
community data module, see information on CommunityData Object
aaem.forecast
forecast module, see information on Forecast Object
aaem.diagnostics
diagnostics module, see information on diagnostics Object

Attributes

diagnostics (diagnostics) for tracking error/warning messages initial value: diag or new diagnostics object
forecast (forecast) community forecast for estimating future values initial value: forecast
cd (dictionary) general data for a community. Initial value: ‘community’ section of community_data
comp_specs (dictionary) component specific data for a community. Initial value: ‘wind power’ section of community_data

Methods

calc_annual_electric_savings()[source]

Calculate annual electric savings created by the project.

Attributes

baseline_generation_cost (np.array) current cost of generation ($/year)
proposed_generation_cost (np.array) proposed cost of generation ($/year)
annual_electric_savings (np.array) electric savings ($/year) are the difference in the base
and proposed fuel costs  
calc_annual_heating_savings()[source]

Calculate annual heating savings created by the project.

Attributes

annual_heating_savings (np.array) heating savings ($/year)
calc_average_load()[source]

Calculate the Average Diesel load of the current system

Attributes

generation: np.array current diesel generation
average_load (float) average diesel load of current system
calc_capital_costs()[source]

Calculate the capital costs.

Attributes

capital_costs (float) total cost of improvements ($),
cost_per_kwh: float cost per kW used to determine capital costs ($/kW)
calc_diesel_equiv_captured()[source]

calculate heat energy captured

Attributes

diesel_equiv_captured (float) Gal/year
calc_electric_diesel_reduction()[source]

Calculate the reduction in diesel due to the proposed wind.

Attributes

electric_diesel_reduction (float) reduction in generation diesel (gal/year)
calc_excess_energy()[source]

Calculate the excess energy.

Attributes

excess_energy (float) excess energy(kWh/year)
calc_generation_wind_proposed()[source]

Calculate the proposed generation for wind.

Attributes

load_offset_proposed (float) kW capacity
generation_wind_proposed (float) kWh/year
calc_loss_heat_recovery()[source]

Calculate heat recovery lost.

Attributes

loss_heat_recovery (float) Gal/year
calc_maintenance_cost()[source]

Calculate the maintenance costs.

Attributes

maintenance_costs (float) total cost of improvements ($), calculated from transmission and generation costs
calc_net_generation_wind()[source]

Calculate the proposed net generation.

Attributes

net_wind_generation (float) net wind generation (kWh/year)
calc_reduction_diesel_used()[source]

Calculate Diesel generation reduction.

Attributes

reduction_diesel_used (float) Gal/year
calc_transmission_losses()[source]

calculate the line losses on proposed system

Attributes

transmission_losses (float) transmission losses (kWh/year)
get_fuel_total_saved()[source]

Get total fuel saved.

Returns:

float

the total fuel saved in gallons

get_total_energy_produced()[source]

Get total energy produced.

Returns:

float

the total energy produced

run(scalers={'capital costs': 1.0})[source]

Runs the component. The Annual Total Savings,Annual Costs, Annual Net Benefit, NPV Benefits, NPV Costs, NPV Net Benefits, Benefit Cost Ratio, Levelized Cost of Energy, and Internal Rate of Return will all be calculated. There must be a known Heat Recovery project for this component to run.

Parameters:

scalers: dictionary of valid scalers, optional

Scalers to adjust normal run variables. See note on accepted scalers

Notes

Accepted scalers: capital costs.

Attributes

run (bool) True in the component runs to completion, False otherwise
reason (string) lists reason for failure if run == False
save_component_csv(directory)[source]

Save the output from the component.

Parameters:

directory : path

path to save at

Wind Power Configuration

Contains Transmission configuration info for community data yaml file, and other set-up requirements

Wind Power Inputs

input functions for Wind Power component

aaem.components.wind_power.inputs.load_project_details(data_dir)

Load details related to exitign projects.

Parameters:

data_dir : path

is a directory with ‘project_development_timeframes.csv’, and “project_name_projects.yaml” in it

Returns:

dict

has the keys ‘phase’(str), ‘proposed capacity’(float), ‘proposed generation’(float),’distance to resource’(float), ‘generation capital cost’(float), ‘transmission capital cost’(float), ‘operational costs’(float), ‘expected years to operation’(int),

aaem.components.wind_power.inputs.load_wind_costs_table(data_dir)

Loads the wind cost table.

Parameters:

data_dir: path

path to data directory for community

Returns:

dict

wind cost data

aaem.components.wind_power.inputs.process_data_import(data_dir)

Load data from wind_power_data.csv

Parameters:

data_dir: path

path to data directory for community

Returns:

dict

wind data

Wind Power Outputs

output functions for Wind Power component

aaem.components.wind_power.outputs.communities_summary(coms, res_dir)[source]

Saves the component summary by community

Parameters:

coms : dictionary

results from the model, dictionary with each community or project as key

res_dir : path

location to save file

aaem.components.wind_power.outputs.component_summary(results, res_dir)[source]

Creates the regional and communities summary for the component in provided directory

Parameters:

results : dictionary

results from the model, dictionary with each community or project as key

res_dir : path

location to save file

aaem.components.wind_power.outputs.create_regional_summary(results)[source]

Creates the regional summary

Parameters:

results : dictionary

results from the model, dictionary with each community or project as key

Returns:

DataFrame

containing regional results

aaem.components.wind_power.outputs.save_regional_summary(summary, res_dir)[source]

Saves the summary by region

Parameters:

summary : DataFrame

compiled regional results

res_dir : path

location to save file

Wind power Preprocessing

preprocessing functions for The Wind Power component

aaem.components.wind_power.preprocessing.preprocess(preprocessor, **kwargs)[source]

preprocess wind power data

Parameters:

preprocessor: preprocessor.Preprocessor

a preprocessor object

Returns:

dict

preprocessed data