Skip to main content
1-Visitor
June 7, 2024
Question

Coolprop P-h diagram

  • June 7, 2024
  • 2 replies
  • 987 views

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

21-Topaz II
June 8, 2024

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

olivierlp
Community Manager
June 12, 2024

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,

Olivier