Ticket #167 (new task)

Opened 10 years ago

Last modified 9 years ago

CheckEquilibriumSpec

Reported by: michelpons Owned by: Michael Halloran
Priority: major Milestone:
Component: COLoggers Version: Development
Keywords: CheckEquilibriumSpec Cc: michaelhalloran

Description

I wonder if COLTT is not modifying the communication over CheckEquilibriumSpec. This needs to be investigated especially when some NULL or uspecified \"values\" are passed.

I am using a proprietary Property Package from Simulis Thermodynamics into Aspen Hysys 7.3 (also a proprietary case file). The CapeVersion key of Simulis Thermodynamics has been modified to 1.1 in the registry to avoid issues when logging. Here CO 1.1 interfaces are used. With Simulis Thermodynamics PPM logged, I get error messages in Hysys log while I have none without Simulis Thermodynamics logged. Error messages pertain to flashes non converging. Aspen Hysys is using CheckEquilibriumSpec to verify which flash types are supported by the PP. All checks fail when Simulis PPM is logged. I don't think Aspen Hysys tells the end-user anything about such a failure because it just mean the Aspen Hysys flash will have to be used. Anyhow, here is the log for one of the CheckEquilibriumSpec calls:

PropertyPackage <NG-H-PPR78> : Call to CheckEquilibriumSpec

CheckEquilibriumSpec takes input arguments:

Specification1 Specification2 Solution Type

Property temperature pressure Unspecified
Basis (null) (null)
Phase Overall Overall
CompoundId (null) (null)

MaterialObject <MO name> : Call to GetPresentPhases

GetPresentPhases returns:

Phase Status
Vapor phase CAPE_UNKNOWNPHASESTATUS
Liquid phase CAPE_UNKNOWNPHASESTATUS

MaterialObject <MO name> : Return from GetPresentPhases - Succeeded
MaterialObject <MO name> : Call to GetPresentPhases

GetPresentPhases returns:

Phase Status
Vapor phase CAPE_UNKNOWNPHASESTATUS
Liquid phase CAPE_UNKNOWNPHASESTATUS

MaterialObject <MO name> : Return from GetPresentPhases - Succeeded
COLTT <NG-H-PPR78> : CAPE-OPEN error code returned is: ECapeInvalidArgumentHR
COLTT <NG-H-PPR78> : Getting error details from error ECapeRoot interface:
COLTT <NG-H-PPR78> : Call to get_Name
COLTT <NG-H-PPR78> : Name: CO Invalid Argument Exception
COLTT <NG-H-PPR78> : Return from get_Name - Succeeded
COLTT <NG-H-PPR78> : Getting error details from ECapeUser error interface:
COLTT <NG-H-PPR78> : Call to get_code
COLTT <NG-H-PPR78> : Code: 0
COLTT <NG-H-PPR78> : Return from get_code - Succeeded
COLTT <NG-H-PPR78> : Call to get_description
COLTT <NG-H-PPR78> : Description: The solutionType argument is unknown.
COLTT <NG-H-PPR78> : Return from get_description - Succeeded
COLTT <NG-H-PPR78> : Call to get_scope
COLTT <NG-H-PPR78> : Scope: CapeOpen::Thermo::PropertyPackage (1.1)
COLTT <NG-H-PPR78> : Return from get_scope - Succeeded
COLTT <NG-H-PPR78> : Call to get_interfaceName
COLTT <NG-H-PPR78> : Interface Name: ICapeThermoEquilibriumRoutine
COLTT <NG-H-PPR78> : Return from get_interfaceName - Succeeded
COLTT <NG-H-PPR78> : Call to get_operation
COLTT <NG-H-PPR78> : Operation: CheckEquilibriumSpec
COLTT <NG-H-PPR78> : Return from get_operation - Succeeded
COLTT <NG-H-PPR78> : Call to get_moreInfo
COLTT <NG-H-PPR78> : More Info: (null)
COLTT <NG-H-PPR78> : Return from get_moreInfo - Succeeded
PropertyPackage <NG-H-PPR78> : Error returned from CheckEquilibriumSpec - 0x80040506

After discussing with Simulis Thermodynamics developer, I wonder if COLTT is not introducing a change in the communication that takes place within that method. I couldn't tell from examining the code though. Mind that I have enabled the automatic calls to error interfaces by COLTT. Otherwise Aspen Hysys does not call for them in that case.

Attachments

hysys_101813_151802.log (104.4 KB) - added by michelpons 10 years ago.
Log file obtained with Build 280 and modified ThrmStarDust.dll

Change History

Changed 10 years ago by michelpons

Log file obtained with Build 280 and modified ThrmStarDust.dll

comment:1 Changed 10 years ago by michelpons

ProSim has made available a modified version of ThrmStarDust.dll that includes the value of solutionType in the description of the error raised by CheckEquilibriumSpec. This gives the log file attached today and

COLTT <Sour-water> : Call to get_description
COLTT <Sour-water> : Description: The solutionType argument is unknown [UNSPECIFIED
COLTT <Sour-water> : Return from get_description - Succeeded

for a call received as:

PropertyPackage <Sour-water> : Call to CheckEquilibriumSpec

CheckEquilibriumSpec takes input arguments:

Specification1 Specification2 Solution Type

Property temperature pressure Unspecified
Basis (null) (null)
Phase Overall Overall
CompoundId (null) (null)

Version 1.4.12.0 of Simulis Thermodynamics including this change is available for download as of today.

comment:2 Changed 9 years ago by michelpons

  • Milestone set to 2.3
Note: See TracTickets for help on using tickets.