Hope you can help with a problem with a Thermo Import function from SciLabCapeOpenThermo.DLL version: 2.0.0.6.
- 1) The 'capeOpenEquilibrium' function presents an error message when called for "gibbsEnergy" but not for "enthalpyF". Both are listed as valid by 'capeOpenFlashPropList'.
2) The documentation for 'capeOpenEquilibriumProp' shows a '0' as the input for the 'type' parameter but an error message is generated unless "Unspecified" is used.
3) The other functions that were used worked well as documented--Thank you.
//This code ran without error
//return EnthalpyF for specified conditions
HF = capeOpenEquilibriumProp..
(handle, "enthalpyF", X, "pressure", p, "temperature", T, "Unspecified");
//return Temperature given HF = EnthalpyF as a check to obtain previously given T condition
[phases,phaseFractions,phaseCompositions,Te,Pe]=capeOpenEquilibrium..
(handle, X,"enthalpyF", HF, "pressure", p, "Unspecified");
disp(Te)
//@@@@@@@@@@@No Error@@@@@@@@@@@@
//@@@@@@@@@@@Error@@@@@@@@@@@
//This code presented the Error Message:
//"capeOpenEquilibrium: CalcEquilibrium failed: CalcEquilibrium failed: Invalid flash specification: Unsupported flash specification 1"
//Note: list=capeOpenFlashPropList(handle) returns both 'enthalpyF' and 'gibbsEnergy' as valid properties
//return Gibbs Energy for specified conditions
GE = capeOpenEquilibriumProp..
(handle, "gibbsEnergy", X, "pressure", p, "temperature", T, "Unspecified");
//return Temperature given GE = Gibbs Energy as a check to obtain previously given T condition
//Error occurs at next instruction
[phases,phaseFractions,phaseCompositions,Te,Pe]=capeOpenEquilibrium..
(handle, X,"gibbsEnergy", GE, "pressure", p, "Unspecified");
disp(Te)
//@@@@@@@@@@@Error@@@@@@@@@@@
Thanks for any advice.