更改
This commit is contained in:
@@ -357,15 +357,15 @@ namespace CapMachine.Wpf.Services
|
|||||||
{
|
{
|
||||||
string dryErr;
|
string dryErr;
|
||||||
double ps = InhPressTag.PVModel.EngValue;//吸气压力
|
double ps = InhPressTag.PVModel.EngValue;//吸气压力
|
||||||
ps = 2.374421;//Mpa ->BarA
|
//ps = 2.374421;//Mpa ->BarA
|
||||||
double pg = GasPreValvePressTag.PVModel.EngValue;//气路阀前压力
|
double pg = GasPreValvePressTag.PVModel.EngValue;//气路阀前压力
|
||||||
pg = 19.77032;//Mpa ->BarA
|
//pg = 19.77032;//Mpa ->BarA
|
||||||
double tg = GasPreValveTempTag.PVModel.EngValue;//气路阀前温度
|
double tg = GasPreValveTempTag.PVModel.EngValue;//气路阀前温度
|
||||||
tg = 61.76869;
|
//tg = 61.76869;
|
||||||
double plv = TxvFrPressTag.PVModel.EngValue;//膨胀阀前压力=液路阀前压力
|
double plv = TxvFrPressTag.PVModel.EngValue;//膨胀阀前压力=液路阀前压力
|
||||||
plv = 19.26757;//Mpa ->BarA
|
//plv = 19.26757;//Mpa ->BarA
|
||||||
double tlv = TxvFrTempTag.PVModel.EngValue;//膨胀阀前温度 = SUBCOOL出口温度 =液路阀前温度
|
double tlv = TxvFrTempTag.PVModel.EngValue;//膨胀阀前温度 = SUBCOOL出口温度 =液路阀前温度
|
||||||
tlv = 64.96428;
|
//tlv = 64.96428;
|
||||||
|
|
||||||
//液体流量=液冷媒流量 kg/h
|
//液体流量=液冷媒流量 kg/h
|
||||||
//气体流量=冷媒流量-液体流量 kg/h
|
//气体流量=冷媒流量-液体流量 kg/h
|
||||||
@@ -373,19 +373,22 @@ namespace CapMachine.Wpf.Services
|
|||||||
double GasMassFlowKgPerH, LiquidMassFlowKgPerH;
|
double GasMassFlowKgPerH, LiquidMassFlowKgPerH;
|
||||||
|
|
||||||
LiquidMassFlowKgPerH = LiqRefFlowTag.PVModel.EngValue; // [kg/h]
|
LiquidMassFlowKgPerH = LiqRefFlowTag.PVModel.EngValue; // [kg/h]
|
||||||
// VRV 为体积流量 [L/min],需结合管段相态与 T/P 计算密度后换算为质量流量 [kg/h]
|
GasMassFlowKgPerH = (double)(VRVTag?.PVModel?.EngValue - LiquidMassFlowKgPerH);
|
||||||
double vrvLmin = VRVTag?.PVModel?.EngValue ?? 0.0;
|
|
||||||
double totalMassKgPerH;
|
////单位转换和数据计算
|
||||||
string flowErr;
|
//// VRV 为体积流量 [L/min],需结合管段相态与 T/P 计算密度后换算为质量流量 [kg/h]
|
||||||
if (TryConvertVolumetricFlowLMinToMassKgPerH(vrvLmin, plv, tlv, 1, out totalMassKgPerH, out flowErr)) // 1=液相(若 VRV 在液管)
|
//double vrvLmin = VRVTag?.PVModel?.EngValue ?? 0.0;
|
||||||
{
|
//double totalMassKgPerH;
|
||||||
GasMassFlowKgPerH = Math.Max(0.0, totalMassKgPerH - LiquidMassFlowKgPerH);
|
//string flowErr;
|
||||||
}
|
//if (TryConvertVolumetricFlowLMinToMassKgPerH(vrvLmin, plv, tlv, 1, out totalMassKgPerH, out flowErr)) // 1=液相(若 VRV 在液管)
|
||||||
else
|
//{
|
||||||
{
|
// GasMassFlowKgPerH = Math.Max(0.0, totalMassKgPerH - LiquidMassFlowKgPerH);
|
||||||
Logger.Warn($"VRV 体积流量→质量流量换算失败:{flowErr}。已将气体质量流量置 0。输入: VRV={vrvLmin:F3} L/min, Pl={plv:F3} BarA, Tl={tlv:F3} ℃");
|
//}
|
||||||
GasMassFlowKgPerH = 0.0;
|
//else
|
||||||
}
|
//{
|
||||||
|
// Logger.Warn($"VRV 体积流量→质量流量换算失败:{flowErr}。已将气体质量流量置 0。输入: VRV={vrvLmin:F3} L/min, Pl={plv:F3} BarA, Tl={tlv:F3} ℃");
|
||||||
|
// GasMassFlowKgPerH = 0.0;
|
||||||
|
//}
|
||||||
|
|
||||||
//LiquidMassFlowKgPerH = 214.3051;
|
//LiquidMassFlowKgPerH = 214.3051;
|
||||||
//GasMassFlowKgPerH = 264.7956- 214.3051;
|
//GasMassFlowKgPerH = 264.7956- 214.3051;
|
||||||
@@ -424,8 +427,8 @@ namespace CapMachine.Wpf.Services
|
|||||||
kph = 1;
|
kph = 1;
|
||||||
|
|
||||||
p1 = (TxvFrPressTag.PVModel.EngValue) * 100.0;//textBox3 Evap.膨胀阀前压力(BarA→kPa)
|
p1 = (TxvFrPressTag.PVModel.EngValue) * 100.0;//textBox3 Evap.膨胀阀前压力(BarA→kPa)
|
||||||
//p1 = Convert.ToDouble(textBox3.Text) * 100.0;//textBox3 Evap.膨胀阀前压力(BarA→kPa)
|
//p1 = Convert.ToDouble(textBox3.Text) * 100.0;//textBox3 Evap.膨胀阀前压力(BarA→kPa)
|
||||||
// 重复的 SATP 与干度计算已在上方 lock(_refpropLock) 中统一完成,此处移除重复调用
|
// 重复的 SATP 与干度计算已在上方 lock(_refpropLock) 中统一完成,此处移除重复调用
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user