Single Lipuid Properties from Refprop

13 ビュー (過去 30 日間)
Alexander Cipak
Alexander Cipak 2021 年 12 月 9 日
移動済み: Sabin 2025 年 8 月 5 日
Hello,
I would like to get single liquid properties from refrigerants using Refprop. Right now I am using the following code to generate fluid property tables:
fluidTables = twoPhaseFluidTables([25,450],[3,15],15,15,30,'R410A','C:\Program Files (x86)\REFPROP\')
This is workig fine, but is there any other, easier way to get single fluid properties for example the corresponding spec. volume at a specific pressure and temperature of a fluid, without generating these fluid property tables? I was looking for a code looking like the one I found but it's for CoolProp:
t_fluid = py.CoolProp.CoolProp.PropsSI('v','P',P_in,'T',T_in,'R410A')
I have downloaded these files and moved them in 'C:\Program Files (x86)\REFPROP\'
  • refpropm.m
  • REFPRP64.dll
  • refprop.h
  • REFPRP64_thunk_pcwin64.dll
  • rp_proto64.m
and tried the following code, but it is not working yet.
t_fluid = refpropm('v','P',P_in,'T',T_in,'R410A')
Thank you for helping!
  1 件のコメント
Yifeng Tang
Yifeng Tang 2022 年 7 月 22 日
You can "Answer" your question by copying your comment into the Answer. This way other users would know this question has been addressed.

サインインしてコメントする。

回答 (1 件)

Alexander Cipak
Alexander Cipak 2021 年 12 月 12 日
移動済み: Sabin 2025 年 8 月 5 日
Solved the problem with
addpath('C:\Program Files (x86)\REFPROP')

カテゴリ

Help Center および File ExchangeFluid Dynamics についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by