MEG-25% - Fluid not found in low-level interface

43 views
Skip to first unread message

nilspet...@googlemail.com

unread,
Nov 16, 2020, 8:07:14 AM11/16/20
to coolprop-users
I like to use an ethylene-glycol-water mixture for my calculations.

When I try to build a fluid-object through the low-level interface, I use the following syntax:

CP.AbstractState('HEOS','MEG-25%')

However, that throws the following error:

ValueError: key [INCOMP::MEG-25%] was not found in string_to_index_map in JSONFluidLibrary

I'm confused because:

PropsSI('H','T',300,'P',101325,'INCOMP::MEG-25%')

works totally fine. I tried to find out if there'S any difference in the naming convention or the syntax between low-level and high-level interface for binary mixtures but I couldn't find it, that's why I try to get help here.

I appreciate any help!

Best
Nils

nilspet...@googlemail.com

unread,
Nov 16, 2020, 8:09:22 AM11/16/20
to coolprop-users
I'm sorry, I realized a c&p-error there. The error message is as following:

ValueError: key [MEG-25%] was not found in string_to_index_map in JSONFluidLibrary 

Jorrit Wronski

unread,
Nov 16, 2020, 9:26:39 AM11/16/20
to coolpro...@googlegroups.com

Please use the correct backend:

CP.AbstractState('INCOMP’,'MEG-25%')

And even better:

CP.AbstractState('INCOMP’,'MEG[0.25]')

 

 

 

 

Med venlig hilsen / Yours sincerely

Jorrit Wronski
Specialist Engineer, M.Sc., Ph.D. 

DTU Science Park, Diplomvej 376, DK-2800 Kgs. Lyngby
Phone: +45 45 16 04 10 / Dir. +45 45 16 04 26 / www.ipu.dk
IPU develops solutions for complex technology challenges, and we
put research to work for your business.
Our expertise includes:
  • Product- and Process Technology Development
  • Autonomous Systems and Robotics
  • Advanced Materials and Surfaces Technology
  • Thermodynamics and Energy Technology
  • Physical Systems Modelling

--
You received this message because you are subscribed to the Google Groups "coolprop-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to coolprop-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/coolprop-users/27db46f6-1ad9-49cd-ae6d-12f39f4a5f12n%40googlegroups.com.

nilspet...@googlemail.com

unread,
Nov 16, 2020, 11:13:34 AM11/16/20
to coolprop-users
Thank you for your quick reply, Jorrit!

I see the mistake I've done..

However, entering:

CP.AbstractState('INCOMP','MEG[0.25]')

delivers:

ValueError: key [MEG[0.25]] was not found in string_to_index_map in JSONIncompressibleLibrary

and the same happens for:

 CP.AbstractState('INCOMP','MEG-0.25%')

Do you have any suggestions?
Reply all
Reply to author
Forward
0 new messages