MadsKirkFoged / SharpFluids

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

Fluid Enthalpy should return an Enthalpy type not SpecificEnergy #19

Closed romarro closed 3 years ago

romarro commented 3 years ago

If I Have the following: wg = new Fluid(...)

Enthalpy H = wg.Enthalpy

gives an error: cannot convert from 'EngineeringUnits.SpecificEnergy' to 'EngineeringUnits.Enthalpy'

Why the Fluid doesn't return Enthalpy and a SpecificEnergy? I can explicitly convert the SpecificEnergy to Enthalpy, I know that, but it ads complexity to the code.

MadsKirkFoged commented 3 years ago

Should be fixed, it was a bug from my side! Thanks for reporting it! The new version is out.

Let me know if it worked for you

romarro commented 3 years ago

Ths is working. Thanks