Skip to main content
1-Visitor
Jun 7, 2024 8:42 AM UTC
Question

Coolprop P-h diagram

ED_11098942_0-1717749552282.png

I am trying to get a pressure-enthalpy diagram for methane by using Coolprop but I am constantly getting Pressure_out_of_range error. Does anyone know the solution?

2 replies

terryhendicott
21-Topaz II
Jun 8, 2024 5:43 AM UTC

Hi,

Do not Have CoolProp so made up a make do HPQ function for this example

 

You first need to create a vector (not a range) for A.

Then vectorize the calls (element by element) of A when using HPQ

Capture.JPG

Cheers

Terry

Translate
olivierlp
Community Manager
Jun 12, 2024 3:45 PM UTC

Hi @ED_11098942 ,
I wanted to see if you got the help you needed.
If so, please mark the appropriate reply as the Accepted Solution. It will help other members who may have the same question.
Of course, if you have more to share on your issue, please pursue the conversation. 

Thanks,

Translate
Olivier