State Block#
StateBlocks are used within all IDAES UnitModels (generally within ControlVolumeBlocks) in order to calculate physical properties given the state of the material. StateBlocks are notably different to other types of Blocks within IDAES as they are always indexed by time (and possibly space as well). StateBlocks consist of two parts:
StateBlockData forms the base class for all StateBlockData objects, which contain the instructions on how to construct each instance of a State Block.
StateBlock is used for building classes which contain methods to be applied to sets of Indexed State Blocks (or to a subset of these). See the documentation on declare_process_block_class and the IDAES tutorials and examples for more information.
StateBlocks can be constructed directly from the associated PhysicalParameterBlock by calling the build_state_block() method on the PhysicalParameterBlock. The parameters construction argument will be automatically set, and any other arguments (including indexing sets) may be provided to the build_state_block method as usual.
Additional details on State Blocks are located in the technical specifications.