Vector inputs to Coolprop

Vector inputs to Coolprop - 消息

#1 已发布: 2024/9/25 20:12:09
GerardLardner

GerardLardner

4个赞,共34个帖子。

组: User

Is there a way to enter vector inputs to Coolprop from SMath? I understand it is more of a CoolProp issue than an Smath one.

My interest is in getting the properties of water and steam on the saturation line over a range of pressures, where there is only one variable; the other inputs can be taken as fixed. I am trying to emulate the flow equations for a V-Cone flow meter.

I see this has been discussed in the CoolProp GitHub (https://github.com/CoolProp/CoolProp/issues/1689) in terms of R and Python, but not in terms of Smath or Mathcad or Maple Flow.
#2 已发布: 2024/9/25 23:07:29
Alvaro

Alvaro

1,139个赞,共1,805个帖子。

组: User

Hi. You can use vectorize or range variables. This example is with vectorize

cp-vectorize.sm (5.24 KiB)已下载 1614 次。

cp-vectorize.png

Best regards.
Alvaro.
#3 已发布: 2024/9/25 23:45:13
GerardLardner

GerardLardner

4个赞,共34个帖子。

组: User

Thanks. I didn't think of vectorizing the CoolProp function itself; I'll try that. I'm getting old; brain slowing down

[Next day] Thanks again. That is working exactly as I wanted.
  • 有新帖
  • 无新帖