forked from watertap-org/watertap
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable RO0D to be dynamic (watertap-org#1471)
* revised dyanmic and has holdup for membrane channel base/RO 0D, but prop pack needs get_material_density_terms * Changed dynamic and has_holdup to not be hardcoded to False * run black * cleanup test * Fixed NaCl property package as per TIm's instructions to allow dynamics * add material_density by component * blk * put mat dens expr in right place * fix mat dens epr brackets * fix ro test * blk * fix unintentional addition of conc_mass_phase_comp to state vars * remove commented out code * add new instance with simple configs * black * Added numbers to initialize RO0D unit_models * raise config error for simple RO * Added pressure change back in to be identical to Adam's specs * setup.py point to dynamic_cv0d * add back pyomo * black * revert debug changes after idaes PR fix; add check to tests to check units on material_accumulation * cleanup and check material_holdup * adjust test * blk * initialize without the assert_units_consistent check in place * mixed_permeate as CV0D * black RO-base * add permeate port to mixed_permeate * revert debug changes after idaes PR fix; add check to tests to check units on material_accumulation * cleanup and check material_holdup * adjust test * blk * initialize without the assert_units_consistent check in place * undo RO0D and RObase changes * revert setup.py * black again * add idaes temporary dependency * black * add idaes dependency with CV0D fix * blk * move assertion * Currently DOF=2 * petsc succeeds with DOF=0 * cleanup * bring my changes back in after merging with fahim's last commits * remove unused imports * one more import to delete * add petsc to github actions * skip test for workflows that don't have petsc available; note, tests work and pass for windows/linux checks * Nonzero accumulation. Can get dynamic change now. * Getting a plot for RO0D now. * Plotting permeate NaCl conc. * Plotting feed outlet C_NaCl * Blacked RO0D test * Plots 5 things. * Preliminary results obtained. * try to fix failed mac test and run black * revised dyanmic and has holdup for membrane channel base/RO 0D, but prop pack needs get_material_density_terms * add material_density by component * fix mat dens epr brackets * add new instance with simple configs * raise config error for simple RO * black * revert debug changes after idaes PR fix; add check to tests to check units on material_accumulation * revert debug changes after idaes PR fix; add check to tests to check units on material_accumulation * petsc succeeds with DOF=0 * Currently DOF=2 * bring my changes back in after merging with fahim's last commits * remove unused imports * Validate dynamic results. * Validate dynamic model. * Validate dynamic model. * black * try to fix test_cstr * bk * test commit * black again * remove unused import * Revert "try to fix failed mac test and run black" This reverts commit 546d4d7. * test ro back up and running * run black and remove extra import * cleanup RO base * Apply suggestions from code review Co-authored-by: Ludovico Bianchi <[email protected]> * Update setup.py Co-authored-by: Ludovico Bianchi <[email protected]> * fix checks * probe failure * bring back reverted commit * Revert "Merge branch 'main' into dynamic-exploratory2" This reverts commit 1cdd1a2, reversing changes made to a282f18. * remove file that surprisingly made its way into a commit * point to 2.6rc * adjust HRT constraint on cstr and check failing macos test * remove unused import * black * reset membrance_channel0d to match main * merge main flowsheets * bring back other changes that are in main already * revert hydraulic retention time constraint * checkpoint: add scaling to cstr but didn't note any affect on BSM2-P solver iterations; also replacing aeration tank on bsm2-p instead of cstr_injection with flowsheet level vars and constraints * add requires idaes solver mark for dynamic ro test * cleanup * Revert "checkpoint: add scaling to cstr but didn't note any affect on BSM2-P solver iterations; also replacing aeration tank on bsm2-p instead of cstr_injection with flowsheet level vars and constraints" This reverts commit bd2caa8. * black * address pylint --------- Co-authored-by: Adam Atia <[email protected]> Co-authored-by: kurbansitterley <[email protected]> Co-authored-by: Ludovico Bianchi <[email protected]>
- Loading branch information
1 parent
8c651de
commit 53bd64e
Showing
6 changed files
with
160 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters