Input pair variable is invalid Error, For incompressible fluid 'Therminol Vp1'

604 views
Skip to first unread message

Iman Fakhari

unread,
Sep 25, 2018, 6:52:38 AM9/25/18
to coolprop-users
Hi, i want to Find Temperature of Therminol VP1 and i have quality (x=0) and its enthalpy (h) so i coded like this:
T(3) = CoolProp.PropsSI('T' ,'Q',X(3),'H',h(3),'INCOMP::TVP1')
and i get this error:
Warning: Input pair variable is invalid and output(s) are non-trivial; cannot do state update
And i know quality and enthalpy are enough to find temperature of therminol. so whats wrong?  and how can is solves this?

Regards

Matthis Thorade

unread,
Sep 25, 2018, 7:07:37 AM9/25/18
to coolprop-users
Hi,
saturated liquid enthalpy and saturated liquid entropy should be unique, but saturated vapour enthalpy is not unique. I believe this input pair is just not implemented. So, what you can do is use PQ, or TQ as input pair, or write a small function in whatever wrapper language you are using to find the saturated liquid state. Saturated liquid enthalpy is monotonous between triple point liquid and critial liquid, so any 1D root finding algorithm should work (bisection, Brent, bounded Newton).
Best, Matthis

--
You received this message because you are subscribed to the Google Groups "coolprop-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to coolprop-user...@googlegroups.com.
To post to this group, send email to coolpro...@googlegroups.com.
Visit this group at https://groups.google.com/group/coolprop-users.
For more options, visit https://groups.google.com/d/optout.


--
Matthis Thorade
Bellermannstr. 14
13357 Berlin

+49-179-6879254
+49-30-25933766

Iman Fakhari

unread,
Sep 25, 2018, 7:45:01 AM9/25/18
to coolprop-users
Thanks for your response
But i just have H and Q of this state. How can i find P or T?

Iman Fakhari

unread,
Sep 25, 2018, 7:46:01 AM9/25/18
to coolprop-users
I'm Using matlab. how can i implement this pair of input?
Reply all
Reply to author
Forward
0 new messages