Skip to content

Commit fd04274

Browse files
committed
Correct starting tractive force of steam locomotive due to steam pressure variation.
1 parent 723f722 commit fd04274

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Source/Orts.Simulation/Simulation/RollingStocks/MSTSSteamLocomotive.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4615,10 +4615,10 @@ protected override void UpdateTractiveForce(float elapsedClockSeconds, float t,
46154615
// Set "current" motive force based upon the throttle, cylinders, steam pressure, etc
46164616
MotiveForceN = (Direction == Direction.Forward ? 1 : -1) * N.FromLbf(TractiveEffortLbsF);
46174617

4618-
// On starting allow maximum motive force to be used, unless gear is in neutral (normally only geared locomotive will be zero).
4618+
// On starting allow maximum motive force to be used, unless gear is in neutral (normally only geared locomotive will be zero). Decrease force if steam pressure is not at maximum
46194619
if (absSpeedMpS < 1.0f && cutoff > 0.70f && throttle > 0.98f && MotiveForceGearRatio != 0)
46204620
{
4621-
MotiveForceN = (Direction == Direction.Forward ? 1 : -1) * MaxForceN;
4621+
MotiveForceN = (Direction == Direction.Forward ? 1 : -1) * MaxForceN * (BoilerPressurePSI / MaxBoilerPressurePSI);
46224622
}
46234623

46244624
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.

0 commit comments

Comments
 (0)