by Motadi » 20 August 2018, 15:00
Hello,
By analyzing the log, the error code was related to the fact that a "Default" value was not defined for the defined "parameter". This was confusing, because I did not get any error while using cape open v1.1.
This was the error description in the log: "Error returned from get_DefaultValue - 0x80040501".
So this problem is solved, however I have another problem: I want to get singlephase property "activity" for the liquid phase, however I get error. Here is the error description in the log generated by COLTT:
Property Phase Basis Calc Value returned
activity Liquid (null) mixture
COLTT <duplicate of 1> : Windows error code returned is: 0x80131500 - not known
COLTT <duplicate of 1> : Getting error details from IErrorInfo interface:
COLTT <duplicate of 1> : Call to GetSource
GetSource returns:
Interface : ICapeThermoMaterialObject
COLTT <duplicate of 1> : Return from GetSource - Succeeded
COLTT <duplicate of 1> : Call to GetDescription
GetDescription returns:
Description : Cannot calculate property {activity,Liquid,,,Mixture} because the phase fraction has not been set
I am using this command: value=getSinglePhaseProperty('activity','Liquid',T,P,moleFraction)
The error log says "the phase fraction has not been set", but "phase fraction" is not an input to this command.
I appreciate your help,
Best regards,