Helper Methods for Electricity Demand
A number of methods are available for implementing common forms for calculating electricity intensity in zero-order type models. These helper functions are intended to be called after all necessary material and chemical flows have been added to the unit model.
Usage
from idaes.core import declare_process_block_class
from watertap.core import build_pt, constant_intensity, ZeroOrderBaseData
@declare_process_block_class("PumpZO")
class PumpZOData(ZeroOrderBaseData):
CONFIG = ZeroOrderBaseData.CONFIG()
def build(self):
super().build()
self._tech_type = "pump"
build_pt(self)
# Add variables and constraints for constant electricity intensity
constant_intensity(self)
Module Documentation
- zero_order_electricity.constant_intensity()
Helper method for implementing electricity demand assuming constant intensity based on the inlet volumetric flow rate.
E[t] = Q[t] * intensity
- Two variables are added to the model:
electricity (indexed by time)
energy_electric_flow_vol_inlet (unindexed)
- One constraint is added to the model:
electricity_consumption (indexed by time)