Skip to content

Bubble/dew pressures in IdealBubbleDew broken with noncondensables/nonvolatiles #1665

@dallan-keylogic

Description

@dallan-keylogic

If one tries to calculate the bubble pressure when a nonvolatile is present or the dew pressure when a noncondensable is present, the modular properties attempts to create the pressure_sat_comp attribute. However, the nonvolatile or noncondensable probably does not have a saturation pressure defined, so creating the attribute fails and an exception is thrown:

E           idaes.models.properties.modular_properties.base.utility.GenericPropertyPackageError: Generic Property Package instance props[1] called for pressure_sat_comp, but was not provided with a method for this property. Please add a method for this property in the property parameter configuration.. Did you mean: '_pressure_sat_comp'?

base\utility.py:96: GenericPropertyPackageError

One option to fix this is, instead of raising an exception, to just use Expression.Skip like is done with Henry components.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Priority:LowLow Priority Issue or PR

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions