更改了新增的6个物性计算的数据记录方面和显示

This commit is contained in:
2026-04-15 10:43:56 +08:00
parent 5088ec4a0e
commit b8978be8c1
3 changed files with 67 additions and 3 deletions

View File

@@ -492,7 +492,7 @@ namespace CapMachine.Wpf.Services
{
if (!string.IsNullOrWhiteSpace(thermoErr))
{
Logger?.Error($"六个物性结果计算警告: {thermoErr}");
Logger?.Warn($"六个物性结果计算警告: {thermoErr}");
}
}
else
@@ -1210,6 +1210,50 @@ namespace CapMachine.Wpf.Services
return false;
}
if (HVPwTag == null)
{
error = "缺少 HV[W] 功率标签";
return false;
}
var w_W = HVPwTag.PVModel.EngValue;
if (!double.IsNaN(w_W) && !double.IsInfinity(w_W) && w_W == 0)
{
HeatingCapacityQh_kW = 0;
CoolingCapacityQc_kW = 0;
COPHeating = 0;
COPCooling = 0;
IsentropicEfficiencyPct = 0;
VolumetricEfficiencyPct = 0;
if (HeatingCapacityTag != null)
{
HeatingCapacityTag.PVModel.EngValue = 0;
}
if (COPHeatTag != null)
{
COPHeatTag.PVModel.EngValue = 0;
}
if (IsentrpEffTag != null)
{
IsentrpEffTag.PVModel.EngValue = 0;
}
if (CoolCapacityTag != null)
{
CoolCapacityTag.PVModel.EngValue = 0;
}
if (COPCoolTag != null)
{
COPCoolTag.PVModel.EngValue = 0;
}
if (VoltricEffTag != null)
{
VoltricEffTag.PVModel.EngValue = 0;
}
return true;
}
if (!TryGetCompressorPower_kW(out var w_kW, out var wErr))
{
error = wErr;