Feed (ZO)
Model Type
This unit model is formulated as a None model form.
Electricity Consumption
Electricity consumption is calculated using the – helper function. See documentation for Helper Methods for Electricity Demand.
Costing Method
Costing is calculated using the False method in the zero-order costing package. See documentation for the zero-order costing package.
Class Documentation
Feed block for zero-order flowsheets with methods for getting concentration data from database.
- class watertap.unit_models.zero_order.feed_zo.FeedZO(*args, **kwds)
- 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
- dynamic
Indicates whether this model will be dynamic or not, default = False. Feed blocks are always steady-state.
- has_holdup
Feed blocks do not contain holdup, thus this must be False.
- property_package
Property parameter object used to define property calculations, default - useDefault. Valid values: { useDefault - use default package from parent model or flowsheet, PhysicalParameterObject - a PhysicalParameterBlock object.}
- property_package_args
A ConfigBlock with arguments to be passed to a property block(s) and used when constructing these, default - None. Valid values: { see property package for documentation.}
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
(FeedZO) New instance
- class watertap.unit_models.zero_order.feed_zo.FeedZOData(component)[source]
Zero-Order feed block.
- build()[source]
Begin building model.
- Parameters
None –
- Returns
None
- initialize(state_args=None, outlvl=0, solver=None, optarg=None)[source]
This method calls the initialization method of the Feed state block.
- Keyword Arguments
state_args – a dict of arguments to be passed to the property package(s) to provide an initial state for initialization (see documentation of the specific property package) (default = None).
outlvl – sets output level of initialization routine
optarg – solver options dictionary object (default=None, use default solver options)
solver – str indicating which solver to use during initialization (default = None, use default solver)
- Returns
None
- load_feed_data_from_database(overwrite=False)[source]
Method to load initial flowrate and concentrations from database.
- Parameters
- (overwrite) – should be overwritten by values from database or not.
- Returns
None
- Raises
KeyError if flowrate or concentration values not defined in data –