-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add VMD, PGMD/CGMD * modifies gap heat conduction * black * modifies scaling factor calculations * VMD modifications * modifications for PGMD * black * modifies VMD * modifies PGMD * Revert "updates" This reverts commit 3792195, reversing changes made to 8070194. * Reapply "updates" This reverts commit 42005cf. * 1D VMD and PGMD * resolve PGMD heat balance issue at inlet for 0D model. PGMD 1D was working as expected * refine tests * revise tests * black * linting * resolve doc issue * resolve doc issue * refine tests * resolve doc issue * improve scaling * Update watertap/unit_models/MD/membrane_distillation_1D.py Co-authored-by: MarcusHolly <96305519+MarcusHolly@users.noreply.github.com> * Update watertap/unit_models/tests/test_membrane_distillation_0D.py Co-authored-by: Adam Atia <aatia@keylogic.com> * add docs for new configs and 1D MD * resolve doc issue * doc revise * Update docs/technical_reference/unit_models/membrane_distillation_1D.rst Co-authored-by: MarcusHolly <96305519+MarcusHolly@users.noreply.github.com> * Update docs/technical_reference/unit_models/membrane_distillation_0D.rst Co-authored-by: MarcusHolly <96305519+MarcusHolly@users.noreply.github.com> * Update docs/technical_reference/unit_models/membrane_distillation_1D.rst Co-authored-by: MarcusHolly <96305519+MarcusHolly@users.noreply.github.com> * Update docs/technical_reference/unit_models/membrane_distillation_0D.rst Co-authored-by: MarcusHolly <96305519+MarcusHolly@users.noreply.github.com> * Update docs/technical_reference/unit_models/membrane_distillation_1D.rst Co-authored-by: MarcusHolly <96305519+MarcusHolly@users.noreply.github.com> * rename PGMD_CGMD to GMD * categorize equations based on MD config type --------- Co-authored-by: Ludovico Bianchi <lbianchi@lbl.gov> Co-authored-by: MarcusHolly <96305519+MarcusHolly@users.noreply.github.com> Co-authored-by: Adam Atia <aatia@keylogic.com>
- Loading branch information
1 parent
500647b
commit 9eb240e
Showing
11 changed files
with
2,437 additions
and
312 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
88 changes: 88 additions & 0 deletions
88
docs/technical_reference/unit_models/membrane_distillation_1D.rst
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
Membrane Distillation (1D) | ||
========================================= | ||
|
||
This Membrane Distillation (MD) unit model: | ||
* supports the following configurations: | ||
|
||
- **DCMD** (Direct Contact Membrane Distillation) | ||
- **VMD** (Vacuum Membrane Distillation) | ||
- **GMD** (Permeate Gap/Conductive Gap Membrane Distillation) | ||
|
||
* is 1-dimensional | ||
* supports steady-state only | ||
* assumes heat loss in equipment is negligible | ||
* assumes permeate exits the membrane pores with zero salinity | ||
* assumes no concentration polarization for the cold channel | ||
* assumes complete vapor condensation for the cold channel (in DCMD and GMD) | ||
* accounts for vapor expansion in VMD | ||
* assumes linear temperature change across gap channel (in GMD) | ||
* assumes no pressure change and temperature polarization in VMD vaccuum channel | ||
|
||
|
||
Degrees of Freedom | ||
------------------ | ||
In addition to the hot channel and cold channel inlet state variables (i.e, temperature, pressure, and component flowrates) for the **DCMD** and **GMD** configurations, the MD model has at least **4 degrees of freedom** for all configurations that should be fixed for the unit to be fully specified. Typically, the following variables are fixed: | ||
|
||
- Membrane permeability coefficient | ||
- Membrane thickness | ||
- Membrane thermal conductivity | ||
- Recovery *or* membrane area | ||
|
||
**Additional degress of freedom**: | ||
|
||
- **VMD** introduces vacuum pressure at the cold side. | ||
- **GMD** introduces gap thermal conductivity and gap thickness. | ||
|
||
Configuring the MD unit to calculate temperature polarization, concentration polarization, mass transfer | ||
coefficient, and pressure drop would result in five additional degrees of freedom. In this case, in addition to the | ||
previously fixed variables, we typically fix the following variables to fully specify the unit: | ||
|
||
* Hot channel spacer porosity | ||
* Hot channel height | ||
* Cold channel spacer porosity (in DCMD and GMD) | ||
* Cold channel height (in DCMD and GMD) | ||
* Membrane length *or* membrane width | ||
|
||
Model Structure | ||
--------------- | ||
The MD model consists of a separate `MDchannel1Dblock` for each channel depending on the configuration: | ||
|
||
- **DCMD**: Includes **hot channel** and **cold channel**. | ||
- **VMD**: Includes **hot channel** and **vacuum (cold) channel**. | ||
- **GMD**: Includes **hot channel**, **gap channel**, and **cold channel**. | ||
|
||
- **hot and cold channels in all configurations** includes bulk properties StateBlocks indexed by time and space which are used for mass, energy, and momentum balances | ||
- **hot channel in all configurations, cold channel in DCMD and GMD, and gap channel in GMD** includes StateBlocks indexed by time and space for the conditions at the membrane interface and gap interface | ||
- **hot channel in all configurations, cold channel in DCMD, and gap channel in GMD** includes StateBlocks indexed by time and space for Vapor properties at the membrane interface (for **DCMD** and **VMD** configurations). | ||
|
||
Sets | ||
---- | ||
.. csv-table:: | ||
:header: "Description", "Symbol", "Indices" | ||
|
||
"Time", ":math:`t`", "[0]" | ||
"Space", ":math:`x`", "None" | ||
"Phases", ":math:`p`", "['Liq', 'Vap']" | ||
"Components", ":math:`j`", "['H2O', solute]*" | ||
|
||
\*Solute depends on the imported property model. | ||
|
||
Variables | ||
---------- | ||
|
||
Refer to the :any:`0MD_variables` section in the 0D MD model. | ||
|
||
.. _1MD_equations: | ||
|
||
Equations | ||
----------- | ||
|
||
Refer to the :any:`0MD_equations` section in the 0D MD model. | ||
|
||
Class Documentation | ||
------------------- | ||
|
||
* :mod:`watertap.unit_models.MD.membrane_distillation_1D` | ||
* :mod:`watertap.unit_models.MD.membrane_distillation_base` | ||
* :mod:`watertap.unit_models.MD.MD_channel_1D` | ||
* :mod:`watertap.unit_models.MD.MD_channel_base` |
Oops, something went wrong.