IFlowMeterSingle with GetRange(.) and CorrectedFlow(.), Test method calculations clean-up, refactorization, ver. 3.1.1901
This commit is contained in:
@@ -32,7 +32,7 @@ namespace TBF.Rig.Various.ErrorFlags
|
||||
/// Any E# is 'true' on error, 'false' when OK
|
||||
|
||||
/// Average flow
|
||||
bool E1 = (testRslt.FlowVolume < testRslt.Qfrom()) || (testRslt.FlowVolume > testRslt.Qto());
|
||||
bool E1 = (testRslt.Flow < testRslt.Qfrom()) || (testRslt.Flow > testRslt.Qto());
|
||||
|
||||
/// Max. and min. up and down water temperature
|
||||
bool E2 = ProcessData.TempUpStat.Min < testRslt.TempLimLo()
|
||||
@@ -88,8 +88,8 @@ namespace TBF.Rig.Various.ErrorFlags
|
||||
|| ProcessData.PressDownStat.Max > errorsCfg.TestParams.Pressure_max;
|
||||
|
||||
/// Max. and min. flow
|
||||
double rectifiedFlowMin = (testRslt.FlowMean == 0) ? testRslt.FlowMin : testRslt.FlowMin * testRslt.FlowVolume / testRslt.FlowMean;
|
||||
double rectifiedFlowMax = (testRslt.FlowMean == 0) ? testRslt.FlowMax : testRslt.FlowMax * testRslt.FlowVolume / testRslt.FlowMean;
|
||||
double rectifiedFlowMin = (testRslt.FlowMean == 0) ? testRslt.FlowMin : testRslt.FlowMin * testRslt.Flow / testRslt.FlowMean;
|
||||
double rectifiedFlowMax = (testRslt.FlowMean == 0) ? testRslt.FlowMax : testRslt.FlowMax * testRslt.Flow / testRslt.FlowMean;
|
||||
bool E21 = rectifiedFlowMin < testRslt.Qfrom() || rectifiedFlowMax > testRslt.Qto();
|
||||
|
||||
/// Electrical conductivity of water
|
||||
|
||||
Reference in New Issue
Block a user