Skip to content

Commit b2368a0

Browse files
committed
Automatic merge of T1.5.1-801-g8ef12d34f and 15 pull requests
- Pull request #570 at 3539862: Experimental glTF 2.0 support with PBR lighting - Pull request #839 at d00beb9: First phase of https://blueprints.launchpad.net/or/+spec/additional-cruise-control-parameters - Pull request #876 at f92de76: docs: add source for documents previously on website to source Documentation folder - Pull request #882 at b554363: Blueprint/train car operations UI window - Pull request #885 at 8f94333: feat: Add notifications to Menu - Pull request #886 at 6c0785b: Scene viewer extension to TrackViewer - Pull request #892 at 1f5ba4c: Signal Function OPP_SIG_ID_TRAINPATH - Pull request #896 at 5866028: First implementation of https://blueprints.launchpad.net/or/+spec/specific-sounds-for-ai-trains - Pull request #897 at 42f1dd9: feat: Improved system information collection - Pull request #899 at 24e5fd0: Duplex steam engines - Booster Engine addition - Pull request #903 at 0d6d045: Downloading route content (Github, zip) - Pull request #907 at 9b0b04f: Bug fix for https://bugs.launchpad.net/or/+bug/2047300 Dynamic tracks disappear after long tunnel - Pull request #908 at 4b4afe3: feat: supports switching adhesion precisions - Pull request #911 at 6834af0: docs: Add refactoring as a special type of PR - Pull request #912 at 8106ea1: New Triple Valve Features Vol. 2
17 parents b609b92 + 8ef12d3 + 3539862 + d00beb9 + f92de76 + b554363 + 8f94333 + 6c0785b + 1f5ba4c + 5866028 + 42f1dd9 + 24e5fd0 + 0d6d045 + 9b0b04f + 4b4afe3 + 6834af0 + 8106ea1 commit b2368a0

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2552,7 +2552,7 @@ public override void Update(float elapsedClockSeconds)
25522552

25532553
UpdateSteamTractiveForce(elapsedClockSeconds, tractiveforcethrottle, 0, 0, i);
25542554

2555-
SteamDrvWheelWeightLbs += Kg.ToLb(SteamEngines[i].AttachedAxle.WheelWeightKg / SteamEngines[i].AttachedAxle.NumDriveAxles); // Calculate the weight per axle (used in MSTSLocomotive for friction calculatons)
2555+
SteamDrvWheelWeightLbs += Kg.ToLb(SteamEngines[i].AttachedAxle.WheelWeightKg / SteamEngines[i].AttachedAxle.NumWheelsetAxles); // Calculate the weight per axle (used in MSTSLocomotive for friction calculatons)
25562556

25572557
}
25582558

@@ -6332,7 +6332,7 @@ public override void AdvancedAdhesion(float elapsedClockSeconds)
63326332
float TotalWheelMomentofInertia = WheelMomentInertia + AxleMomentInertia; // Total MoI for generic wheelset
63336333

63346334
// The moment of inertia needs to be increased by the number of wheels in each set
6335-
TotalWheelMomentofInertia *= linkedEngine.AttachedAxle.NumDriveAxles;
6335+
TotalWheelMomentofInertia *= linkedEngine.AttachedAxle.NumWheelsetAxles;
63366336

63376337
// the inertia of the coupling rods can also be added
63386338
// Assume rods weigh approx 1500 lbs

Source/Orts.Simulation/Simulation/RollingStocks/SubSystems/PowerTransmissions/Axle.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ public void Initialize()
235235
if (axle.InertiaKgm2 <= 0) axle.InertiaKgm2 = locomotive.AxleInertiaKgm2 / AxleList.Count;
236236
if (axle.WheelWeightKg <= 0) axle.WheelWeightKg = locomotive.DrvWheelWeightKg / AxleList.Count;
237237
if (axle.AxleWeightN <= 0) axle.AxleWeightN = 9.81f * axle.WheelWeightKg; //remains fixed for diesel/electric locomotives, but varies for steam locomotives
238-
if (axle.NumDriveAxles <= 0) axle.NumDriveAxles = locomotive.LocoNumDrvAxles;
238+
if (axle.NumWheelsetAxles <= 0) axle.NumWheelsetAxles = locomotive.LocoNumDrvAxles;
239239
if (axle.WheelRadiusM <= 0) axle.WheelRadiusM = locomotive.DriverWheelRadiusM;
240240
if (axle.WheelFlangeAngleRad <= 0) axle.WheelFlangeAngleRad = locomotive.MaximumWheelFlangeAngleRad;
241241
if (axle.DampingNs <= 0) axle.DampingNs = locomotive.MassKG / 1000.0f / AxleList.Count;
@@ -622,9 +622,9 @@ public float TransmissionEfficiency
622622
public float BogieRigidWheelBaseM;
623623

