1 страниц (3 вхождений)
Vector inputs to Coolprop - Сообщения
#1 Опубликовано: 25.09.2024 20:12:09
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.
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 Опубликовано: 25.09.2024 23:07:29
Hi. You can use vectorize or range variables. This example is with vectorize
cp-vectorize.sm (5 КиБ) скачан 71 раз(а).

Best regards.
Alvaro.
cp-vectorize.sm (5 КиБ) скачан 71 раз(а).
Best regards.
Alvaro.
#3 Опубликовано: 25.09.2024 23:45:13
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.

[Next day] Thanks again. That is working exactly as I wanted.

1 страниц (3 вхождений)
-
Новые сообщения
-
Нет новых сообщений