Pass Through Unit Helper Methods

The build_pt method is intended to be used to rapidly construct a standard set of material balance equations for zero-order type models in which there is no change in flow rate or concentration of the solutes. This is most commonly seen in pressure and temperature change equipment.

Usage

from idaes.core import declare_process_block_class
from watertap.core import build_pt, ZeroOrderBaseData

@declare_process_block_class("PumpZO")
class PumpZOData(ZeroOrderBaseData):

    CONFIG = ZeroOrderBaseData.CONFIG()

    def build(self):
        super().build()

        self._tech_type = "pump"

        build_pt(self)

Model Structure

The build_pt method constructs a simple representation of unit operation with a single inlet (named inlet) and outlet (named outlet) which have the same material state. A single StateBlock is constructed which is used for both the inlet and outlet Ports.

Variables

The build_pt method creates no additional variables beyond those created by the StateBlocks.

Constraints

The build_pt method writes no additional constraints beyond those created by the StateBlocks.

Module Documentation

zero_order_pt.build_pt()

Helper method for constructing material balances for zero-order type models with pass-through behavior.

One StateBlock is added with two corresponding Ports:
  • properties

No additional variables and constraints are created.

This method also sets private attributes on the unit model with references to the appropriate initialization and scaling methods to use and to return the inlet volumetric flow rate.