필터 지우기
필터 지우기

Binary Mixtures using coolprop in Matlab

조회 수: 12 (최근 30일)
Hussein
Hussein 2023년 8월 9일
댓글: Yifeng Tang 2023년 8월 14일
Dear All,
I need your support to know how can I create a refrigerant mixture in matlab using coolprop libraryand I'm already uploaded coolprop library into matlab:
I need to to know the specs, of this mixture,
Composition: 31.1% R1234yf, 68.9% R32
Regards
  댓글 수: 1
Star Strider
Star Strider 2023년 8월 9일
I do not have Simscape (or Simscape Fluids), so I am not posting this as an answer. Searching on ‘coolprop’ brings up CoolProp to the Rescue, and searching on ‘refrigirant mixture’ brings up these results.

댓글을 달려면 로그인하십시오.

답변 (1개)

Yifeng Tang
Yifeng Tang 2023년 8월 10일
편집: Walter Roberson 2023년 8월 10일
Looks like you can use the MATLAB wrapper for Coolprop to define a mixture and query the properties, like below:
py.CoolProp.CoolProp.apply_simple_mixing_rule('R1234yf','R32','linear')
py.CoolProp.CoolProp.PropsSI('Dmass','T',300,'P',101325,'R1234yf[0.311]&R32[0.689]')
Reference:
  댓글 수: 2
Hussein
Hussein 2023년 8월 10일
Please, this message error appear:
Error using CoolProp/CoolProp.apply_simple_mixing_rule
Python Error: RuntimeError: CAS pair(75-10-5,754-12-1) already in binary interaction map; considering
enabling configuration key OVERWRITE_BINARY_INTERACTION
Error in CoolProp/CoolProp.apply_simple_mixing_rule (line 317)
Yifeng Tang
Yifeng Tang 2023년 8월 14일
I think that's because the mixture was defined once already in CoolProp. I got the same message if I try to run the apply_simple_mixing_rule code twice. You can comment out that line and try again, or restart MATLAB :)

댓글을 달려면 로그인하십시오.

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by