物性更改
This commit is contained in:
@@ -247,6 +247,7 @@ namespace CapMachine.Wpf.Services
|
||||
// 计算过热度:吸气压力的饱和温度
|
||||
double pForSat = (InhPressTag.PVModel.EngValue) * 1000.0; // MPa->kPa
|
||||
double teSat = 0;
|
||||
iErr = 0; // 确保按 ref 传入前已赋值
|
||||
IRefProp64.SATPdll(ref pForSat, xLoc, ref kph, ref teSat, ref DlLoc, ref DvLoc, xliqLoc, xvapLoc, ref iErr, ref herr2, ref herrLen2);
|
||||
if (iErr == 0)
|
||||
Superheat.PVModel.EngValue = InhTempTag.PVModel.EngValue - (teSat - 273.15);
|
||||
@@ -333,7 +334,7 @@ namespace CapMachine.Wpf.Services
|
||||
// 在同一把锁中执行 REFPROP 计算,保证并发安全
|
||||
lock (_refpropLock)
|
||||
{
|
||||
string herr = new string(' ', 255); long herrLen = 255;
|
||||
string herr = new string(' ', 255); long herrLen = 255; iErr = 0; // 确保按 ref 传入前已赋值
|
||||
IRefProp64.SATPdll(ref p, x, ref kph, ref te, ref Dl, ref Dv, xliq, xvap, ref iErr, ref herr, ref herrLen);
|
||||
|
||||
if (iErr == 0)
|
||||
|
||||
@@ -1155,6 +1155,72 @@
|
||||
"Block": "PV",
|
||||
"BlockIndex": 102
|
||||
}
|
||||
},
|
||||
{
|
||||
"Id": 530,
|
||||
"Name": "干度[%]",
|
||||
"NameNoUnit": "干度",
|
||||
"EnName": "Dryness",
|
||||
"Group": "计算",
|
||||
"MinValue": 0,
|
||||
"MaxValue": 10000,
|
||||
"IsMeter": false,
|
||||
"DecimalPoint": 2,
|
||||
"Precision": 1,
|
||||
"Unit": "%",
|
||||
"DataType": "Short",
|
||||
"RWInfo": "PLCRead",
|
||||
"PVModel": {
|
||||
"Address": "VW15104",
|
||||
"EngValue": 0,
|
||||
"EngValueStr": "",
|
||||
"Block": "PV",
|
||||
"BlockIndex": 104
|
||||
}
|
||||
},
|
||||
{
|
||||
"Id": 540,
|
||||
"Name": "过冷度[K]",
|
||||
"NameNoUnit": "过冷度",
|
||||
"EnName": "Subcooling",
|
||||
"Group": "计算",
|
||||
"MinValue": 0,
|
||||
"MaxValue": 10000,
|
||||
"IsMeter": false,
|
||||
"DecimalPoint": 1,
|
||||
"Precision": 1,
|
||||
"Unit": "K",
|
||||
"DataType": "Short",
|
||||
"RWInfo": "PLCRead",
|
||||
"PVModel": {
|
||||
"Address": "VW15106",
|
||||
"EngValue": 0,
|
||||
"EngValueStr": "",
|
||||
"Block": "PV",
|
||||
"BlockIndex": 106
|
||||
}
|
||||
},
|
||||
{
|
||||
"Id": 550,
|
||||
"Name": "过热度[K]",
|
||||
"NameNoUnit": "过热度",
|
||||
"EnName": "Superheat",
|
||||
"Group": "计算",
|
||||
"MinValue": 0,
|
||||
"MaxValue": 10000,
|
||||
"IsMeter": false,
|
||||
"DecimalPoint": 1,
|
||||
"Precision": 1,
|
||||
"Unit": "K",
|
||||
"DataType": "Short",
|
||||
"RWInfo": "PLCRead",
|
||||
"PVModel": {
|
||||
"Address": "VW15108",
|
||||
"EngValue": 0,
|
||||
"EngValueStr": "",
|
||||
"Block": "PV",
|
||||
"BlockIndex": 108
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user