-
Notifications
You must be signed in to change notification settings - Fork 235
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reformulate solubility_products constraints (#1197)
* Modified log_solubility_product function to accomodate the comparison betweem s and Q. Modified bounds of mole_frac_phase_comp to be consistent with those of log_mole_frac_phase_comp * Remove comments * run black * Update state_difinitions vars lower bouds * Add mutable parameters for reformated solubility_product * Update solubility_product tests * test_plate_heat_exchanger.py Remove initialization opts after updating bounds in state_difinitions * run black * Reverse changes for lower bounds in state_definition * Add assertion for default s_norm and a_scale checking * Typo corrected * Add documentation for solubility_product * Update doc string * Equation corrected for sulubility product doc * Switch to set_value for default s_norm * Scaling applied in subsaturated cases (low concentrations) to use default solver options * Run black --------- Co-authored-by: Xinhong Liu <[email protected]> Co-authored-by: Bernard Knueven <[email protected]> Co-authored-by: Andrew Lee <[email protected]> Co-authored-by: Ludovico Bianchi <[email protected]>
- Loading branch information
1 parent
ad5b8ad
commit 52d7d5c
Showing
4 changed files
with
192 additions
and
44 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
Oops, something went wrong.