Skip to content

Heater and Heat Exchanger Scalers#1694

Merged
dallan-keylogic merged 12 commits intoIDAES:scaling_toolboxfrom
dallan-keylogic:hx_scaler
Oct 31, 2025
Merged

Heater and Heat Exchanger Scalers#1694
dallan-keylogic merged 12 commits intoIDAES:scaling_toolboxfrom
dallan-keylogic:hx_scaler

Conversation

@dallan-keylogic
Copy link
Contributor

Summary/Motivation:

Adds scaler objects for the heater and heat exchanger models.

Legal Acknowledgement

By contributing to this software project, I agree to the following terms and conditions for my contribution:

  1. I agree my contributions are submitted under the license terms described in the LICENSE.txt file at the top level of this directory.
  2. I represent I am authorized to make the contributions and grant the license. If my employer has rights to intellectual property that includes these contributions, I represent that I have received permission to make contributions and grant the required license on behalf of that employer.

@codecov
Copy link

codecov bot commented Oct 30, 2025

Codecov Report

❌ Patch coverage is 89.74359% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 77.40%. Comparing base (5b20e31) to head (e5b9bfa).
⚠️ Report is 3 commits behind head on scaling_toolbox.

Files with missing lines Patch % Lines
idaes/models/unit_models/heat_exchanger.py 87.09% 0 Missing and 4 partials ⚠️
Additional details and impacted files
@@               Coverage Diff                @@
##           scaling_toolbox    #1694   +/-   ##
================================================
  Coverage            77.39%   77.40%           
================================================
  Files                  395      395           
  Lines                64592    64629   +37     
  Branches             10851    10859    +8     
================================================
+ Hits                 49993    50026   +33     
  Misses               12093    12093           
- Partials              2506     2510    +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@dallan-keylogic dallan-keylogic marked this pull request as ready for review October 30, 2025 19:57
Tests for 0D heat exchanger models.

Author: John Eslick
Authors: John Eslick, Will Stralhl, Douglas Allan
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor typo: my last name is "Strahl"
Appreciate the authorship attribution despite the magnitude of the contribution :)

"""

__author__ = "John Eslick"
__author__ = "John Eslick, Will Stralhl, Douglas Allan"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor typo: my last name is "Strahl"

)

cold_side_h_in[t] = h_in_cold
hot_side_h_in[t] = h_in_hot
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you can remove the storing of the enthalpy flows in the dictionaries - they are not used. (This is an artifact of my attempt)

Copy link
Contributor

@agarciadiego agarciadiego left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dallan-keylogic dallan-keylogic merged commit 9094267 into IDAES:scaling_toolbox Oct 31, 2025
43 checks passed
@dallan-keylogic dallan-keylogic deleted the hx_scaler branch October 31, 2025 17:04
dallan-keylogic added a commit that referenced this pull request Nov 6, 2025
* feat: add 0d heat exchanger scaler

* HX0D scaling

* heater scaler

* attribution

* pylint

* avoid reliance on integration tests

* review

* minor change to reset diffs

* revert minor change

---------

Co-authored-by: strahlw <[email protected]>
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