idaes.examples.workshops.Module_1_Flash_Unit package


idaes.examples.workshops.Module_1_Flash_Unit.BTX_ideal_VLE module

idaes.examples.workshops.Module_1_Flash_Unit.ideal_prop_pack_VLE module

Ideal property package with VLE calucations. Correlations to compute Cp_comp, h_comp and vapor pressure are obtained from “The properties of gases and liquids by Robert C. Reid” and “Perry’s Chemical Engineers Handbook by Robert H. Perry”. SI units.

class idaes.examples.workshops.Module_1_Flash_Unit.ideal_prop_pack_VLE.IdealParameterData(component)[source]

Property Parameter Block Class Contains parameters and indexing sets associated with properties for BTX system.


Callable method for Block construction.

classmethod define_metadata(obj)[source]

Define properties supported and units.

class idaes.examples.workshops.Module_1_Flash_Unit.ideal_prop_pack_VLE.IdealStateBlock(*args, **kwargs)
  • rule (function) – A rule function or None. Default rule calls build().
  • concrete (bool) – If True, make this a toplevel model. Default - False.
  • ctype (str) – Pyomo ctype of the block. Default - “Block”
  • default (dict) –

    Default ProcessBlockData config

    A reference to an instance of the Property Parameter Block associated with this property package.
    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.}
    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 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.

(IdealStateBlock) New instance

class idaes.examples.workshops.Module_1_Flash_Unit.ideal_prop_pack_VLE.IdealStateBlockData(component)[source]

An example property package for ideal VLE.


Callable method for Block construction.


“To compute the bubble point pressure of the mixture.


“To compute the bubble point temperature of the mixture.


“To compute the dew point pressure of the mixture.


“To compute the dew point temperature of the mixture.


Define state vars.


Create enthalpy density terms.


Create enthalpy flow terms.

get_material_density_terms(p, j)[source]

Create material density terms.


Method which returns an Enum indicating the basis of the material flow term.

get_material_flow_terms(p, j)[source]

Create material flow terms for control volume.


Model checks for property block.

idaes.examples.workshops.Module_1_Flash_Unit.workshoptools module