Vector inputs to Coolprop

Vector inputs to Coolprop - Сообщения

#1 Опубликовано: 25.09.2024 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 Опубликовано: 25.09.2024 23:07:29
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 сообщений из 1674 понравились пользователям.

Группа: User

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

cp-vectorize.sm (5 КиБ) скачан 23 раз(а).

cp-vectorize.png

Best regards.
Alvaro.
#3 Опубликовано: 25.09.2024 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.
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений