Moving from HOPP wave to native H2I pysam wave - #825
Open
johnjasa wants to merge 8 commits into
Open
Conversation
johnjasa
marked this pull request as ready for review
August 5, 2026 21:07
kbrunik
requested changes
Aug 6, 2026
kbrunik
left a comment
Collaborator
There was a problem hiding this comment.
Just a few small changes before I think it's ready to come in. Thanks for pulling this together (especially so quickly)!
| + {py:class}`~h2integrate.converters.steel.steel.SteelCostAndFinancialModel` - An OpenMDAO component for calculating the costs associated with steel production. | ||
|
|
||
| - `water_power`: tidal and run-of-river hydropower | ||
| - `water_power`: wave, tidal, and run-of-river hydropower |
Collaborator
There was a problem hiding this comment.
yes glad we are oxford comma people here
johnjasa
marked this pull request as draft
August 6, 2026 16:38
johnjasa
marked this pull request as ready for review
August 6, 2026 16:38
kbrunik
approved these changes
Aug 6, 2026
kbrunik
left a comment
Collaborator
There was a problem hiding this comment.
Assuming the tests pass this looks good to me!
28 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add PySAM wave energy performance model to replace HOPP wave module
PySAMWavePerformanceModelwrapping PySAMMhkWaveas an H2I-compatible OpenMDAO component.WaveResourcecomponent to read and interpolate DOE WPTO wave resource CSV files.supported_models.py.direct_ocean_capture) to use the new wave model in place of HOPP.Section 1: Type of Contribution
Section 2: Draft PR Checklist
TODO:
WaveResourcecomponentPySAMWavePerformanceModelsupported_models.pyType of Reviewer Feedback Requested (on Draft PR)
Structural feedback: Is the
resource_yearapproach for timestamp generation acceptable, or should timestamps always come from the resource file?Implementation feedback: N/A
Other feedback: N/A
Section 3: General PR Checklist
docs/files are up-to-date (wave model docs page TBD)CHANGELOG.mdSection 4: Related Issues
Works towards #824
Section 5: Impacted Areas
5.1 New Files
h2integrate/resource/wave.py-WaveResourceOpenMDAO componenth2integrate/converters/water_power/wave_pysam.py-PySAMWavePerformanceConfigandPySAMWavePerformanceModelh2integrate/converters/water_power/test/test_wave_pysam.py- unit tests5.2 Modified Files
h2integrate/converters/water_power/__init__.py- addedPySAMWavePerformanceModelexporth2integrate/core/supported_models.py- registeredWaveResourceandPySAMWavePerformanceModelexamples/09_co2/direct_ocean_capture/tech_config.yaml- replaced HOPP with wave modelexamples/09_co2/direct_ocean_capture/plant_config.yaml- updated resource and technology connectionsSection 6: Additional Info
The existing
PySAMMarineCostModel(which already supports wave reference models RM3, RM5, RM6) is reused as the cost model for the wave technology. No changes were needed there.annual_energyandcapacity_factorare not available as direct outputs from PySAMMhkWavein time-series mode, so they are computed from the simulated generation time series and thefraction_of_year_simulatedbase-class property.Section 8: New Model Checklist
PerformanceModelBaseClass_time_step_boundsset to(3600, 3600)(hourly, matching wave resource interpolation)_control_classifierset to"flexible"commodity,commodity_rate_units,commodity_amount_unitsset ininitializesupported_models.py@pytest.mark.unitno_cost_models- cost model is provided viaPySAMMarineCostModel