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.
This pull request introduces support for Combined Heat and Power (CHP) systems that can produce thermal energy independently of electric production, enabling modeling of technologies such as nuclear or geothermal plants. It adds new constraints, variables, results reporting, and tests for this "independent thermal" operating mode, while maintaining backward compatibility for traditional CHP. The update also includes comprehensive tests and scenario files for validation.
Independent Thermal CHP Mode Support
can_produce_thermal_independentlyand associated min/max thermal capacity fields to theCHPstruct, allowing the model to distinguish between traditional and independent thermal CHP technologies. [1] [2]chp_constraints.jlfor independent thermal operation:dvThermalSizefor thermal source sizing when in independent mode.Results and Reporting Enhancements
size_thermal_kwfor thermal capacity.annual_thermal_production_from_source_mmbtufor total thermal output (including that used for electric generation), both only when independent thermal mode is active. [1] [2] [3]Testing and Validation
chp_independent_thermal.json) and a comprehensive test script (test_chp_independent_thermal.jl) that verifies the physics, constraints, and results for independent thermal CHP, including detailed checks on energy balances and efficiency calculations. [1] [2]These changes significantly extend the flexibility and accuracy of the CHP modeling framework, enabling robust analysis of advanced thermal generation technologies.