watertap.property_models package
Subpackages
- 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
- watertap.property_models.unit_specific.activated_sludge.asm1_reactions module
- watertap.property_models.unit_specific.activated_sludge.asm2d_properties module
- watertap.property_models.unit_specific.activated_sludge.asm2d_reactions module
- watertap.property_models.unit_specific.activated_sludge.asm3_properties module
- watertap.property_models.unit_specific.activated_sludge.asm3_reactions module
- watertap.property_models.unit_specific.activated_sludge.modified_asm2d_properties module
- 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
- watertap.property_models.unit_specific.anaerobic_digestion.adm1_properties_vapor module
- watertap.property_models.unit_specific.anaerobic_digestion.adm1_reactions module
- watertap.property_models.unit_specific.anaerobic_digestion.modified_adm1_properties module
- watertap.property_models.unit_specific.anaerobic_digestion.modified_adm1_reactions module
- Module contents
- watertap.property_models.unit_specific.activated_sludge package
- Submodules
- watertap.property_models.unit_specific.NDMA_prop_pack module
- watertap.property_models.unit_specific.coagulation_prop_pack module
- watertap.property_models.unit_specific.cryst_prop_pack module
- Module contents
- Subpackages
Submodules
watertap.property_models.NaCl_T_dep_prop_pack module
Initial property package for H2O-NaCl system with temperature dependence
- class watertap.property_models.NaCl_T_dep_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
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.NaCl_T_dep_prop_pack.NaClParameterData(component)[source]
Bases:
PhysicalParameterBlock
- class watertap.property_models.NaCl_T_dep_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.NaCl_T_dep_prop_pack.NaClStateBlockData(*args, **kwargs)[source]
Bases:
StateBlockData
watertap.property_models.NaCl_prop_pack module
Initial property package for H2O-NaCl system
- class watertap.property_models.NaCl_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
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.NaCl_prop_pack.NaClParameterData(component)[source]
Bases:
PhysicalParameterBlock
- class watertap.property_models.NaCl_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.NaCl_prop_pack.NaClStateBlockData(*args, **kwargs)[source]
Bases:
StateBlockData
watertap.property_models.air_water_equilibrium_prop_pack module
Air-water equilibrium property package
- class watertap.property_models.air_water_equilibrium_prop_pack.AirWaterEq(*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
- volatile_solute_list
List of strings that specify names of volatile solute species.
- non_volatile_solute_list
List of strings that specify names of non-volatile solute species.
- mw_data
Required argument. Dict of component names (keys) and molecular weight data (values)
- diffusivity_data
Dict of phase, solute species names (keys) and bulk ion diffusivity data (values)
- molar_volume_data
Dict of solute species names and molar volume of aqueous species
- pressure_vap_sat_data
User provided value for saturation vapor pressure of water in Pa
- pressure_vap_data
User provided value for vapor pressure of water in Pa
- relative_humidity_data
User provided value for relative humidity of air
- latent_heat_of_vaporization_data
User provided value for latent heat of vaporization in kJ / kg
- specific_heat_of_water_data
Dict for specific heat of water for liquid and vapor phases in J / kg / K
- critical_molar_volume_data
Dict of solute species names and critical molar volume of aqueous species.Used for Tyn-Calus method for calculating molar volume
- density_data
Dict of phases and density of vapor and liquid phases
- dynamic_viscosity_data
Dict of phases and dynamic viscosity of vapor and liquid phases
- henry_constant_data
Dict of solute species names and Henry’s Law Constant
- temp_adjust_henry
Flag to indicate if provided Henry’s Law Constant should be adjusted for temperature.
- standard_enthalpy_change_data
Dict of solute species names and standard enthalpy change of dissolution in water. Used to temperature adjust Henry’s Law Constant.
- temperature_boiling_data
Dict of solute species names and boiling temperature data
- charge_data
Dict of solute species names and ion charge
- liq_diffus_calculation
Options to account for ionic or molecular diffusivity.
default -
LiqDiffusivityCalculation.HaydukLaudieConfiguration Options
Description
LiqDiffusivityCalculation.noneUsers provide liquid diffusivity data via the diffusivity_data configuration
LiqDiffusivityCalculation.HaydukLaudieAllow the nonelectrolyte (neutral) species to get diffusivity from the Hayduk-Laudie equation
- vap_diffus_calculation
Options to account for ionic or molecular diffusivity.
default -
VapDiffusivityCalculation.WilkeLeeConfiguration Options
Description
VapDiffusivityCalculation.noneUsers provide vapor diffusivity data via the diffusivity_data configuration
VapDiffusivityCalculation.WilkeLeeAllow the nonelectrolyte (neutral) species to get diffusivity from the Wilke-Lee equation
- molar_volume_calculation
Options to estimate molar volume for a component.
default -
MolarVolumeCalculation.TynCalusConfiguration Options
Description
MolarVolumeCalculation.noneUsers provide data via the molar_volume_data configuration
MolarVolumeCalculation.TynCalusAllow the component species to calculate molar volume from the Tyn-Calus equation
- saturation_vapor_pressure_calculation
Options to estimate saturation vapor pressure for water in air.
default -
SaturationVaporPressureCalculation.ArdenBuckConfiguration Options
Description
SaturationVaporPressureCalculation.noneUsers provide data via the pressure_vap_sat_data configuration
SaturationVaporPressureCalculation.ArdenBuckSaturation vapor pressure is calculated from Arden Buck equation
SaturationVaporPressureCalculation.HuangSaturation vapor pressure is calculated from Huang equation
SaturationVaporPressureCalculation.AntoineSaturation vapor pressure is calculated from Antoine equation
- vapor_pressure_calculation
Options to estimate vapor pressure for water in air.
default -
VaporPressureCalculation.FromRelativeHumidityConfiguration Options
Description
VaporPressureCalculation.noneUsers provide data via the pressure_vap_data configuration
VaporPressureCalculation.FromRelativeHumidityVapor pressure is calculated from relative humidity and saturation vapor pressure
- relative_humidity_calculation
Options to estimate relative humidity of air-water system.
default -
RelativeHumidityCalculation.noneConfiguration Options
Description
RelativeHumidityCalculation.noneUsers provide data via the relative_humidity_data configuration
RelativeHumidityCalculation.FromVaporPressureRatioRelative humidity is calculated as ratio of vapor pressure to saturation vapor pressure
- latent_heat_of_vaporization_calculation
Options to estimate latent heat of vaporization.
default -
LatentHeatVaporizationCalculation.SharqawyConfiguration Options
Description
LatentHeatVaporizationCalculation.noneUsers provide data via the latent_heat_of_vaporization_data configuration
LatentHeatVaporizationCalculation.SharqawyLatent heat of vaporization is calculated according to Sharqawy (2010)
- specific_heat_of_water_calculation
Options to estimate specific heat of water.
default -
SpecificHeatWaterCalculation.SharqawyConfiguration Options
Description
SpecificHeatWaterCalculation.noneUsers provide data via the specific_heat_of_water_data configuration
SpecificHeatWaterCalculation.SharqawySpecific heat of water is calculated according to Sharqawy (2010)
- density_calculation
Options to account for solution density.
default -
DensityCalculation.constantConfiguration Options
Description
DensityCalculation.constantUsers provide data via the density_data configuration
DensityCalculation.calculatedDensity of water is calculated according to Sharqawy (2010); density of air is calculated according to modified CIPM-2007 formula
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:
(AirWaterEq) New instance
- class watertap.property_models.air_water_equilibrium_prop_pack.AirWaterEqData(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.air_water_equilibrium_prop_pack.AirWaterEqStateBlock(*args, **kwds)
Bases:
_AirWaterEqStateBlock- 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:
(AirWaterEqStateBlock) New instance
- class watertap.property_models.air_water_equilibrium_prop_pack.AirWaterEqStateBlockData(*args, **kwargs)[source]
Bases:
StateBlockData- get_material_density_terms()[source]
Method which returns a valid expression for material density to use in the material balances .
- class watertap.property_models.air_water_equilibrium_prop_pack.DensityCalculation(value)[source]
Bases:
EnumApproach to determine density of water and air.
- class watertap.property_models.air_water_equilibrium_prop_pack.LatentHeatVaporizationCalculation(value)[source]
Bases:
EnumApproach to determine latent heat of vaporization. Sharqawy is default.
- class watertap.property_models.air_water_equilibrium_prop_pack.LiqDiffusivityCalculation(value)[source]
Bases:
EnumApproach to determine component liquid diffusivity. HaydukLaudie is default.
- class watertap.property_models.air_water_equilibrium_prop_pack.MolarVolumeCalculation(value)[source]
Bases:
EnumApproach to determine component molar volume. TynCalus is default.
- class watertap.property_models.air_water_equilibrium_prop_pack.RelativeHumidityCalculation(value)[source]
Bases:
EnumApproach to determine relative humidity. none (user-provided) is default.
- class watertap.property_models.air_water_equilibrium_prop_pack.SaturationVaporPressureCalculation(value)[source]
Bases:
EnumApproach to determine saturation vapor presssure. ArdenBuck is default.
- class watertap.property_models.air_water_equilibrium_prop_pack.SpecificHeatWaterCalculation(value)[source]
Bases:
EnumApproach to determine specific heat of water in liquid and vapor phase. Sharqawy is default.
watertap.property_models.multicomp_aq_sol_prop_pack module
This property package computes a multi-component aqueous solution that can contain ionic and/or neutral solute species. It supports basic calculation of component quantities and some physical, chemical and electrical properties.
This property package was formerly named the “ion_DSPMDE_prop_pack” and was originally designed for use with the Donnan Steric Pore Model with Dielectric Exclusion (DSPMDE) for nanofiltration.
- class watertap.property_models.multicomp_aq_sol_prop_pack.ActivityCoefficientModel(value)[source]
Bases:
EnumAn enumeration.
- class watertap.property_models.multicomp_aq_sol_prop_pack.DensityCalculation(value)[source]
Bases:
EnumAn enumeration.
- class watertap.property_models.multicomp_aq_sol_prop_pack.DiffusivityCalculation(value)[source]
Bases:
EnumAn enumeration.
- class watertap.property_models.multicomp_aq_sol_prop_pack.ElectricalMobilityCalculation(value)[source]
Bases:
EnumAn enumeration.
- class watertap.property_models.multicomp_aq_sol_prop_pack.EquivalentConductivityCalculation(value)[source]
Bases:
EnumAn enumeration.
- class watertap.property_models.multicomp_aq_sol_prop_pack.MCASParameterBlock(*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
- solute_list
Required argument.List of strings that specify names of solute species.
- stokes_radius_data
Dict of solute species names (keys) and Stokes radius data (values)
- diffusivity_data
Dict of solute species names (keys) and bulk ion diffusivity data (values)
- molar_volume_data
Dict of solute species names and molar volume of aqueous species
- mw_data
Required argument. Dict of component names (keys)and molecular weight data (values)
- elec_mobility_data
Ion electrical mobility
- trans_num_data
transport number of ions in the liquid phase
- equiv_conductivity_phase_data
Equivalent conductivity of ions in the liquid phase
- charge
Ion charge
- ignore_neutral_charge
Level of reporting results. default - False. Valid values: { False - raise ConfigurationError when charge value not provided for ALL solutes, including neutral solutes (charge=0), True - will not raise ConfigurationError when charge not provided for particular solutes, assuming said solutes are meant to be designated as neutral.
- activity_coefficient_model
Options to account for activity coefficient model.
default -
ActivityCoefficientModel.idealConfiguration Options
Description
ActivityCoefficientModel.idealActivity coefficients equal to 1 assuming ideal solution
ActivityCoefficientModel.daviesActivity coefficients estimated via Davies model
- density_calculation
Options to account for solution density.
default -
DensityCalculation.constantConfiguration Options
Description
DensityCalculation.constantSolution density assumed constant at 1000 kg/m3 by default in dens_mass_const parameter
DensityCalculation.seawaterSolution density based on correlation for seawater (TDS)
- diffus_calculation
Options to account for ionic or molecular diffusivity.
default -
DiffusivityCalculation.noneConfiguration Options
Description
DiffusivityCalculation.noneUsers provide data via the diffusivity_data configuration
DiffusivityCalculation.HaydukLaudieAllow the nonelectrolyte (neutral) species to get diffusivity from the Hayduk Laudie equation
- elec_mobility_calculation
Options to account for ion electrical mobility.
default -
ElectricalMobilityCalculation.noneConfiguration Options
Description
ElectricalMobilityCalculation.noneUsers provide data via the elec_mobility_data configuration
ElectricalMobilityCalculation.EinsteinRelationCalculate from the diffusivity_data by the Einstein Relation
- trans_num_calculation
Options to account for ion transport number in the solution.
default -
TransportNumberCalculation.ElectricalMobilityConfiguration Options
Description
TransportNumberCalculation.noneUsers provide data via the trans_num_data configuration
TransportNumberCalculation.ElectricalMobilityCalculated from the elec_mobility_data
- equiv_conductivity_calculation
Options to account for the total equivalent conductivity of the liquid phase (solution).
default -
EquivalentConductivityCalculation.noneConfiguration Options
Description
EquivalentConductivityCalculation.noneUsers provide data via the equiv_conductivity_data configuration
EquivalentConductivityCalculation.ElectricalMobilityCalculated from the electrical_mobility_data
- material_flow_basis
Material flow basis options.
default -
MaterialFlowBasis.molarConfiguration Options
Description
MaterialFlowBasis.molarmolar flowrate as the state variable
MaterialFlowBasis.massmass flowrate as the state variable
MaterialFlowBasis.otherother material flowrate as the state variable
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:
(MCASParameterBlock) New instance
- class watertap.property_models.multicomp_aq_sol_prop_pack.MCASParameterData(component)[source]
Bases:
PhysicalParameterBlock
- class watertap.property_models.multicomp_aq_sol_prop_pack.MCASScaler(**kwargs)[source]
Bases:
CustomScalerBase- zero_tolerance
Value at which a variable will be considered equal to zero for scaling.
- max_variable_scaling_factor
Maximum value for variable scaling factors.
- min_variable_scaling_factor
Minimum value for variable scaling factors.
- max_constraint_scaling_factor
Maximum value for constraint scaling factors.
- min_constraint_scaling_factor
Minimum value for constraint scaling factors.
- max_expression_scaling_hint
Maximum value for expression scaling hints.
- min_expression_scaling_hint
Minimum value for constraint scaling hints.
- overwrite
Whether to overwrite existing scaling factors.
- constraint_scaling_routine(model, overwrite: bool = False, submodel_scalers: dict | None = None)[source]
Routine to apply scaling factors to constraints in model.
Derived classes must overload this method.
- Parameters:
model – model to be scaled
overwrite – whether to overwrite existing scaling factors
submodel_scalers – ComponentMap of Scalers to use for sub-models
- Returns:
None
- variable_scaling_routine(model, overwrite: bool = False, submodel_scalers: dict | None = None)[source]
Routine to apply scaling factors to variables in model.
Derived classes must overload this method.
- Parameters:
model – model to be scaled
overwrite – whether to overwrite existing scaling factors
submodel_scalers – ComponentMap of Scalers to use for sub-models
- Returns:
None
- class watertap.property_models.multicomp_aq_sol_prop_pack.MCASStateBlock(*args, **kwds)
Bases:
_MCASStateBlock- 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:
(MCASStateBlock) New instance
- class watertap.property_models.multicomp_aq_sol_prop_pack.MCASStateBlockData(*args, **kwargs)[source]
Bases:
StateBlockData- assert_electroneutrality(tol=None, tee=True, defined_state=True, adjust_by_ion=None, get_property=None, solve=True)[source]
TODO: add descriptions of args and what is returned
watertap.property_models.seawater_prop_pack module
Initial property package for seawater system
- class watertap.property_models.seawater_prop_pack.SeawaterParameterBlock(*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:
(SeawaterParameterBlock) New instance
- class watertap.property_models.seawater_prop_pack.SeawaterParameterData(component)[source]
Bases:
PhysicalParameterBlockParameter block for a seawater property package.
- class watertap.property_models.seawater_prop_pack.SeawaterStateBlock(*args, **kwds)
Bases:
_SeawaterStateBlock- 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:
(SeawaterStateBlock) New instance
- class watertap.property_models.seawater_prop_pack.SeawaterStateBlockData(*args, **kwargs)[source]
Bases:
StateBlockDataA seawater property package.
watertap.property_models.water_prop_pack module
Initial property package for pure water system (vapor or liquid)
- class watertap.property_models.water_prop_pack.WaterParameterBlock(*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:
(WaterParameterBlock) New instance
- class watertap.property_models.water_prop_pack.WaterParameterData(component)[source]
Bases:
PhysicalParameterBlockParameter block for a water property package.
- class watertap.property_models.water_prop_pack.WaterStateBlock(*args, **kwds)
Bases:
_WaterStateBlock- 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:
(WaterStateBlock) New instance
- class watertap.property_models.water_prop_pack.WaterStateBlockData(*args, **kwargs)[source]
Bases:
StateBlockDataA water property package.