物性更改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

@@ -145,6 +145,13 @@ namespace CapMachine.Wpf.Models
[Name("EVAP出口温度[℃]")]
public double EVAPExpTemp { get; set; }
/// <summary>
/// 吸气电加热温度[℃]
/// </summary>
[Name("吸气电加热温度[℃]")]
public double InhEleHeatTemp { get; set; }
/// <summary>
/// 冷媒流量[kg/h]
/// </summary>
@@ -175,6 +182,30 @@ namespace CapMachine.Wpf.Models
[Name("膨胀阀前温度[℃]")]
public double TxvFrTemp { get; set; }
[Name("过冷度[K]")]
public double Subcooling { get; set; }
[Name("过热度[K]")]
public double Superheat { get; set; }
[Name("制热量Qh[W]")]
public double HeatingCapacity { get; set; }
[Name("压缩机性能系数(制热COP)")]
public double COPHeat { get; set; }
[Name("等熵效率ns[%]")]
public double IsentrpEff { get; set; }
[Name("制冷量Qc[W]")]
public double CoolCapacity { get; set; }
[Name("压缩机性能系数(制冷COP)")]
public double COPCool { get; set; }
[Name("容积效率nv[%]")]
public double VoltricEff { get; set; }
/// <summary>
/// EVAP出口压力[BarA]
/// </summary>
@@ -182,9 +213,9 @@ namespace CapMachine.Wpf.Models
public double EVAPExpPress { get; set; }
/// <summary>
/// 腔内压力[BarA]
/// 背压压力[BarA]
/// </summary>
[Name("腔内压力[BarA]")]
[Name("背压压力[BarA]")]
public double IntrplPress { get; set; }
/// <summary>

View File

@@ -37,13 +37,22 @@ namespace CapMachine.Wpf.Models
Map(m => m.OS2Temp).Name("OS2温度[℃]");
Map(m => m.Cond2Temp).Name("COND2温度[℃]");
Map(m => m.EVAPExpTemp).Name("EVAP出口温度[℃]");
Map(m => m.InhEleHeatTemp).Name("吸气电加热温度[℃]");
Map(m => m.VRV).Name("冷媒流量[kg/h]");
Map(m => m.LubeFlow).Name("润滑油流量[kg/h]");
Map(m => m.ExTemp).Name("排气温度[℃]");
Map(m => m.TxvFrPress).Name("膨胀阀前压力[BarA]");
Map(m => m.TxvFrTemp).Name("膨胀阀前温度[℃]");
Map(m => m.Subcooling).Name("过冷度[K]").TypeConverterOption.Format("0.00");
Map(m => m.Superheat).Name("过热度[K]").TypeConverterOption.Format("0.00");
Map(m => m.HeatingCapacity).Name("制热量Qh[W]").TypeConverterOption.Format("0.00");
Map(m => m.COPHeat).Name("压缩机性能系数(制热COP)").TypeConverterOption.Format("0.00");
Map(m => m.IsentrpEff).Name("等熵效率ns[%]").TypeConverterOption.Format("0.00");
Map(m => m.CoolCapacity).Name("制冷量Qc[W]").TypeConverterOption.Format("0.00");
Map(m => m.COPCool).Name("压缩机性能系数(制冷COP)").TypeConverterOption.Format("0.00");
Map(m => m.VoltricEff).Name("容积效率nv[%]").TypeConverterOption.Format("0.00");
Map(m => m.EVAPExpPress).Name("EVAP出口压力[BarA]");
Map(m => m.IntrplPress).Name("腔内压力[BarA]");
Map(m => m.IntrplPress).Name("背压压力[BarA]");
Map(m => m.CapSurfTemp).Name("压缩机表面温度[℃]");
Map(m => m.PTCFlow).Name("PTC流量[L/min]");
Map(m => m.PTCEntTemp).Name("PTC入水温度[℃]");

View File

