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
Trace.TraceInformation("CrankAngle set to default values {0} rad {1} rad {2} rad {3} rad",WheelCrankAngleDiffRad[0],WheelCrankAngleDiffRad[1],WheelCrankAngleDiffRad[2],WheelCrankAngleDiffRad[3]);
Trace.TraceInformation("CrankAngle set to user values {0} rad {1} rad {2} rad {3} rad",WheelCrankAngleDiffRad[0],WheelCrankAngleDiffRad[1],WheelCrankAngleDiffRad[2],WheelCrankAngleDiffRad[3]);
1304
+
1300
1305
}
1301
1306
1302
1307
// ****************** Test Locomotive and Gearing type ***********************
if(absSpeedMpS==0&&cutoff<0.05f)// If the reverser is set too low then not sufficient steam is admitted to the steam cylinders, and hence insufficient Motive Force will produced to move the train.
IndicatedHorsePowerHP=MaxIndicatedHorsePowerHP;// Set IHP to maximum value
4988
-
IsCritTELimit=true;// Flag if limiting TE
4989
-
}
4990
-
else
4991
-
{
4992
-
IsCritTELimit=false;// Reset flag if limiting TE
4993
-
}
4994
-
4995
-
DrawBarPullLbsF=N.ToLbf(Math.Abs(TractiveForceN)-LocoTenderFrictionForceN);// Locomotive drawbar pull is equal to motive force of locomotive (+ tender) - friction forces of locomotive (+ tender)
4996
-
DrawBarPullLbsF=MathHelper.Clamp(DrawBarPullLbsF,0,DrawBarPullLbsF);// clamp value so it doesn't go negative
4997
-
4998
-
DrawbarHorsePowerHP=(DrawBarPullLbsF*MpS.ToMpH(absSpeedMpS))/375.0f;// TE in this instance is a maximum, and not at the wheel???
4999
-
DrawbarHorsePowerHP=MathHelper.Clamp(DrawbarHorsePowerHP,0,DrawbarHorsePowerHP);// clamp value so it doesn't go negative
5000
-
5001
4995
#region - Steam Adhesion Model Input for Steam Locomotives
5002
4996
5003
4997
// Based upon information presented on pg 276 of "Locomotive Operation - A Technical and Practical Analysis" by G. R. Henderson -
IndicatedHorsePowerHP=MaxIndicatedHorsePowerHP;// Set IHP to maximum value
5383
+
IsCritTELimit=true;// Flag if limiting TE
5384
+
}
5385
+
else
5386
+
{
5387
+
IsCritTELimit=false;// Reset flag if limiting TE
5388
+
}
5381
5389
5382
5390
// Find the maximum TE for debug i.e. @ start and full throttle
5383
5391
if(absSpeedMpS<1.0)
@@ -6310,6 +6318,14 @@ public override string GetStatus()
6310
6318
6311
6319
publicoverridestringGetDebugStatus()
6312
6320
{
6321
+
6322
+
6323
+
DrawBarPullLbsF=N.ToLbf(Math.Abs(MotiveForceN)-LocoTenderFrictionForceN);// Locomotive drawbar pull is equal to motive force of locomotive (+ tender) - friction forces of locomotive (+ tender)
6324
+
DrawBarPullLbsF=MathHelper.Clamp(DrawBarPullLbsF,0,DrawBarPullLbsF);// clamp value so it doesn't go negative
6325
+
6326
+
DrawbarHorsePowerHP=(DrawBarPullLbsF*MpS.ToMpH(absSpeedMpS))/375.0f;// TE in this instance is a maximum, and not at the wheel???
6327
+
DrawbarHorsePowerHP=MathHelper.Clamp(DrawbarHorsePowerHP,0,DrawbarHorsePowerHP);// clamp value so it doesn't go negative
0 commit comments