Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated the HDA example exercise and solution #62

Merged
merged 33 commits into from
Aug 29, 2024
Merged
Show file tree
Hide file tree
Changes from 23 commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
87fa04d
Updated the HDA example exercise and solution
Jul 10, 2023
4d0f546
Merge branch 'updated-HDA_initialization' of https://github.com/Javal…
bpaul4 Oct 17, 2023
594e73d
Update initialization to new API
bpaul4 Oct 18, 2023
6ae20d3
Try including autoscaling
bpaul4 Oct 18, 2023
5d2ffbd
updating files
May 7, 2024
a34abf3
updating for tests
May 7, 2024
873eda8
updating to main
May 7, 2024
76ee7fe
updating files
May 7, 2024
8135698
trying to debug the values
JavalVyas2000 Jun 13, 2024
412e564
commiting this version to save it
JavalVyas2000 Jun 26, 2024
5877a1c
Merge branch 'main' into updated-HDA_initialization
JavalVyas2000 Jun 26, 2024
acad35c
updating notebook
JavalVyas2000 Jul 8, 2024
9fed5c7
Merge branch 'updated-HDA_initialization' of https://github.com/Javal…
JavalVyas2000 Jul 8, 2024
5619469
updating all notebooks
JavalVyas2000 Jul 8, 2024
c7c3670
fixing typos
JavalVyas2000 Jul 8, 2024
ddb65f8
trying to fix for linux tests
JavalVyas2000 Jul 9, 2024
b84f0d7
Merge branch 'main' of https://github.com/IDAES/examples into updated…
JavalVyas2000 Aug 19, 2024
5633212
updating other errors
JavalVyas2000 Aug 19, 2024
72c7378
updating other examples
JavalVyas2000 Aug 19, 2024
6f56663
adding default initializer in reactions prop
JavalVyas2000 Aug 19, 2024
a0dd311
resolving reaction prop failure
JavalVyas2000 Aug 19, 2024
e513f05
resolving costing test
JavalVyas2000 Aug 19, 2024
654f801
tests pass locally
Aug 20, 2024
e2baba0
trying to resolve the CI error
Aug 20, 2024
afa18a4
trying to resolve test
Aug 20, 2024
c9aa62c
resolving hda_with_distillation error
Aug 20, 2024
c9e2d29
updating other files
Aug 20, 2024
37dc9eb
removing unnecessary files
Aug 20, 2024
c330e9c
updating initialization except block
Aug 22, 2024
0db8d45
resolving test failure
Aug 22, 2024
91eccf5
Merge branch 'main' into updated-HDA_initialization
JavalVyas2000 Aug 22, 2024
7a14f7c
applying black and adding InitializationError in except block
Aug 28, 2024
a8f191d
rerunning HDA flowsheet
Aug 28, 2024
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
Binary file added idaes_examples - Shortcut.lnk
Binary file not shown.
265 changes: 96 additions & 169 deletions idaes_examples/mod/hda/hda_ideal_VLE.py

Large diffs are not rendered by default.

10 changes: 9 additions & 1 deletion idaes_examples/mod/tut/visualizer_tutorial.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,15 @@ def initialize_model(m: ConcreteModel) -> ConcreteModel:
seq.set_guesses_for(m.fs.H101.inlet, tear_guesses)

def initialize_unit(unit):
unit.initialize(outlvl=idaeslog.DEBUG)
try:
initializer = unit.default_initializer()
initializer.initialize(unit, output_level=idaeslog.INFO)
except Exception as e:
if e=='InitializationError':
initializer.initialize(unit, output_level=idaeslog.INFO)
else:
print(f'Unit {unit} did not initialize successfully')

JavalVyas2000 marked this conversation as resolved.
Show resolved Hide resolved

seq.run(m, initialize_unit)
return m
Expand Down
1,301 changes: 1,272 additions & 29 deletions idaes_examples/notebooks/docs/flowsheets/hda_flowsheet_with_distillation.ipynb

Large diffs are not rendered by default.

Loading
Loading