watertap.examples.flowsheets.full_treatment_train.model_components package
Subpackages
- watertap.examples.flowsheets.full_treatment_train.model_components.eNRTL package
- Submodules
- watertap.examples.flowsheets.full_treatment_train.model_components.eNRTL.entrl_config_FTPx module
- watertap.examples.flowsheets.full_treatment_train.model_components.eNRTL.entrl_config_FpcTP module
- watertap.examples.flowsheets.full_treatment_train.model_components.eNRTL.test_enrtl module
- Module contents
Submodules
watertap.examples.flowsheets.full_treatment_train.model_components.property_models module
Seawater feed specifications for supported property packages
watertap.examples.flowsheets.full_treatment_train.model_components.seawater_ion_prop_pack module
Simple property package for Na-Ca-Mg-SO4-Cl solution represented with ions
- class watertap.examples.flowsheets.full_treatment_train.model_components.seawater_ion_prop_pack.PropParameterBlock(*args, **kwds)
Bases:
ProcessBlock
- Parameters
rule (function) – A rule function or None. Default rule calls build().
concrete (bool) – If True, make this a toplevel model. Default - False.
ctype (class) – Pyomo ctype of the block. Default - pyomo.environ.Block
default (dict) –
Default ProcessBlockData config
- Keys
- default_arguments
Default arguments to use with Property Package
initialize (dict) – ProcessBlockData config for individual elements. Keys are BlockData indexes and values are dictionaries described under the “default” argument above.
idx_map (function) – Function to take the index of a BlockData element and return the index in the initialize dict from which to read arguments. This can be provided to overide the default behavior of matching the BlockData index exactly to the index in initialize.
- Returns
(PropParameterBlock) New instance
- class watertap.examples.flowsheets.full_treatment_train.model_components.seawater_ion_prop_pack.PropParameterData(component)[source]
Bases:
PhysicalParameterBlock
- class watertap.examples.flowsheets.full_treatment_train.model_components.seawater_ion_prop_pack.PropStateBlock(*args, **kwds)
Bases:
_PropStateBlock
- Parameters
rule (function) – A rule function or None. Default rule calls build().
concrete (bool) – If True, make this a toplevel model. Default - False.
ctype (class) – Pyomo ctype of the block. Default - pyomo.environ.Block
default (dict) –
Default ProcessBlockData config
- Keys
- parameters
A reference to an instance of the Property Parameter Block associated with this property package.
- defined_state
Flag indicating whether the state should be considered fully defined, and thus whether constraints such as sum of mass/mole fractions should be included, default - False. Valid values: { True - state variables will be fully defined, False - state variables will not be fully defined.}
- has_phase_equilibrium
Flag indicating whether phase equilibrium constraints should be constructed in this state block, default - True. Valid values: { True - StateBlock should calculate phase equilibrium, False - StateBlock should not calculate phase equilibrium.}
initialize (dict) – ProcessBlockData config for individual elements. Keys are BlockData indexes and values are dictionaries described under the “default” argument above.
idx_map (function) – Function to take the index of a BlockData element and return the index in the initialize dict from which to read arguments. This can be provided to overide the default behavior of matching the BlockData index exactly to the index in initialize.
- Returns
(PropStateBlock) New instance
watertap.examples.flowsheets.full_treatment_train.model_components.seawater_salt_prop_pack module
Simple property package for Na-Ca-Mg-SO4-Cl solution represented with salts
- class watertap.examples.flowsheets.full_treatment_train.model_components.seawater_salt_prop_pack.PropParameterBlock(*args, **kwds)
Bases:
ProcessBlock
- Parameters
rule (function) – A rule function or None. Default rule calls build().
concrete (bool) – If True, make this a toplevel model. Default - False.
ctype (class) – Pyomo ctype of the block. Default - pyomo.environ.Block
default (dict) –
Default ProcessBlockData config
- Keys
- default_arguments
Default arguments to use with Property Package
initialize (dict) – ProcessBlockData config for individual elements. Keys are BlockData indexes and values are dictionaries described under the “default” argument above.
idx_map (function) – Function to take the index of a BlockData element and return the index in the initialize dict from which to read arguments. This can be provided to overide the default behavior of matching the BlockData index exactly to the index in initialize.
- Returns
(PropParameterBlock) New instance
- class watertap.examples.flowsheets.full_treatment_train.model_components.seawater_salt_prop_pack.PropParameterData(component)[source]
Bases:
PhysicalParameterBlock
- class watertap.examples.flowsheets.full_treatment_train.model_components.seawater_salt_prop_pack.PropStateBlock(*args, **kwds)
Bases:
_PropStateBlock
- Parameters
rule (function) – A rule function or None. Default rule calls build().
concrete (bool) – If True, make this a toplevel model. Default - False.
ctype (class) – Pyomo ctype of the block. Default - pyomo.environ.Block
default (dict) –
Default ProcessBlockData config
- Keys
- parameters
A reference to an instance of the Property Parameter Block associated with this property package.
- defined_state
Flag indicating whether the state should be considered fully defined, and thus whether constraints such as sum of mass/mole fractions should be included, default - False. Valid values: { True - state variables will be fully defined, False - state variables will not be fully defined.}
- has_phase_equilibrium
Flag indicating whether phase equilibrium constraints should be constructed in this state block, default - True. Valid values: { True - StateBlock should calculate phase equilibrium, False - StateBlock should not calculate phase equilibrium.}
initialize (dict) – ProcessBlockData config for individual elements. Keys are BlockData indexes and values are dictionaries described under the “default” argument above.
idx_map (function) – Function to take the index of a BlockData element and return the index in the initialize dict from which to read arguments. This can be provided to overide the default behavior of matching the BlockData index exactly to the index in initialize.
- Returns
(PropStateBlock) New instance
watertap.examples.flowsheets.full_treatment_train.model_components.unit_0DRO module
0D reverse osmosis examples
watertap.examples.flowsheets.full_treatment_train.model_components.unit_1DRO module
1D reverse osmosis examples
watertap.examples.flowsheets.full_treatment_train.model_components.unit_ZONF module
Zero order nanofiltration model based on specifying solvent flux and solute rejection
watertap.examples.flowsheets.full_treatment_train.model_components.unit_separator module
Simple zero order separator examples