@@ -239,6 +239,8 @@ namespace CapMachine.Wpf.Models.LightChart
return CurHistoryData.Select(a => new ChartPoint() { Value = a.Cond2Temp, Time = a.CreateTime }).OrderBy(a => a.Time).ToList();
case "EVAP出口温度[℃]":
return CurHistoryData.Select(a => new ChartPoint() { Value = a.EVAPExpTemp, Time = a.CreateTime }).OrderBy(a => a.Time).ToList();
case "吸气电加热温度[℃]":
return CurHistoryData.Select(a => new ChartPoint() { Value = a.InhEleHeatTemp, Time = a.CreateTime }).OrderBy(a => a.Time).ToList();
case "冷媒流量[kg/h]":
return CurHistoryData.Select(a => new ChartPoint() { Value = a.VRV, Time = a.CreateTime }).OrderBy(a => a.Time).ToList();
case "润滑油流量[kg/h]":
@@ -249,9 +251,31 @@ namespace CapMachine.Wpf.Models.LightChart
return CurHistoryData.Select(a => new ChartPoint() { Value = a.TxvFrPress, Time = a.CreateTime }).OrderBy(a => a.Time).ToList();
case "膨胀阀前温度[℃]":
return CurHistoryData.Select(a => new ChartPoint() { Value = a.TxvFrTemp, Time = a.CreateTime }).OrderBy(a => a.Time).ToList();
case "过冷度[K]":
return CurHistoryData.Select(a => new ChartPoint() { Value = a.Subcooling, Time = a.CreateTime }).OrderBy(a => a.Time).ToList();
case "过热度[K]":
return CurHistoryData.Select(a => new ChartPoint() { Value = a.Superheat, Time = a.CreateTime }).OrderBy(a => a.Time).ToList();
case "制热量Qh[W]":
return CurHistoryData.Select(a => new ChartPoint() { Value = a.HeatingCapacity, Time = a.CreateTime }).OrderBy(a => a.Time).ToList();
case "制热量Qh[KW]":
return CurHistoryData.Select(a => new ChartPoint() { Value = a.HeatingCapacity / 1000.0, Time = a.CreateTime }).OrderBy(a => a.Time).ToList();
case "压缩机性能系数(制热COP)":
case "压缩机性能系数(制热)[K]":
return CurHistoryData.Select(a => new ChartPoint() { Value = a.COPHeat, Time = a.CreateTime }).OrderBy(a => a.Time).ToList();
case "等熵效率ns[%]":
return CurHistoryData.Select(a => new ChartPoint() { Value = a.IsentrpEff, Time = a.CreateTime }).OrderBy(a => a.Time).ToList();
case "制冷量Qc[W]":
return CurHistoryData.Select(a => new ChartPoint() { Value = a.CoolCapacity, Time = a.CreateTime }).OrderBy(a => a.Time).ToList();
case "制冷量Qc[KW]":
return CurHistoryData.Select(a => new ChartPoint() { Value = a.CoolCapacity / 1000.0, Time = a.CreateTime }).OrderBy(a => a.Time).ToList();
case "压缩机性能系数(制冷COP)":
case "压缩机性能系数(制冷)[K]":
return CurHistoryData.Select(a => new ChartPoint() { Value = a.COPCool, Time = a.CreateTime }).OrderBy(a => a.Time).ToList();
case "容积效率nv[%]":
return CurHistoryData.Select(a => new ChartPoint() { Value = a.VoltricEff, Time = a.CreateTime }).OrderBy(a => a.Time).ToList();
case "EVAP出口压力[BarA]":
return CurHistoryData.Select(a => new ChartPoint() { Value = a.EVAPExpPress, Time = a.CreateTime }).OrderBy(a => a.Time).ToList();
case "腔内压力[BarA]":
case "背压压力[BarA]":
return CurHistoryData.Select(a => new ChartPoint() { Value = a.IntrplPress, Time = a.CreateTime }).OrderBy(a => a.Time).ToList();
case "压缩机表面温度[℃]":
return CurHistoryData.Select(a => new ChartPoint() { Value = a.CapSurfTemp, Time = a.CreateTime }).OrderBy(a => a.Time).ToList();

View File

@@ -65,6 +65,26 @@
return default;
}
/// <summary>
/// 获取用于数据记录的 PV 工程值。
/// </summary>
/// <param name="tagName">标签名称(即 <see cref="DicTags"/> 的 key。</param>
/// <returns>若存在标签则返回其 <see cref="ITag.EngPvValue"/>,否则返回 0。</returns>
public double TryGetRecordPVValue(string tagName)
{
if (string.IsNullOrWhiteSpace(tagName))
{
return 0;
}
if (DicTags.TryGetValue(tagName, out var tag) && tag != null)
{
return tag.EngPvValue;
}
return 0;
}
/// <summary>
/// 获取标签的值信息
/// </summary>