This commit is contained in:
xyy
2026-02-27 16:03:49 +08:00
parent ff5d1b7d1d
commit 82abc41dbc
26 changed files with 1170 additions and 50 deletions

View File

@@ -0,0 +1,30 @@
namespace MembranePoreTester.Models
{
public class BubblePointRecord
{
public string SampleType { get; set; } // 平板膜/中空纤维膜
public string SampleSpec { get; set; } // 规格
public double RoomTemperature { get; set; } // 室温(°C)
public double SoakingTime { get; set; } // 浸润时间(小时)
public TestLiquid Liquid { get; set; } // 测试液体
public string LiquidManufacturer { get; set; } // 生产厂家
public double BubblePointPressure { get; set; } // 泡点压力(数值)
public string PressureUnit { get; set; } // Pa/cmHg/psi
public DateTime TestDate { get; set; } = DateTime.Now;
public string Tester { get; set; }
public double MaxPoreSize => CalculateMaxPore();
private double CalculateMaxPore()
{
if (Liquid == null) return 0;
return PressureUnit switch
{
"Pa" => Liquid.C_Pa / BubblePointPressure,
"cmHg" => Liquid.C_cmHg / BubblePointPressure,
"psi" => Liquid.C_psi / BubblePointPressure,
_ => 0
};
}
}
}