Skip to content

Commit

Permalink
Merge pull request watertap-org#85 from kurbansitterley/air_stripping
Browse files Browse the repository at this point in the history
AirStripping0D and AirWaterEquilibrium Property Model + Docs
  • Loading branch information
kurbansitterley authored Jan 10, 2024
2 parents 4575aa7 + 1ea4efb commit fee5aaa
Show file tree
Hide file tree
Showing 18 changed files with 5,942 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .coveragerc
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.
3 changes: 2 additions & 1 deletion docs/technical_reference/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ Technical Reference
:maxdepth: 2

unit_models/index
..
property_models/index
..
costing/index
tools/index
core/index
Expand Down

Large diffs are not rendered by default.

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:




9 changes: 9 additions & 0 deletions docs/technical_reference/property_models/index.rst
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

343 changes: 343 additions & 0 deletions docs/technical_reference/unit_models/air_stripping.rst

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/technical_reference/unit_models/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Unit Models
.. toctree::
:maxdepth: 1

air_stripping
lt_med_surrogate
med_tvc_surrogate
vagmd_surrogate_base
Expand Down
Loading

0 comments on commit fee5aaa

Please sign in to comment.