You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
lead.FilteredBrakePipeFlowM3pS=lead.AFMFilter.Filter(lead.BrakePipeFlowM3pS,elapsedClockSeconds);// Actual flow rate displayed by air flow meter
1112
1122
}
1113
1123
else
1114
1124
{// approximate pressure gradient in train pipe line1
@@ -1121,6 +1131,8 @@ protected static void PropagateBrakeLinePressures(float elapsedClockSeconds, Tra
1121
1131
{
1122
1132
if(lead!=null)
1123
1133
{
1134
+
tempBrakePipeFlow=0.0f;
1135
+
1124
1136
// Allow for leaking train air brakepipe
1125
1137
if(lead.BrakeSystem.BrakeLine1PressurePSI-trainPipeLeakLossPSI>0&&lead.TrainBrakePipeLeakPSIorInHgpS!=0)// if train brake pipe has pressure in it, ensure result will not be negative if loss is subtracted
1126
1138
{
@@ -1140,8 +1152,10 @@ protected static void PropagateBrakeLinePressures(float elapsedClockSeconds, Tra
1140
1152
}
1141
1153
floatPressureDiffEqualToPipePSI=trainPipeTimeVariationS*chargingRatePSIpS;// default condition - if EQ Res is higher then Brake Pipe Pressure
PressureDiffEqualToPipePSI*=MathHelper.Clamp(train.EqualReservoirPressurePSIorInHg-lead.BrakeSystem.BrakeLine1PressurePSI,0.1f,1.0f);// Reduce recharge rate if near EQ pressure to prevent air pulsing
1155
+
if(train.EqualReservoirPressurePSIorInHg-lead.BrakeSystem.BrakeLine1PressurePSI<5.0f)// Reduce recharge rate if near EQ to simulate feed valve behavior
tempBrakePipeFlow=(PressureDiffEqualToPipePSI*lead.BrakeSystem.BrakePipeVolumeM3)/(OneAtmospherePSI*trainPipeTimeVariationS);// Instantaneous flow rate from MR to BP
1160
1176
}
1161
1177
}
1162
1178
// reduce pressure in lead brake line if brake pipe pressure is above equalising pressure - apply brakes
@@ -1165,14 +1181,18 @@ protected static void PropagateBrakeLinePressures(float elapsedClockSeconds, Tra
pressureDiffPSI*=MathHelper.Clamp(lead.BrakeSystem.BrakeLine1PressurePSI-train.EqualReservoirPressurePSIorInHg,0.1f,1.0f);// Reduce exhausting rate if near EQ pressure to prevent air pulsing
1184
+
if(train.EqualReservoirPressurePSIorInHg>lead.BrakeSystem.BrakeLine1PressurePSI-5.0f)// Reduce exhausting rate if near EQ pressure to simulate feed valve
0 commit comments