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
Copy file name to clipboardExpand all lines: Source/Orts.Simulation/Simulation/RollingStocks/MSTSSteamLocomotive.cs
+3-5Lines changed: 3 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -464,7 +464,7 @@ public float TenderFuelMassKG // Decreased by firing and increased
464
464
float MSTSSteamGaugeGlassHeightM;
465
465
float WaterGlassLengthM;
466
466
float waterGlassFractionLevel; // Water glass level as a fraction
467
-
// bool WaterGlassLevelGradientEnabled = false;
467
+
468
468
float MEPFactor = 0.7f; // Factor to determine the MEP
469
469
float GrateAreaDesignFactor = 500.0f; // Design factor for determining Grate Area
470
470
float EvapAreaDesignFactor = 10.0f; // Design factor for determining Evaporation Area
@@ -1565,11 +1565,10 @@ public override void Initialize()
1565
1565
WaterGlassMaxLevel = ((WaterGlassLengthM + BoilerCrownCoverageHeightM + BoilerCrownHeightM) + (BoilerDiameterM / 2.0f)) / BoilerDiameterM; // max height of water gauge as a fraction of boiler level
1566
1566
WaterGlassMinLevel = referenceBoilerLevelFraction; // min height of water gauge as a fraction of boiler level
1567
1567
1568
-
BoilerWaterFractionAbs = (WaterMinLevel + WaterMaxLevel) / 2; // Initialise current boiler water level
1568
+
BoilerWaterFractionAbs = (WaterGlassMinLevel + WaterGlassMaxLevel) / 2; // Initialise current boiler water level to halfway up glass
1569
1569
1570
1570
float MaxWaterFraction = BoilerWaterFractionAbs; // Initialise the max water fraction when the boiler starts
1571
1571
1572
-
1573
1572
if (BoilerEvapRateLbspFt2 == 0) // If boiler evaporation rate is not in ENG file then set a default value
1574
1573
{
1575
1574
if (SteamLocomotiveFuelType == SteamLocomotiveFuelTypes.Wood)
0 commit comments