Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
f32ebbb
Flash Unite and HDA Flowsheet Tutorial Revisions to reflect changes t…
tannerpolley Jun 12, 2025
3604a41
Flash Unite and HDA Flowsheet Tutorial Revisions to reflect changes t…
tannerpolley Jun 13, 2025
6359e81
Updated version numbers for GitHub Actions to version 4
tannerpolley Jun 13, 2025
f819b5e
Updated version numbers for GitHub Actions to version 4 and other iss…
tannerpolley Jun 16, 2025
6675345
Updated version numbers for GitHub Actions to version 4 and other iss…
tannerpolley Jun 16, 2025
4e40e56
Updated version numbers for GitHub Actions to version 4 and other iss…
tannerpolley Jun 16, 2025
0051c10
Updated version numbers for GitHub Actions to version 4 and other iss…
tannerpolley Jun 16, 2025
e352c2d
Updated version numbers for GitHub Actions to version 4 and other iss…
tannerpolley Jun 17, 2025
f8f3af4
Updated version numbers for GitHub Actions to version 4 and other iss…
tannerpolley Jun 18, 2025
b3f5eb1
Revised both Tutorials based on feedback and ensured they both work a…
tannerpolley Jun 24, 2025
3094a8b
Fixed spelling and ran Black
tannerpolley Jun 26, 2025
14cdccb
Fixing pytesting for earlier versions
tannerpolley Jun 26, 2025
5ced5b0
Update core.yml
ksbeattie Aug 21, 2025
f165fa2
Created config files to implement modular properties framework and in…
tannerpolley Aug 25, 2025
d361197
Merge remote-tracking branch 'origin/Tutorial-Update' into Tutorial-U…
tannerpolley Aug 25, 2025
25ec437
Revised HDA Flowsheet to use the new State Definition FpTPxpc and add…
tannerpolley Dec 3, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions .github/workflows/core.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: Tests

on:
push:
branches:
Expand Down Expand Up @@ -88,7 +87,7 @@ jobs:
- win64
include:
- os: linux
runner-image: ubuntu-20.04
runner-image: ubuntu-latest
- os: win64
runner-image: windows-2022
steps:
Expand All @@ -109,10 +108,10 @@ jobs:
run: |
pwd
ls idaes_examples
pytest -v idaes_examples --ignore=idaes_examples/notebooks/docs/surrogates/sco2/alamo/
pytest -v idaes_examples --ignore=idaes_examples/notebooks/docs/surrogates/sco2/alamo/
- name: Upload pytest-xdist worker logs
if: success() || failure()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: pytest_worker_logs
name: pytest-xdist-logs-${{ matrix.python-version }}-${{ runner.os }}
path: "tests_*.log"
15 changes: 9 additions & 6 deletions idaes_examples/mod/hda/hda_ideal_VLE.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
log,
NonNegativeReals,
Var,
value,
Set,
Param,
sqrt,
Expand All @@ -45,6 +46,7 @@
LiquidPhase,
VaporPhase,
)
from idaes.core.util.model_statistics import degrees_of_freedom
from idaes.core.util.constants import Constants as const
from idaes.core.util.initialization import fix_state_vars, solve_indexed_blocks
from idaes.core.initialization import InitializerBase
Expand Down Expand Up @@ -548,10 +550,10 @@ def fix_initialization_states(blk):
# Fix state variables
fix_state_vars(blk)

# Also need to deactivate sum of mole fraction constraint
for k in blk.values():
if not k.config.defined_state:
k.equilibrium_constraint.deactivate()
# # Also need to deactivate sum of mole fraction constraint
# for k in blk.values():
# if not k.config.defined_state:
# k.equilibrium_constraint.deactivate()


@declare_process_block_class("IdealStateBlock", block_class=_IdealStateBlock)
Expand Down Expand Up @@ -1011,7 +1013,7 @@ def calculate_dew_point_pressure(self, clear_components=True):
# as needed
def _temperature_bubble(self):
self.temperature_bubble = Param(
initialize=33.0, units=pyunits.K, doc="Bubble point temperature"
initialize=298.15, units=pyunits.K, doc="Bubble point temperature"
)

def _temperature_dew(self):
Expand Down Expand Up @@ -1039,7 +1041,7 @@ def rule_psat_dew(b, j):
)

def rule_temp_dew(b):
return (
ans = (
b.pressure
* sum(
b.mole_frac_comp[i] / b._p_sat_dewT[i]
Expand All @@ -1048,6 +1050,7 @@ def rule_temp_dew(b):
- 1
== 0
)
return ans

self.eq_temperature_dew = Constraint(rule=rule_temp_dew)
except AttributeError:
Expand Down
Loading