Skip to content

Scaler for Feed, Product, and StateJunction unit models#1689

Merged
dallan-keylogic merged 19 commits intoIDAES:scaling_toolboxfrom
dallan-keylogic:feed_scaler
Oct 30, 2025
Merged

Scaler for Feed, Product, and StateJunction unit models#1689
dallan-keylogic merged 19 commits intoIDAES:scaling_toolboxfrom
dallan-keylogic:feed_scaler

Conversation

@dallan-keylogic
Copy link
Contributor

Summary/Motivation:

Adds a scaler for the Feed, Product, and StateJunction unit models. Because these unit models have no unit-level variables or constraints, the scaler simply calls the property package's scaler.

Depends on #1685 .

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 22, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 77.33%. Comparing base (657dae1) to head (6a30322).
⚠️ Report is 12 commits behind head on scaling_toolbox.

Additional details and impacted files
@@               Coverage Diff                @@
##           scaling_toolbox    #1689   +/-   ##
================================================
  Coverage            77.33%   77.33%           
================================================
  Files                  395      395           
  Lines                64315    64324    +9     
  Branches             10781    10781           
================================================
+ Hits                 49736    49745    +9     
  Misses               12081    12081           
  Partials              2498     2498           

☔ 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.

Comment on lines +29 to +32
from idaes.models.unit_models.feed import (
FeedInitializer as ProductInitializer,
FeedScaler as ProductScaler,
)
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a better name we can give the FeedInitializer and FeedScaler since they'll also be used for products and statejunctions?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes---we could call them SingleStateBlockInitializer and SingleStateBlockScaler. I don't want to manage a deprecation cycle for the old name right now, though.

Copy link
Contributor

@MarcusHolly MarcusHolly left a comment

Choose a reason for hiding this comment

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

One minor comment, but LGTM

@dallan-keylogic dallan-keylogic merged commit 4a0c084 into IDAES:scaling_toolbox Oct 30, 2025
82 checks passed
@dallan-keylogic dallan-keylogic deleted the feed_scaler branch October 30, 2025 12:35
dallan-keylogic added a commit that referenced this pull request Nov 6, 2025
* rescue from old branch

* change methodology to get reference state

* beginning testing

* more tests

* round out separator scaling testing

* extract leach solution properties

* ideal separation and inherent reaction tests

* flash tests

* run black

* cull unused imports

* test failures and unused code

* Fully breaks dependence on ControlVolumeScalerBase

* remove defunct scaler

* black

* Scaler for feed, product, and state junction

* respond to Marcus's comments
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.

3 participants