Hey Daniel,
I am getting an error in the following IronPython code to find the equilibrium temperature for given pressure and vapor fraction.
Code:
feed=[0]
feed[0]=ims1
tmp = feed[0].PropertyPackage.CalculateEquilibrium2(FlashCalculationType.PressureVaporFraction, P2, 0, 200)
T2 = tmp.CalculatedTemperature
Kindly help me out with this.
Thank you
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The error popping up is that, "name 'FlashCalculationType' is not defined". I guess it is specified using another syntax. Could you confirm this?
Thank you
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The updated code used by me was:
feed=[0]
feed[0]=ims1
feed[0].PropertyPackage.CurrentMaterialStream = feed[0]
tmp=feed[0].PropertyPackage.CalculateEquilibrium2(FlashCalculationType.PressureVaporFraction, P2, 0, 200)
T2 = tmp.CalculatedTemperature
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hey Daniel,
I am getting an error in the following IronPython code to find the equilibrium temperature for given pressure and vapor fraction.
Code:
feed=[0]
feed[0]=ims1
tmp = feed[0].PropertyPackage.CalculateEquilibrium2(FlashCalculationType.PressureVaporFraction, P2, 0, 200)
T2 = tmp.CalculatedTemperature
Kindly help me out with this.
Thank you
try this before calling the equilibrium routine:
The error popping up is that, "name 'FlashCalculationType' is not defined". I guess it is specified using another syntax. Could you confirm this?
Thank you
The updated code used by me was:
feed=[0]
feed[0]=ims1
feed[0].PropertyPackage.CurrentMaterialStream = feed[0]
tmp=feed[0].PropertyPackage.CalculateEquilibrium2(FlashCalculationType.PressureVaporFraction, P2, 0, 200)
T2 = tmp.CalculatedTemperature