物性更改2

一些已知的更改
This commit is contained in:
2026-05-07 22:11:27 +08:00
parent bdc90d4473
commit 47834ea4dc
14 changed files with 2050 additions and 732 deletions

View File

@@ -603,7 +603,7 @@ namespace CapMachine.Wpf.PPCalculation
return true;
}
private static bool TryGetMolarMassKgPerMol(long componentId, out double molarMassKgPerMol, out string error)
private bool TryGetMolarMassKgPerMol(long componentId, out double molarMassKgPerMol, out string error)
{
molarMassKgPerMol = double.NaN;
error = string.Empty;
@@ -620,7 +620,11 @@ namespace CapMachine.Wpf.PPCalculation
double acf = 0;
double dip = 0;
double Rgas = 0;
IRefProp64.INFOdll(ref componentId, ref wmm, ref Trp, ref Tnbpt, ref Tc, ref Pc, ref Dc, ref Zc, ref acf, ref dip, ref Rgas);
lock (_refpropLock)
{
IRefProp64.INFOdll(ref componentId, ref wmm, ref Trp, ref Tnbpt, ref Tc, ref Pc, ref Dc, ref Zc, ref acf, ref dip, ref Rgas);
}
molarMassKgPerMol = wmm * 0.001;
if (molarMassKgPerMol <= 0)
{