NatLabRockies / NatLabRockies/H2Integrate
Individual or Subgroups of Technology Commodity Production in Finance Calculations
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 26
- Forks
- 44
- Avg merge
- 3d 22h
- Merged PRs (30d)
- 16
Description
Ability to split out commodity at different points to use as commodity production in finance calculations.
The desired enhancement may be best explained with an example problem.
Suppose I have a system with wind, solar, battery, natural gas technologies (all electricity producing technologies) to try and achieve some demand. I want to calculate the LCOE for the following cases:
- LCOE of wind and solar total production: wind and solar cost included and using total electricity production of wind plant and solar plant
- LCOE of wind and solar and battery for demand: wind, solar, and battery costs and using the total electricity production thats used to satisfy the demand (the sum of
battery.electricity_out) - LCOE of wind and solar and battery total production: wind, solar, and battery costs and using the total electricity production (the sum of
battery.electricity_out + battery.electricity_curtailedwhich should be similar to the sum ofwind.electricity_out + solar.electricity_out, differences would arise because of the battery's initial SOC) - LCOE of wind, solar, battery, and natural gas plant for demand: costs of wind, solar, battery, natural gas plant, and natural gas feedstock. This requires passing the missed load from the battery into the natural gas plant as the electricity demand. Then using the sum of
battery.electricity_outandnatural_gas_plant.electricity_outas the total electricity production. - LCOE of wind, solar, battery, and natural gas plant total production: costs of wind, solar, battery, natural gas plant, and natural gas feedstock. This requires passing the missed load from the battery into the natural gas plant as the electricity demand. Then using the sum of
battery.electricity_outandnatural_gas_plant.electricity_outandbattery.electricity_curtailedas the total electricity production.
Proposed solution
- Modify the
ElectricitySumCompto not sum all the electricity produced by the technologies in the tech config but to instead sum electricity from inputs, make theElectricitySumCompbe able to take in various inputs. Or - have summing done in the combiners. - Add a generic summer to
supported_models - (small): change combiner connection in H2Integrate model to not depend on electricity OR make a commodity-neutral combiner
total_commodity_producedinput into finance models should be done intechnology_interconnectionsof the plant config rather than in h2integrate_model.py
NOTE: Other thing is how to include a load demand and still pass the missed load to the natural gas plant if we don't have a battery.
Alternatives considered
Additional context
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Trace how ElectricitySumComp, supported_models, H2Integrate, plant-config technology_interconnections, and the finance models currently determine total commodity production. Compare those paths with the five wind, solar, battery, and natural-gas calculation cases described in the issue, including missed-load handling. Done means commodity-specific inputs can drive the required demand and total-production calculations without depending on a fixed technology list.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100