Skip to content

Separator and Flash Scaler#1685

Merged
dallan-keylogic merged 18 commits intoIDAES:scaling_toolboxfrom
dallan-keylogic:separator_scaler
Oct 27, 2025
Merged

Separator and Flash Scaler#1685
dallan-keylogic merged 18 commits intoIDAES:scaling_toolboxfrom
dallan-keylogic:separator_scaler

Conversation

@dallan-keylogic
Copy link
Contributor

Summary/Motivation:

Adds scaler objects for the Separator and Flash unit 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 21, 2025

Codecov Report

❌ Patch coverage is 88.19444% with 17 lines in your changes missing coverage. Please review.
✅ Project coverage is 77.33%. Comparing base (bb36afc) to head (8b88d19).
⚠️ Report is 13 commits behind head on scaling_toolbox.

Files with missing lines Patch % Lines
idaes/models/unit_models/separator.py 89.52% 7 Missing and 4 partials ⚠️
idaes/models/unit_models/flash.py 78.57% 2 Missing and 1 partial ⚠️
idaes/models/unit_models/mixer.py 50.00% 1 Missing and 1 partial ⚠️
idaes/core/base/control_volume_base.py 91.66% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@                 Coverage Diff                 @@
##           scaling_toolbox    #1685      +/-   ##
===================================================
+ Coverage            77.30%   77.33%   +0.02%     
===================================================
  Files                  395      395              
  Lines                64192    64315     +123     
  Branches             10736    10781      +45     
===================================================
+ Hits                 49626    49736     +110     
- Misses               12073    12081       +8     
- Partials              2493     2498       +5     

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

None
"""
# Fix state variables
fix_state_vars(self)
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this import missing?

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, it was.

Copy link
Contributor

@Ryan-Hughes-8 Ryan-Hughes-8 left a comment

Choose a reason for hiding this comment

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

Looks good to me other than the couple spots where it looks like typos are introduced.

_raise_split_unindexed_fail_err(b.name, l_name)
else:
# Unrecognised split type
# Unrecognised split tupe
Copy link
Contributor

Choose a reason for hiding this comment

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

?

description="Ideal splitting flag",
doc="""Argument indicating whether ideal splitting should be used.
Ideal splitting assumes perfect separation of material, and attempts to
Ideal splitting assumes perfect spearation of material, and attempts to
Copy link
Contributor

Choose a reason for hiding this comment

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

?

@dallan-keylogic dallan-keylogic merged commit 657dae1 into IDAES:scaling_toolbox Oct 27, 2025
45 checks passed
@dallan-keylogic dallan-keylogic deleted the separator_scaler branch October 27, 2025 20:04
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

* respond to Marcus's comments

* docstring
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