forked from watertap-org/watertap-reflo
-
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.
Merge pull request watertap-org#85 from kurbansitterley/air_stripping
AirStripping0D and AirWaterEquilibrium Property Model + Docs
- Loading branch information
Showing
18 changed files
with
5,942 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
[run] | ||
omit = */tests/* | ||
omit = */tests/* |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
361 changes: 361 additions & 0 deletions
361
docs/technical_reference/property_models/air_water_equilibrium_properties.rst
Large diffs are not rendered by default.
Oops, something went wrong.
95 changes: 95 additions & 0 deletions
95
docs/technical_reference/property_models/basic_water_properties.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,95 @@ | ||
.. _basic_water_prop_ref: | ||
|
||
Basic Water Property Package | ||
============================ | ||
|
||
The basic water property package is meant to calculate the most basic of water properties for WaterTAP unit models | ||
from the volumetric flow rate and the component mass concentration. | ||
All components are assumed to be in the liquid phase and properties are indexed only to component where appropriate. | ||
|
||
Sets | ||
---- | ||
.. csv-table:: | ||
:header: "Description", "Symbol", "Indices" | ||
|
||
"Components", ":math:`j`", "``['H2O']``" | ||
|
||
State variables | ||
--------------- | ||
.. csv-table:: | ||
:header: "Description", "Symbol", "Variable", "Index", "Units" | ||
|
||
"Volumetric flow rate", ":math:`Q`", "``flow_vol``", "None", ":math:`\text{m}^{3} \text{ s}^{-1}`" | ||
"Component mass concentration", ":math:`C_j`", "``conc_mass_comp``", "``[j]``", ":math:`\text{kg m}^{-3}`" | ||
|
||
Properties | ||
---------- | ||
.. csv-table:: | ||
:header: "Description", "Symbol", "Variable", "Index", "Units" | ||
|
||
"Component mass flowrate", ":math:`M_j`", "``flow_mass_comp``", "``[j]``", ":math:`\text{kg s}^{-1}`" | ||
"Mass density of pure water", ":math:`\rho`", "``dens_mass``", "None", ":math:`\text{kg m}^{-3}`" | ||
"Dynamic viscosity of solution", ":math:`\mu_d`", "``visc_d``", "None", ":math:`\text{kg m}^{-1}\text{ s}^{-1}`" | ||
"Temperature", ":math:`T`", "``temperature``", "None", ":math:`\text{K}`" | ||
"Pressure", ":math:`P`", "``pressure``", "None", ":math:`\text{Pa}`" | ||
|
||
Relationships | ||
------------- | ||
.. csv-table:: | ||
:header: "Description", "Equation" | ||
|
||
"Component mass flowrate", ":math:`M_j = Q C_j`" | ||
|
||
Scaling | ||
------- | ||
|
||
All properties have default scaling factors except ``flow_mass_comp``. Users can apply a custom scaling factor or | ||
it will be calculated automatically by calling ``calculate_scaling_factors`` on the flowsheet: | ||
|
||
.. code-block:: | ||
from pyomo.environ import ConcreteModel | ||
from idaes.core import FlowsheetBlock | ||
from idaes.core.util.scaling import calculate_scaling_factors | ||
from watertap_contrib.reflo.property_models.basic_water_properties import BasicWaterParameterBlock | ||
# relevant assignments | ||
m = ConcreteModel() | ||
m.fs = FlowsheetBlock(dynamic=False) | ||
m.fs.properties = BasicWaterParameterBlock() | ||
# calculate scaling factors | ||
calculate_scaling_factors(m.fs) | ||
The default scaling factors are as follows: | ||
|
||
* :math:`\text{10}^{-2}` for temperature | ||
* :math:`\text{10}^{-5}` for pressure | ||
* :math:`\text{10}^{3}` for mass density | ||
* :math:`\text{10}^{3}` for mass concentration | ||
|
||
|
||
Classes | ||
------- | ||
.. currentmodule:: watertap_contrib.reflo.property_models.basic_water_properties | ||
|
||
.. autoclass:: BasicWaterParameterBlock | ||
:members: | ||
:noindex: | ||
|
||
.. autoclass:: BasicWaterParameterBlockData | ||
:members: | ||
:noindex: | ||
|
||
.. autoclass:: _BasicWaterStateBlock | ||
:members: | ||
:noindex: | ||
|
||
.. autoclass:: BasicWaterStateBlockData | ||
:members: | ||
:noindex: | ||
|
||
|
||
|
||
|
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,9 @@ | ||
Property Models | ||
=============== | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
basic_water_properties | ||
air_water_equilibrium_properties | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
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.