Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toy example that uses new module "tx_cap_in_zone" #130

Open
wants to merge 1 commit into
base: wecc
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
BALANCING_AREAS,quickstart_res_load_frac,quickstart_res_wind_frac,quickstart_res_solar_frac,spinning_res_load_frac,spinning_res_wind_frac,spinning_res_solar_frac
NorthCentral,0.04,0.05,0.05,0.02,0.05,0.05
South,0.04,0.06,0.06,0.02,0.07,0.07
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
base_financial_year,discount_rate,interest_rate
2015,0.05,0.07
17 changes: 17 additions & 0 deletions examples/3zone_toy_policy_tx_cap_in_zone/inputs/fuel_cost.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
load_zone,fuel,period,fuel_cost
North,Uranium,2020,2.19
Central,Uranium,2020,2.19
South,Uranium,2020,2.19
North,Uranium,2030,2.2
Central,Uranium,2030,2.2
South,Uranium,2030,2.2
North,Coal,2020,1.9012
Central,Coal,2020,1.9012
North,Coal,2030,2.0467
Central,Coal,2030,2.0467
North,ResidualFuelOil,2020,18.5755
Central,ResidualFuelOil,2020,18.5755
South,ResidualFuelOil,2020,18.5755
North,ResidualFuelOil,2030,20.3021
Central,ResidualFuelOil,2030,20.3021
South,ResidualFuelOil,2030,20.3021
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
regional_fuel_market,period,tier,unit_cost,max_avail_at_cost
All_DistOil,2020,0,21.9802,inf
All_DistOil,2030,0,24.5216,100000.0
All_NG,2020,0,4.4647,1950514555.0
All_NG,2020,1,5.0709,inf
All_NG,2030,0,5.925,2368354558.0
All_NG,2030,1,5.925,inf
North_Bio,2020,0,1.7102,6864985.0
North_Bio,2020,1,3.3941,6782413.0
North_Bio,2030,0,2.0438,6064415.0
North_Bio,2030,1,3.2218,7680076.0
South_Bio,2020,0,1.7115,26427258.0
South_Bio,2020,1,17.1714,486066.0
South_Bio,2030,0,1.7115,26427258.0
South_Bio,2030,1,17.1714,26427258.0
7 changes: 7 additions & 0 deletions examples/3zone_toy_policy_tx_cap_in_zone/inputs/fuels.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
fuel,co2_intensity,upstream_co2_intensity
Coal,0.09552,0.0
ResidualFuelOil,0.0788,0.0
DistillateFuelOil,0.07315,0.0
NaturalGas,0.05306,0.0
Uranium,0.0,.
BioSolid,0.09435,-0.09435
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
GENERATION_PROJECT,build_year,gen_overnight_cost,gen_fixed_om
N-Coal_ST,1995,2687700.0,21390.0
N-Geothermal,2000,5524200.0,0.0
N-NG_CC,2008,1143900.0,5868.3
N-NG_GT,2009,605430.0,4891.8
C-Coal_ST,1985,2687700.0,21390.0
C-NG_CC,2005,1143900.0,5868.3
C-NG_GT,2005,605430.0,4891.8
S-Geothermal,1998,5524200.0,0.0
S-NG_CC,2000,1143900.0,5868.3
S-NG_GT,1990,605430.0,4891.8
S-NG_GT,2002,605430.0,4891.8
N-Geothermal,2020,5524200.0,0.0
N-Geothermal,2030,5524200.0,0.0
N-Coal_IGCC,2020,3729300.0,28923.0
N-Coal_IGCC,2030,3729300.0,28923.0
N-Coal_IGCC_CCS,2030,6138000.0,41292.0
N-NG_CC,2020,1143900.0,5868.3
N-NG_CC,2030,1143900.0,5868.3
N-NG_CC_CCS,2030,3487500.0,17112.0
N-NG_GT,2020,605430.0,4891.8
N-NG_GT,2030,605430.0,4891.8
N-Nuclear,2030,5673000.0,118110.0
N-Biomass_IGCC,2020,3561900.0,88350.0
N-Biomass_IGCC,2030,3561900.0,88350.0
N-Biomass_IGCC_CCS,2030,5970600.0,100719.0
N-Residential_PV,2020,3487500.0,41850.0
N-Residential_PV,2030,3059700.0,38130.0
N-Commercial_PV,2020,3106200.0,41850.0
N-Commercial_PV,2030,2752800.0,38130.0
N-Central_PV-1,2020,2334300.0,41850.0
N-Central_PV-2,2020,2334300.0,41850.0
N-Central_PV-1,2030,2148300.0,38130.0
N-Central_PV-2,2030,2148300.0,38130.0
N-Wind-1,2020,1841400.0,55800.0
N-Wind-2,2020,1841400.0,55800.0
N-Wind-1,2030,1841400.0,55800.0
N-Wind-2,2030,1841400.0,55800.0
C-Coal_IGCC,2020,2983440.0,23138.4
C-Coal_IGCC,2030,2983440.0,23138.4
C-NG_CC,2020,915120.0,4694.64
C-NG_CC,2030,915120.0,4694.64
C-NG_GT,2020,484344.0,3913.44
C-NG_GT,2030,484344.0,3913.44
C-Nuclear,2030,4538400.0,94488.0
C-Biomass_IGCC,2020,2849520.0,70680.0
C-Biomass_IGCC,2030,2849520.0,70680.0
C-Residential_PV,2020,2790000.0,33480.0
C-Residential_PV,2030,2447760.0,30504.0
C-Commercial_PV,2020,2484960.0,33480.0
C-Commercial_PV,2030,2202240.0,30504.0
C-Central_PV-1,2020,1867440.0,33480.0
C-Central_PV-2,2020,1867440.0,33480.0
C-Central_PV-1,2030,1718640.0,30504.0
C-Central_PV-2,2030,1718640.0,30504.0
C-Wind-1,2020,1473120.0,44640.0
C-Wind-2,2020,1473120.0,44640.0
C-Wind-1,2030,1473120.0,44640.0
C-Wind-2,2030,1473120.0,44640.0
S-Geothermal,2020,6629040.0,0.0
S-Geothermal,2030,6629040.0,0.0
S-NG_CC,2020,1372680.0,7041.96
S-NG_CC,2030,1372680.0,7041.96
S-NG_CC_CCS,2030,4185000.0,20534.4
S-NG_GT,2020,726516.0,5870.16
S-NG_GT,2030,726516.0,5870.16
S-Biomass_IGCC,2020,4274280.0,106020.0
S-Biomass_IGCC,2030,4274280.0,106020.0
S-Biomass_IGCC_CCS,2030,7164720.0,120862.8
S-Residential_PV,2020,4185000.0,50220.0
S-Residential_PV,2030,3671640.0,45756.0
S-Commercial_PV,2020,3727440.0,50220.0
S-Commercial_PV,2030,3303360.0,45756.0
S-Central_PV-1,2020,2801160.0,50220.0
S-Central_PV-2,2020,2801160.0,50220.0
S-Central_PV-1,2030,2577960.0,45756.0
S-Central_PV-2,2030,2577960.0,45756.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
GENERATION_PROJECT,build_year,gen_predetermined_cap
N-Coal_ST,1995,2
N-Geothermal,2000,1
N-NG_CC,2008,2
N-NG_GT,2009,2
C-Coal_ST,1985,2
C-NG_CC,2005,2
C-NG_GT,2005,2
S-Geothermal,1998,3
S-NG_CC,2000,5
S-NG_GT,1990,3
S-NG_GT,2002,2
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
GENERATION_PROJECT,gen_tech,gen_load_zone,gen_connect_cost_per_mw,gen_capacity_limit_mw,gen_full_load_heat_rate,gen_variable_om,gen_max_age,gen_min_build_capacity,gen_scheduled_outage_rate,gen_forced_outage_rate,gen_is_variable,gen_is_baseload,gen_is_cogen,gen_energy_source,gen_unit_size,gen_ccs_capture_efficiency,gen_ccs_energy_load,gen_storage_efficiency,gen_store_to_release_ratio
N-Geothermal,Geothermal,North,163081.1,1.5,.,28.83,30,0,0.0075,0.0241,0,1,0,Geothermal,.,.,.,.,.
N-Coal_IGCC,Coal_IGCC,North,57566.6,.,7.95,6.0822,40,0,0.08,0.12,0,1,0,Coal,10.0,.,.,.,.
N-Coal_IGCC_CCS,Coal_IGCC_CCS,North,57566.6,.,10.38,9.858,40,0,0.08,0.12,0,1,0,Coal,.,0.85,0.234104046,.,.
N-Coal_ST,Coal_ST,North,57566.6,.,9.0,3.4,40,0,0.06,0.1,0,1,0,Coal,.,.,.,.,.
N-NG_CC,NG_CC,North,57566.6,.,6.705,3.4131,20,0,0.04,0.06,0,0,0,NaturalGas,.,.,.,.,.
N-NG_CC_CCS,NG_CC_CCS,North,57566.6,.,10.08,9.3,20,0,0.04,0.06,0,0,0,NaturalGas,.,0.85,0.334821429,.,.
N-NG_GT,NG_GT,North,57566.6,.,10.39,27.807,20,0,0.04,0.06,0,0,0,NaturalGas,.,.,.,.,.
N-Nuclear,Nuclear,North,57566.6,.,9.72,0.0,40,1000,0.04,0.06,0,1,0,Uranium,.,.,.,.,.
N-Biomass_IGCC,Biomass_IGCC,North,57566.6,.,12.5,13.95,40,0,0.09,0.076,0,1,0,BioSolid,.,.,.,.,.
N-Biomass_IGCC_CCS,Biomass_IGCC_CCS,North,57566.6,.,16.3208,20.1307,40,0,0.09,0.076,0,1,0,BioSolid,.,0.85,0.234115557,.,.
N-Residential_PV,Residential_PV,North,0.0,1.5,.,0.0,20,0,0.0,0.02,1,0,0,Solar,.,.,.,.,.
N-Commercial_PV,Commercial_PV,North,0.0,2.0,.,0.0,20,0,0.0,0.02,1,0,0,Solar,.,.,.,.,.
N-Central_PV-1,Central_PV,North,51272.0,3.0,.,0.0,20,0,0.0,0.02,1,0,0,Solar,.,.,.,.,.
N-Central_PV-2,Central_PV,North,101661.0,2.0,.,0.0,20,0,0.0,0.02,1,0,0,Solar,.,.,.,.,.
N-Wind-1,Wind,North,71602.0,4.0,.,0.0,30,0,0.05,0.006,1,0,0,Wind,.,.,.,.,.
N-Wind-2,Wind,North,80259.0,1.0,.,0.0,30,0,0.05,0.006,1,0,0,Wind,.,.,.,.,.
C-Coal_IGCC,Coal_IGCC,Central,57566.6,.,7.95,4.86576,40,0,0.08,0.12,0,1,0,Coal,10.0,.,.,.,.
C-Coal_ST,Coal_ST,Central,57566.6,.,9.5,3.6,40,0,0.06,0.1,0,1,0,Coal,.,.,.,.,.
C-NG_CC,NG_CC,Central,57566.6,.,6.705,2.73048,20,0,0.04,0.06,0,0,0,NaturalGas,.,.,.,.,.
C-NG_GT,NG_GT,Central,57566.6,.,10.39,22.2456,20,0,0.04,0.06,0,0,0,NaturalGas,.,.,.,.,.
C-Nuclear,Nuclear,Central,57566.6,.,9.72,0.0,40,1000,0.04,0.06,0,1,0,Uranium,.,.,.,.,.
C-Biomass_IGCC,Biomass_IGCC,Central,57566.6,.,12.5,11.16,40,0,0.09,0.076,0,1,0,BioSolid,.,.,.,.,.
C-Residential_PV,Residential_PV,Central,0.0,0.5,.,0.0,20,0,0.0,0.02,1,0,0,Solar,.,.,.,.,.
C-Commercial_PV,Commercial_PV,Central,0.0,0.7,.,0.0,20,0,0.0,0.02,1,0,0,Solar,.,.,.,.,.
C-Central_PV-1,Central_PV,Central,122526.8,2.0,.,0.0,20,0,0.0,0.02,1,0,0,Solar,.,.,.,.,.
C-Central_PV-2,Central_PV,Central,45197.2,3.0,.,0.0,20,0,0.0,0.02,1,0,0,Solar,.,.,.,.,.
C-Wind-1,Wind,Central,72541.5,4.0,.,0.0,30,0,0.05,0.006,1,0,0,Wind,.,.,.,.,.
C-Wind-2,Wind,Central,77892.2,3.0,.,0.0,30,0,0.05,0.006,1,0,0,Wind,.,.,.,.,.
S-Geothermal,Geothermal,South,134222.0,3.0,.,34.596,30,0,0.0075,0.0241,0,1,0,Geothermal,.,.,.,.,.
S-NG_CC,NG_CC,South,57566.6,.,6.705,4.09572,20,0,0.04,0.06,0,0,0,NaturalGas,.,.,.,.,.
S-NG_CC_CCS,NG_CC_CCS,South,57566.6,.,10.08,11.16,20,0,0.04,0.06,0,0,0,NaturalGas,.,0.85,0.334821429,.,.
S-NG_GT,NG_GT,South,57566.6,5.0,10.39,33.3684,20,0,0.04,0.06,0,0,0,NaturalGas,.,.,.,.,.
S-Biomass_IGCC,Biomass_IGCC,South,57566.6,.,12.5,16.74,40,0,0.09,0.076,0,1,0,BioSolid,.,.,.,.,.
S-Biomass_IGCC_CCS,Biomass_IGCC_CCS,South,57566.6,.,16.3208,24.15684,40,0,0.09,0.076,0,1,0,BioSolid,.,0.85,0.234115557,.,.
S-Residential_PV,Residential_PV,South,0.0,3.0,.,0.0,20,0,0.0,0.02,1,0,0,Solar,.,.,.,.,.
S-Commercial_PV,Commercial_PV,South,0.0,3.3,.,0.0,20,0,0.0,0.02,1,0,0,Solar,.,.,.,.,.
S-Central_PV-1,Central_PV,South,74881.9,0.8,.,0.0,20,0,0.0,0.02,1,0,0,Solar,.,.,.,.,.
S-Central_PV-2,Central_PV,South,65370.3,0.4,.,0.0,20,0,0.0,0.02,1,0,0,Solar,.,.,.,.,.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
LOAD_ZONE,dbid,existing_local_td,local_td_annual_cost_per_mw
North,1,5.5,66406.5
Central,2,3.5,61663.4
South,3,9.5,128040.0
22 changes: 22 additions & 0 deletions examples/3zone_toy_policy_tx_cap_in_zone/inputs/loads.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
LOAD_ZONE,TIMEPOINT,zone_demand_mw
North,1,5.0
North,2,4.0
North,3,4.5
North,4,4.2
North,5,4.0
North,6,6.0
North,7,6.0
Central,1,3.7
Central,2,3.0
Central,3,3.6
Central,4,3.3
Central,5,3.0
Central,6,4.0
Central,7,4.6
South,1,6.0
South,2,7.0
South,3,6.5
South,4,7.2
South,5,8.0
South,6,10.0
South,7,10.5
16 changes: 16 additions & 0 deletions examples/3zone_toy_policy_tx_cap_in_zone/inputs/modules.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Core Modules
switch_model
switch_model.timescales
switch_model.financials
switch_model.balancing.load_zones
switch_model.energy_sources.properties
switch_model.generators.core.build
switch_model.generators.core.dispatch
switch_model.reporting
# Custom Modules
switch_model.transmission.local_td
switch_model.generators.core.no_commit
switch_model.energy_sources.fuel_costs.markets
switch_model.transmission.transport.build
switch_model.transmission.transport.dispatch
switch_model.policies.tx_cap_in_zone
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
energy_source
Wind
Solar
Geothermal
Water
Electricity
3 changes: 3 additions & 0 deletions examples/3zone_toy_policy_tx_cap_in_zone/inputs/periods.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
INVESTMENT_PERIOD,period_start,period_end
2020,2017,2026
2030,2027,2036
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
regional_fuel_market,fuel
All_DistOil,DistillateFuelOil
All_NG,NaturalGas
North_Bio,BioSolid
South_Bio,BioSolid
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2.0.6
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
timepoint_id,timestamp,timeseries
1,2025011500,2020_01winter
2,2025011512,2020_01winter
3,2025011600,2020_01winter
4,2025011612,2020_01winter
5,2025061500,2020_06summer
6,2025061512,2020_06summer
7,2035011512,2030_all
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
TIMESERIES,ts_period,ts_duration_of_tp,ts_num_tps,ts_scale_to_period
2020_01winter,2020,12,4,913.12
2020_06summer,2020,12,2,1826.25
2030_all,2030,24,1,3652.5
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
trans_capital_cost_per_mw_km,trans_lifetime_yrs,trans_fixed_om_fraction,distribution_loss_rate
1000.0,20,0.03,0.053
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
TRANSMISSION_LINE,trans_lz1,trans_lz2,trans_length_km,trans_efficiency,existing_trans_cap,trans_derating_factor
N-C,North,Central,100,0.96,3,0.96
C-S,Central,South,200,0.94,6,0.96
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
TX_CAP_GROUPS,PERIODS,tx_cap_lowerbound_mw,tx_cap_upperbound_mw
AREA1,2020,0.1,.
AREA2,2020,0.1,.
AREA2,2030,0.1,2
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
TX_CAP_GROUPS,LOAD_ZONE
AREA1,North
AREA1,Central
AREA2,South
AREA2,Central
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
GENERATION_PROJECT,timepoint,gen_max_capacity_factor
N-Residential_PV,1,0.0
N-Residential_PV,2,0.55
N-Residential_PV,3,0.0
N-Residential_PV,4,0.6
N-Residential_PV,5,0.0
N-Residential_PV,6,0.72
N-Residential_PV,7,0.33
N-Commercial_PV,1,0.0
N-Commercial_PV,2,0.65
N-Commercial_PV,3,0.0
N-Commercial_PV,4,0.66
N-Commercial_PV,5,0.0
N-Commercial_PV,6,0.73
N-Commercial_PV,7,0.38
N-Central_PV-1,1,0.0
N-Central_PV-1,2,0.56
N-Central_PV-1,3,0.0
N-Central_PV-1,4,0.62
N-Central_PV-1,5,0.0
N-Central_PV-1,6,0.73
N-Central_PV-1,7,0.41
N-Central_PV-2,1,0.0
N-Central_PV-2,2,0.6
N-Central_PV-2,3,0.0
N-Central_PV-2,4,0.61
N-Central_PV-2,5,0.0
N-Central_PV-2,6,0.81
N-Central_PV-2,7,0.36
C-Residential_PV,1,0.0
C-Residential_PV,2,0.59
C-Residential_PV,3,0.0
C-Residential_PV,4,0.64
C-Residential_PV,5,0.0
C-Residential_PV,6,0.74
C-Residential_PV,7,0.34
C-Commercial_PV,1,0.0
C-Commercial_PV,2,0.61
C-Commercial_PV,3,0.0
C-Commercial_PV,4,0.66
C-Commercial_PV,5,0.0
C-Commercial_PV,6,0.74
C-Commercial_PV,7,0.4
C-Central_PV-1,1,0.0
C-Central_PV-1,2,0.61
C-Central_PV-1,3,0.0
C-Central_PV-1,4,0.64
C-Central_PV-1,5,0.0
C-Central_PV-1,6,0.79
C-Central_PV-1,7,0.39
C-Central_PV-2,1,0.0
C-Central_PV-2,2,0.64
C-Central_PV-2,3,0.0
C-Central_PV-2,4,0.68
C-Central_PV-2,5,0.0
C-Central_PV-2,6,0.72
C-Central_PV-2,7,0.41
S-Residential_PV,1,0.0
S-Residential_PV,2,0.57
S-Residential_PV,3,0.0
S-Residential_PV,4,0.66
S-Residential_PV,5,0.0
S-Residential_PV,6,0.75
S-Residential_PV,7,0.34
S-Commercial_PV,1,0.0
S-Commercial_PV,2,0.57
S-Commercial_PV,3,0.0
S-Commercial_PV,4,0.63
S-Commercial_PV,5,0.0
S-Commercial_PV,6,0.79
S-Commercial_PV,7,0.34
S-Central_PV-1,1,0.0
S-Central_PV-1,2,0.61
S-Central_PV-1,3,0.0
S-Central_PV-1,4,0.7
S-Central_PV-1,5,0.0
S-Central_PV-1,6,0.75
S-Central_PV-1,7,0.37
S-Central_PV-2,1,0.0
S-Central_PV-2,2,0.64
S-Central_PV-2,3,0.0
S-Central_PV-2,4,0.63
S-Central_PV-2,5,0.0
S-Central_PV-2,6,0.74
S-Central_PV-2,7,0.4
N-Wind-1,1,0.6
N-Wind-1,2,0.3
N-Wind-1,3,0.65
N-Wind-1,4,0.42
N-Wind-1,5,0.12
N-Wind-1,6,0.05
N-Wind-1,7,0.8
N-Wind-2,1,0.68
N-Wind-2,2,0.33
N-Wind-2,3,0.71
N-Wind-2,4,0.46
N-Wind-2,5,0.17
N-Wind-2,6,0.13
N-Wind-2,7,0.87
C-Wind-1,1,0.66
C-Wind-1,2,0.4
C-Wind-1,3,0.73
C-Wind-1,4,0.5
C-Wind-1,5,0.22
C-Wind-1,6,0.05
C-Wind-1,7,0.8
C-Wind-2,1,0.62
C-Wind-2,2,0.36
C-Wind-2,3,0.66
C-Wind-2,4,0.48
C-Wind-2,5,0.14
C-Wind-2,6,0.05
C-Wind-2,7,0.86
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
LOAD_ZONE,balancing_area
North,NorthCentral
Central,NorthCentral
South,South
Loading