Skip to content

CO2 input limitations or inproper table link?  #41

@CptUran

Description

@CptUran

Hi MadsKirkFoged,

I've stumbled across some weird results during my mixtures calculations. Upon further examinations it turns out that CO2 part wasn't updating it's status at all. It happens at low pressures and low temperatures (relatively). I was wondering if this has something to do with input limits or is there some error in CO2 table, because CoolProp Online ans NIST Database seems to have proper results in this range. Below is a simple code I wrote for this test. (Enthalpy passed as an input in last line is proper enthalpy at 1 bar and 273 K according to CoolProp Online).

using SharpFluids;
using EngineeringUnits;
using EngineeringUnits.Units;


double press = 101000;
double temp = 273;
Fluid CO2 = new Fluid(FluidList.CO2);

CO2.UpdatePT(Pressure.FromPascals(press), Temperature.FromKelvins(temp));
Console.WriteLine(CO2.Density.As(DensityUnit.KilogramPerCubicMeter));
CO2.UpdatePT(Pressure.FromBars(5), Temperature.FromDegreesCelsius(150));
Console.WriteLine(CO2.Density.As(DensityUnit.KilogramPerCubicMeter));
CO2.UpdatePT(Pressure.FromBars(10), Temperature.FromDegreesCelsius(300));
Console.WriteLine(CO2.Density.As(DensityUnit.KilogramPerCubicMeter));
CO2.UpdatePH(Pressure.FromBars(1), Enthalpy.FromKilojoulePerKilogram(484.749));
Console.WriteLine(CO2.Density.As(DensityUnit.KilogramPerCubicMeter));

And here are the results:

0
0
9,26798114913052
9,26798114913052

I'm not sure what to do with this. Thank you for any help :)

Best Regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions