watertap.property_models.unit_specific package
Subpackages
- watertap.property_models.unit_specific.activated_sludge package
- Submodules
- watertap.property_models.unit_specific.activated_sludge.asm1_properties module
ASM1ParameterBlockASM1ParameterDataASM1PropertiesScalerASM1StateBlockASM1StateBlockDataASM1StateBlockData.build()ASM1StateBlockData.define_display_vars()ASM1StateBlockData.define_state_vars()ASM1StateBlockData.get_energy_density_terms()ASM1StateBlockData.get_enthalpy_flow_terms()ASM1StateBlockData.get_material_density_terms()ASM1StateBlockData.get_material_flow_basis()ASM1StateBlockData.get_material_flow_terms()
- watertap.property_models.unit_specific.activated_sludge.asm1_reactions module
- watertap.property_models.unit_specific.activated_sludge.asm2d_properties module
ASM2dParameterBlockASM2dParameterDataASM2dStateBlockASM2dStateBlockDataASM2dStateBlockData.build()ASM2dStateBlockData.define_display_vars()ASM2dStateBlockData.define_state_vars()ASM2dStateBlockData.get_energy_density_terms()ASM2dStateBlockData.get_enthalpy_flow_terms()ASM2dStateBlockData.get_material_density_terms()ASM2dStateBlockData.get_material_flow_basis()ASM2dStateBlockData.get_material_flow_terms()
- watertap.property_models.unit_specific.activated_sludge.asm2d_reactions module
- watertap.property_models.unit_specific.activated_sludge.modified_asm2d_properties module
ModifiedASM2dParameterBlockModifiedASM2dParameterDataModifiedASM2dPropertiesScalerModifiedASM2dStateBlockModifiedASM2dStateBlockDataModifiedASM2dStateBlockData.build()ModifiedASM2dStateBlockData.define_display_vars()ModifiedASM2dStateBlockData.define_state_vars()ModifiedASM2dStateBlockData.get_energy_density_terms()ModifiedASM2dStateBlockData.get_enthalpy_flow_terms()ModifiedASM2dStateBlockData.get_material_density_terms()ModifiedASM2dStateBlockData.get_material_flow_basis()ModifiedASM2dStateBlockData.get_material_flow_terms()
- watertap.property_models.unit_specific.activated_sludge.modified_asm2d_reactions module
- Module contents
- watertap.property_models.unit_specific.anaerobic_digestion package
- Submodules
- watertap.property_models.unit_specific.anaerobic_digestion.adm1_properties module
ADM1ParameterBlockADM1ParameterDataADM1PropertiesScalerADM1StateBlockADM1StateBlockDataADM1StateBlockData.build()ADM1StateBlockData.default_scalerADM1StateBlockData.define_display_vars()ADM1StateBlockData.define_state_vars()ADM1StateBlockData.get_energy_density_terms()ADM1StateBlockData.get_enthalpy_flow_terms()ADM1StateBlockData.get_material_density_terms()ADM1StateBlockData.get_material_flow_basis()ADM1StateBlockData.get_material_flow_terms()
- watertap.property_models.unit_specific.anaerobic_digestion.adm1_properties_vapor module
ADM1_vaporParameterBlockADM1_vaporParameterDataADM1_vaporStateBlockADM1_vaporStateBlockDataADM1_vaporStateBlockData.build()ADM1_vaporStateBlockData.define_display_vars()ADM1_vaporStateBlockData.define_state_vars()ADM1_vaporStateBlockData.get_energy_density_terms()ADM1_vaporStateBlockData.get_enthalpy_flow_terms()ADM1_vaporStateBlockData.get_material_density_terms()ADM1_vaporStateBlockData.get_material_flow_basis()ADM1_vaporStateBlockData.get_material_flow_terms()
- watertap.property_models.unit_specific.anaerobic_digestion.adm1_reactions module
- watertap.property_models.unit_specific.anaerobic_digestion.modified_adm1_properties module
ModifiedADM1ParameterBlockModifiedADM1ParameterDataModifiedADM1PropertiesScalerModifiedADM1StateBlockModifiedADM1StateBlockDataModifiedADM1StateBlockData.build()ModifiedADM1StateBlockData.default_scalerModifiedADM1StateBlockData.define_display_vars()ModifiedADM1StateBlockData.define_state_vars()ModifiedADM1StateBlockData.get_energy_density_terms()ModifiedADM1StateBlockData.get_enthalpy_flow_terms()ModifiedADM1StateBlockData.get_material_density_terms()ModifiedADM1StateBlockData.get_material_flow_basis()ModifiedADM1StateBlockData.get_material_flow_terms()
- watertap.property_models.unit_specific.anaerobic_digestion.modified_adm1_reactions module
- Module contents
Submodules
watertap.property_models.unit_specific.NDMA_prop_pack module
Initial property package for H2O-NDMA system
- class watertap.property_models.unit_specific.NDMA_prop_pack.NDMAParameterBlock(*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
Config args
- default_arguments
Default arguments to use with Property Package
initialize (dict) – ProcessBlockData config for individual elements. Keys are BlockData indexes and values are dictionaries with config arguments as keys.
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 override the default behavior of matching the BlockData index exactly to the index in initialize.
- Returns:
(NDMAParameterBlock) New instance
- class watertap.property_models.unit_specific.NDMA_prop_pack.NDMAParameterData(component)[source]
Bases:
PhysicalParameterBlock
- class watertap.property_models.unit_specific.NDMA_prop_pack.NDMAStateBlock(*args, **kwds)
Bases:
_NDMAStateBlock- 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
Config args
- 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 with config arguments as keys.
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 override the default behavior of matching the BlockData index exactly to the index in initialize.
- Returns:
(NDMAStateBlock) New instance
- class watertap.property_models.unit_specific.NDMA_prop_pack.NDMAStateBlockData(*args, **kwargs)[source]
Bases:
StateBlockData
watertap.property_models.unit_specific.coagulation_prop_pack module
Initial property package for water treatment via a Coagulation-Flocculation process
- class watertap.property_models.unit_specific.coagulation_prop_pack.CoagulationParameterBlock(*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
Config args
- default_arguments
Default arguments to use with Property Package
initialize (dict) – ProcessBlockData config for individual elements. Keys are BlockData indexes and values are dictionaries with config arguments as keys.
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 override the default behavior of matching the BlockData index exactly to the index in initialize.
- Returns:
(CoagulationParameterBlock) New instance
- class watertap.property_models.unit_specific.coagulation_prop_pack.CoagulationParameterData(component)[source]
Bases:
PhysicalParameterBlock
- class watertap.property_models.unit_specific.coagulation_prop_pack.CoagulationStateBlock(*args, **kwds)
Bases:
_CoagulationStateBlock- 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
Config args
- 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 with config arguments as keys.
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 override the default behavior of matching the BlockData index exactly to the index in initialize.
- Returns:
(CoagulationStateBlock) New instance
- class watertap.property_models.unit_specific.coagulation_prop_pack.CoagulationStateBlockData(*args, **kwargs)[source]
Bases:
StateBlockData
watertap.property_models.unit_specific.cryst_prop_pack module
Initial crystallization property package for H2O-NaCl system
- class watertap.property_models.unit_specific.cryst_prop_pack.HeatOfCrystallizationModel(value)[source]
Bases:
EnumAn enumeration.
- class watertap.property_models.unit_specific.cryst_prop_pack.NaClParameterBlock(*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
Config args
- default_arguments
Default arguments to use with Property Package
- heat_of_crystallization_model
Options to account for heat of crystallization value for NaCl.
default -
HeatOfCrystallizationModel.constantConfiguration Options
Description
HeatOfCrystallizationModel.constantFixed heat of crystallization for NaCl based on literature
HeatOfCrystallizationModel.zeroZero heat of crystallization assumption
HeatOfCrystallizationModel.temp_dependentTemperature-dependent heat of crystallization for NaCl
initialize (dict) – ProcessBlockData config for individual elements. Keys are BlockData indexes and values are dictionaries with config arguments as keys.
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 override the default behavior of matching the BlockData index exactly to the index in initialize.
- Returns:
(NaClParameterBlock) New instance
- class watertap.property_models.unit_specific.cryst_prop_pack.NaClParameterData(component)[source]
Bases:
PhysicalParameterBlock- build()[source]
General build method for PropertyParameterBlocks. Inheriting models should call super().build.
- Parameters:
None –
- Returns:
None
- classmethod define_metadata(obj)[source]
Set all the metadata for properties and units.
This method should be implemented by subclasses. In the implementation, they should set information into the object provided as an argument.
- Parameters:
pcm (PropertyClassMetadata) – Add metadata to this object.
- Returns:
None
- class watertap.property_models.unit_specific.cryst_prop_pack.NaClStateBlock(*args, **kwds)
Bases:
_NaClStateBlock- 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
Config args
- 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 with config arguments as keys.
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 override the default behavior of matching the BlockData index exactly to the index in initialize.
- Returns:
(NaClStateBlock) New instance
- class watertap.property_models.unit_specific.cryst_prop_pack.NaClStateBlockData(*args, **kwargs)[source]
Bases:
StateBlockData