-
Notifications
You must be signed in to change notification settings - Fork 236
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into add_gray_box_do_counting
- Loading branch information
Showing
22 changed files
with
1,325 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
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
46 changes: 46 additions & 0 deletions
46
docs/reference_guides/model_libraries/generic/unit_models/stream_scaler.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,46 @@ | ||
Stream Scaler Block | ||
=================== | ||
|
||
Stream Scaler Blocks are used to adjust size of streams to represent, for example, a stream being split across several identical units, which are then all modeled as a single IDAES unit | ||
|
||
Degrees of Freedom | ||
------------------ | ||
|
||
Stream Scaler blocks have one degree of freedom (beyond the state variables in the ``StateBlock`` properties), a ``Var`` called ``multiplier``. It is the factor by which extensive state variables (defined as those having "flow" in their name) are scaled, with ``output_var = multiplier * input_var``. | ||
|
||
Model Structure | ||
--------------- | ||
|
||
Stream Scaler Blocks consists of a single ``StateBlock`` (named properties), each with an inlet and outlet port. | ||
|
||
Additional Constraints | ||
---------------------- | ||
|
||
Stream Scaler Blocks write no additional constraints* (besides those naturally occurring in ``StateBlocks``). | ||
|
||
Variables | ||
--------- | ||
|
||
Stream Scaler blocks add no additional Variables. | ||
|
||
.. module:: idaes.models.unit_models.stream_scaler | ||
|
||
|
||
Initialization | ||
-------------- | ||
|
||
.. autoclass:: StreamScalerInitializer | ||
:members: initialization_routine | ||
|
||
StreamScaler Class | ||
------------------ | ||
|
||
.. autoclass:: StreamScaler | ||
:members: | ||
|
||
StreamScalerData Class | ||
---------------------- | ||
|
||
.. autoclass:: StreamScalerData | ||
:members: | ||
|
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 |
---|---|---|
|
@@ -6,3 +6,5 @@ Additional IDAES Model Libraries | |
|
||
phe | ||
temperature_swing_adsorption/fixed_bed_tsa0d | ||
membrane_model/1d_membrane | ||
|
39 changes: 39 additions & 0 deletions
39
docs/reference_guides/model_libraries/models_extra/membrane_model/1d_membrane.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,39 @@ | ||
One-dimensional membrane class for CO2 gas separation | ||
================================================================ | ||
|
||
This is a one-dimensional model for gas separation in CO₂ capture applications. | ||
The model will be discretized in the flow direction, and it supports two flow patterns: | ||
counter-current flow and co-current flow. The model was customized for gas-phase separation | ||
in CO₂ capture with a single-layer design. If a multi-layer design is needed, multiple units | ||
can be connected for this application. The two sides of the membrane are called the feed side | ||
and sweep side. The sweep stream inlet is optional. The driving force across the membrane is the | ||
partial pressure difference in this gas separation application. Additionally, the energy balance | ||
assumes that temperature remains constant on each side of the membrane. | ||
|
||
Variables | ||
--------- | ||
|
||
Model Inputs - symbol: | ||
|
||
* Membrane length - :math:`L` | ||
* Membrane Area - :math:`A` | ||
* Permeance - :math:`per` | ||
* Feed flowrate - :math:`F_fr` | ||
* Feed compositions - :math:`x` | ||
* Feed pressure - :math:`P` | ||
* Feed temperature - :math:`T` | ||
|
||
|
||
Model Outputs : | ||
|
||
* Permeate compositions | ||
* Permeate flowrate | ||
|
||
Degrees of Freedom | ||
------------------ | ||
|
||
The DOF should be 0 for square problem simulations. | ||
|
||
|
||
|
||
|
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
2 changes: 1 addition & 1 deletion
2
docs/tutorials/getting_started/install_templates/quickstart.txt
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
File renamed without changes.
File renamed without changes.
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.