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

Multi fuels #1

Merged
merged 32 commits into from
Nov 21, 2023
Merged

Multi fuels #1

merged 32 commits into from
Nov 21, 2023

Conversation

lbonaldo
Copy link
Owner

No description provided.

fc4uk and others added 30 commits May 16, 2023 18:11
1.	In load_fuels_data.jl, there is no need to scale fuel_co2 as it will cause scaling issues when the parameter scale is on.
2.	In load_generator_data.jl, remove the start up fuel costs as all the costs associated with fuel consumption will be accounted in fuel.jl.
3.	In discharge.jl, remove the fuel costs as they will be separately accounted in fuel.jl
4.	In Generate_model.jl, remove emissions!(EP, inputs) as emissions.jl will be replaced by CO2.jl. include fuel.jl.
5.	Fuel.jl is a module that tracks the consumption (MMBTU or billion BTU scaled) and costs ($ or million $) of fuels used in generators (startup fuels included as well). It also includes a piecewise fuel consumption option if you want to represent the fuel consumption during different load factor.
6.	CO2.jl is an updated version of emissios.jl, and we don’t need emissions.jl when we have co2.jl. Also added BECCS options in CO2.jl, line 29 and line 39. Basically, when BECCS plants are included, “Generator_data.csv” should have a column named “BECCS”, and the values under “BECCS” column should be 1 for BECCS facilities and 0 for non-BECCS facilities. The amount of CO2 captured and stored for BECCS generators are accounted in the same way as other thermal generators, but its corresponding emissions should be negative.
7.	Modified write_costs such that fuel costs are appropriately included.
8.	Include write_co2.jl and write_fuel_consumption.jl, which give co2 emissions and fuel consumption for each generator.

Co-Authored-By: Qingyu Xu <[email protected]>
accidently deleted eEmissionsByZone... added them in this version.

Co-Authored-By: Qingyu Xu <[email protected]>
1. Reduce the number of variables by removing P1 and P2
2. Add a placeholder for possible different heat rates when cofiring
3. Change column name "Fuel1" back to "Fuel"
…a loading script to use defaults if second fuel is not in input file
Add constraints related to EPA new rules: capacity factor, emission rate, ...
Add varialbes "THERM_DUAL" and "THERM_SING"
Apply maximum co-fire level constraints to THERM_DUAL

\
allow users to specify "Fuel1", "Fuel2", ..., "FuelN"
enable resources to use multi fuels for both startup and operations
remove codes related to "fuel2"
create a new example case "ThreeZones_Multi_Fuel"
include multiple fuels in write_fuel_consumption
separate consumption and costs of fuels during startup and normal operations when writing outputs
add descriptions and math for multi fuels
make heat rates 0 for non-thermal resources
add conditional evaluation to fuel.jl and write_fueL_consumption so that the model can run when multi_fuel does not exist.
Separate startup and generation fuels when writing outputs
Add blending level constraints during startup processes and corresponding new columns in Generators_data.jl
Fix bugs for blending constraints
1. add fuel cost for multi-fuel resources (ePlantCFuelOut_multi, ePlantCFuelOut_multi_start);
2. make eCFuel_out only consider fuel costs during generation;
3. change *_startup to _start to be consistent with other files;
4. delete the column for start fuel costs when writing costs and combine it with generation fuel cost
5. add error message when both "PieceWiseHeatRate" and "MULTI_FUELS" exist;
6. fix some typos when calculating fuel costs.
1. enable RETROFIT by commenting out the error message in load_generators_data.jl
2. add the variable "MULTI_FUELS" to indicate whether a resource uses multi fuels when writing fuel consumption
3. bug fix
1. Fix eFuelConsumption and fuel costs for MULTI_FUELS resources;
2. Fix bugs in writing out retrofitted capacity;
3. Disable writing some CO2 emission outputs when only unit-level CO2 emission constraints are used
1. Remove constraints on capacity factors
2. Remove constraints on unit-level emission rates
3. Change a column name in Fuel_cost_plant.csv (from "AnnualSum" to "AnnualSumCosts)
4. Remove EPA example system
1. remove the setting on capacity factor from settings file;
2. enable writing capacity retrofit only when there is retrofit resources;
3. update README.md for the new example case
1. add the description of new variables in data_documentation.md
fc4uk and others added 2 commits November 21, 2023 09:41
include the cost or credits associated with CO2 sequestration to the write_net_revenue.jl
@lbonaldo lbonaldo merged commit 7c79529 into develop Nov 21, 2023
9 checks passed
@lbonaldo lbonaldo deleted the multi_fuels branch June 25, 2024 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants