Integrating methanol with Direct Ocean Capture CO2#239
Integrating methanol with Direct Ocean Capture CO2#239jmartin4u merged 37 commits intoNatLabRockies:developfrom
Conversation
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
|
@johnjasa and @kbrunik - I built in a test to run my new integrated DOC/methanol example and it is passing locally. But on GitHub we're getting this error with the new test. Any reason why this error would pop up in my integrated test when it doesn't in the standalone DOC test? Idk how to debug since the test passes locally. |
I realized there was a line added before all the other tests with mcm: Now tests are passing both locally (with mcm) and on GitHub (without mcm) |
|
@jmartin4nrel we can use the feature add from #248 for CO2 storage, it just got added to |
kbrunik
left a comment
There was a problem hiding this comment.
Thanks for making this Jonathan! It's a really cool extension of H2I's features with multiple flows combining into a single fuel. I'd love to see a few of the more recent feature adds in H2I get utilized in this PR and we can talk today about it. The other thing would be making the example a little more realistic by moving it near the coast or fully offshore. I can certainly help with some of these requested changes
| commodity: "methanol" | ||
| finance_groups: ["methanol"] | ||
| technologies: ["methanol"] | ||
| # methanol: |
There was a problem hiding this comment.
@elenya-grant this is the finance handling issue I'm talking about
There was a problem hiding this comment.
Yes haven't figured out why this is happening yet
johnjasa
left a comment
There was a problem hiding this comment.
This looks nice to me! I really appreciate your example additions. The plotting method you added is real slick, too, that'll be quite useful for folks looking for more examples of how to postprocess H2I runs.
I pushed some small changes directly to the branch based on a comment from @kbrunik. Only last remaining question is about those two potentially extraneous wind resource files that Kaitlin noted. I won't request changes here so as to not hold up the PR!
| commodity: "methanol" | ||
| finance_groups: ["methanol"] | ||
| technologies: ["methanol"] | ||
| # methanol: |
| from h2integrate.core.model_baseclasses import CostModelBaseClass | ||
|
|
||
|
|
||
| class CO2TankPerformanceModel(om.ExplicitComponent): |
There was a problem hiding this comment.
Noting this for the future, no need to change in this PR. But for the next tank class we add to H2I we should genericize. I made an issue here: #292
There was a problem hiding this comment.
removed this since it wasn't used and generic storage was in the example
kbrunik
left a comment
There was a problem hiding this comment.
I think it looks good to go! Thanks @jmartin4nrel for all your work on this effort
Integrating methanol with Direct Ocean Capture CO2
This sets up a new example in which the existing direct ocean capture tech is used to send CO2 to a CO2 hydrogenation methanol production plant located offshore on the Gulf. This plant also uses hydrogen from electrolysis powered by offshore wind with H2 storage and dispatch, tying a bunch of tech nicely together. The current example uses 312 MW of electrolysis (~ the size found feasible in the ECO project) combined with 2000 tons of H2 storage to keep a 100,000 tpy methanol plant fullyk supplied with the H2 it needs for most of the year, with some shortfall in the summer months when wind is lower. Currently there is not a CO2 storage and dispatch (at least not a working one - @kbrunik is there something we could implement from the DOC model?), so the methanol plant does not operate at full capacity.
Type of Contribution
General PR Checklist
CHANGELOG.mdhas been updated to describe the changes made in this PRdocs/files are up-to-date, or added when necessaryImpacted areas of the software
examples/03_methanol/co2_hydrogenation_doc: Added this example of DOC integrating with methanol, particular files of interest:examples/03_methanol/co2_hydrogenation_doc/run_co2h_methanol.py: Script to run this exampleexamples/03_methanol/co2_hydrogenation_doc/plot_co2h_methanol.py: A plotting function imported into the above script which draws out all the material flows going into the methanol plantconverters/co2/marine/direct_ocean_capture.py: Fleshed out docstrings, added aco2_outoutput for interconnectionconverters/co2/marine/marine_carbon_capture_baseclass.py: Added aco2_outoutput for interconnectionconverters/methanol/methanol_baseclass.py: Added atotal_methanol_producedoutput for ProFast finance calculationsconverters/methanol/smr_methanol_plant.py: Added atotal_methanol_producedoutput and corrected Opex calc for ProFast finance calculationsconverters/methanol/co2h_methanol_plant.py: Added atotal_methanol_producedoutput and corrected Opex calc for ProFast finance calculationscore/h2integrate_model.py: Removed methanol from lists of techs not to include in ProFast financial calculationsAdditional supporting information
Test results, if applicable