-
Notifications
You must be signed in to change notification settings - Fork 59
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
Enable RO0D to be dynamic #1471
Conversation
…rop pack needs get_material_density_terms
As per @adam-a-a, we should wait to merge this until a prototype of the relevant dynamic model(s) has been implemented. |
…tertap into dynamic-exploratory2
…tertap into dynamic-exploratory2
…solver iterations; also replacing aeration tank on bsm2-p instead of cstr_injection with flowsheet level vars and constraints
… 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.
There was a problem hiding this 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, I have a minor suggestion that can be addressed in future
time_nfe = len(m.fs.time) - 1 | ||
TransformationFactory("dae.finite_difference").apply_to( | ||
m.fs, nfe=time_nfe, wrt=m.fs.time, scheme="BACKWARD" | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might be better to add this as a config option in future.
Fixes/Resolves: Membrane and RO modules being forced to be steady-state.
(replace this with the issue # fixed or resolved, if no issue exists then a brief statement of what this PR does)
Summary/Motivation:
At the moment,
dynamic
andhas_holdup
terms are hardcoded to beFalse
in the membrane channel base class and RO 0D class. I have changed them to be allowed to beBool
and inherit from the model declaration.Changes proposed in this PR:
dynamic
andhas_holdup
domains toBool
inwatertap/core/membrane_channel_base.py
dynamic
andhas_holdup
in_add_feed_side_membrane_channel_and_geometry
method ofwatertap/unit_models/reverse_osmosis_0D.py
to inherit fromself.config
Legal Acknowledgement
By contributing to this software project, I agree to the following terms and conditions for my contribution: