MadsKirkFoged / SharpFluids

Lightweight CoolProp C# Wrapper - for easy fluid properties lookups
MIT License
29 stars 9 forks source link

R407F.mix #1

Open lodihendriks opened 4 years ago

lodihendriks commented 4 years ago

Calculating the enthalpy of a mix gas like R407F. Gives an error.

Dim X As New SharpFluids.MediaType("HEOS", "R407F.mix") Dim R407F As New SharpFluids.Fluid(X)

Exception System.ApplicationException: 'critical point finding routine found 3 critical points'

Coolprops can calc the enthalpy for this gas, maybe I am using the SharpFluids package wrong.

Thanks

MadsFoged commented 4 years ago

Hi lodihendriks, Have you tried to make other things work in this package? The code you are showing doesnt look like C# code which this package is written in

MadsFoged commented 4 years ago

If you look in "SharpFluids.FluidList." you get a list of all the fluids I have put into this wrapper. I can find R407C but not R407F.

If you look at the list in coolprop I cant find R407F: http://www.coolprop.org/fluid_properties/PurePseudoPure.html#list-of-fluids

volkan-a commented 4 years ago

This is related with CoolProp itself. Maybe you should check it on GitHub.

lodihendriks commented 4 years ago

Hi,

If I run the following code in coolprops it works. R407F is mix gas.

PropsSI("H", "P", 440, "T", 268.15, "R407F.mix")

I have attached the excel file, if you look at the list tab, you will find R407F.mix.

TestExcel.xlsx

lodihendriks commented 4 years ago

Hi lodihendriks, Have you tried to make other things work in this package? The code you are showing doesnt look like C# code which this package is written in

Hi yes, if I use R134a it works fine. I use vb.net.