30 lines
1.2 KiB
C#
30 lines
1.2 KiB
C#
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
|
|
};
|
|
}
|
|
}
|
|
} |