624624
/// <summary>
625-
/// Number of drive axles in group of wheels
625+
/// Number of axles in group of wheels, in some instance this might be a mix of drive and non-drive axles
626626
/// </summary>
627-
public float NumDriveAxles;
627+
public float NumWheelsetAxles;
628628

629629
/// <summary>
630630
/// Static adhesion coefficient, as given by Curtius-Kniffler formula
@@ -867,8 +867,8 @@ public void Parse(STFReader stf)
867867
case "ortsflangeangle":
868868
WheelFlangeAngleRad = stf.ReadFloatBlock(STFReader.UNITS.Angle, null);
869869
break;
870-
case "ortsnumberdriveaxles":
871-
NumDriveAxles = stf.ReadFloatBlock(STFReader.UNITS.Distance, null);
870+
case "numberwheelsetaxles":
871+
NumWheelsetAxles = stf.ReadFloatBlock(STFReader.UNITS.Distance, null);
872872
break;
873873
case "ortsinertia":
874874
InertiaKgm2 = stf.ReadFloatBlock(STFReader.UNITS.RotationalInertia, null);
@@ -893,7 +893,7 @@ public void Copy(Axle other)
893893
{
894894
WheelRadiusM = other.WheelRadiusM;
895895
WheelFlangeAngleRad = other.WheelFlangeAngleRad;
896-
NumDriveAxles = other.NumDriveAxles;
896+
NumWheelsetAxles = other.NumWheelsetAxles;
897897
InertiaKgm2 = other.InertiaKgm2;
898898
WheelWeightKg = other.WheelWeightKg;
899899
AxleWeightN = other.AxleWeightN;
@@ -1254,8 +1254,8 @@ public void Update()
12541254
var wheelRadiusMM = Axle.WheelRadiusM * 1000;
12551255
var wheelDistanceGaugeMM = Axle.WheelDistanceGaugeM * 1000;
12561256
var GNm2 = 8.40E+10;
1257-
wheelLoadN = Axle.AxleWeightN / (Axle.NumDriveAxles * 2); // Assume two wheels per axle, and thus wheel weight will be have the value - multiple axles????
1258-
var wheelLoadkN = Axle.AxleWeightN / (Axle.NumDriveAxles * 2 * 1000); // Assume two wheels per axle, and thus wheel weight will be have the value - multiple axles????
1257+
wheelLoadN = Axle.AxleWeightN / (Axle.NumWheelsetAxles * 2); // Assume two wheels per axle, and thus wheel weight will be have the value - multiple axles????
1258+
var wheelLoadkN = Axle.AxleWeightN / (Axle.NumWheelsetAxles * 2 * 1000); // Assume two wheels per axle, and thus wheel weight will be have the value - multiple axles????
12591259
var Young_ModulusMPa = 207000;
12601260

12611261
// Calculate Hertzian values - assume 2b = 12mm.

Source/RunActivity/Viewer3D/Popups/HUDWindow.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@ static string GetCarWhyteLikeNotation(TrainCar car)
622622
currentCount += 2;
623623
axlesCount += 1;
624624

625-
if (axlesCount >= steamloco.SteamEngines[i].AttachedAxle.NumDriveAxles && currentCount != 0)
625+
if (axlesCount >= steamloco.SteamEngines[i].AttachedAxle.NumWheelsetAxles && currentCount != 0)
626626
{
627627
whyte.Add(currentCount.ToString());
628628
currentBogie = axle.BogieIndex;

0 commit comments

Comments
 (0)