Hi Peter,
Thanks for your help.
OR NewYear MG
#2282
Posted 10 December 2024 - 11:28 PM
Carlo,
I have isolated a problem with the calculation of derailcoff.
The discussion can be found here:- https://www.trainsim...ge3#post2316450
This problem relates to a 5 pack container set, specifically to an empty car not being an end car.
Log file for reference.
Do you have knowledge of the coder of the derailcoff?
I have isolated a problem with the calculation of derailcoff.
The discussion can be found here:- https://www.trainsim...ge3#post2316450
This problem relates to a 5 pack container set, specifically to an empty car not being an end car.
Log file for reference.
Do you have knowledge of the coder of the derailcoff?
Attached File(s)
-
OpenRailsLog.txt (12.59K)
Number of downloads: 2 -
Clipboard_12-11-2024_01.jpg (831.55K)
Number of downloads: 9
#2283
Posted Yesterday, 05:44 AM
I haven't written such code. I had now a look on this.
DerailmentCoefficient = TotalWagonLateralDerailForceN / TotalWagonVerticalDerailForceN
and the two forces mentioned there are the result of a non simple calculation. Moreover DerailmentCoefficient is multiplied by a correcting factor > 1.
DerailmentCoefficient = TotalWagonLateralDerailForceN / TotalWagonVerticalDerailForceN
and the two forces mentioned there are the result of a non simple calculation. Moreover DerailmentCoefficient is multiplied by a correcting factor > 1.
#2284
Posted Yesterday, 01:45 PM
Carlo,
Thank you for finding the code for me.
I now believe there is no bug, just a bad calculation of numwheels in the case of 3 and 5 pack units.
This takes me back to the problems with 3 pack and 5 pack units, I have made up this table:-
axles
3 cars
2-2 2-2 2-2 = 12 axles numwheels 4
3 pack
2 2 2 2 = 8 axles A = nw3 C = nw2 B = nw3 3+2+3 = 8 axles outer cars numwheels 3 inner cars numwheels 2
5 cars
2-2 2-2 2-2 2-2 2-2 = 20 axles
5 pack
2 2 2 2 2 2 = 12 axles A=nw3 C=nw2 D=nw2 E=nw2 B=nw3 3+2+2+2+3 = 12 axles outer cars numwheels 3 inner cars numwheels 2
I will now test those figures on the activity
First test with NO derailment warnings.
Thank you for finding the code for me.
I now believe there is no bug, just a bad calculation of numwheels in the case of 3 and 5 pack units.
This takes me back to the problems with 3 pack and 5 pack units, I have made up this table:-
axles
3 cars
2-2 2-2 2-2 = 12 axles numwheels 4
3 pack
2 2 2 2 = 8 axles A = nw3 C = nw2 B = nw3 3+2+3 = 8 axles outer cars numwheels 3 inner cars numwheels 2
5 cars
2-2 2-2 2-2 2-2 2-2 = 20 axles
5 pack
2 2 2 2 2 2 = 12 axles A=nw3 C=nw2 D=nw2 E=nw2 B=nw3 3+2+2+2+3 = 12 axles outer cars numwheels 3 inner cars numwheels 2
I will now test those figures on the activity
First test with NO derailment warnings.
#2285
Posted Today, 01:21 AM
In effect to be more complete from the code we have:
AA1 = Math.Abs(CarAhead.CouplerForceUSmoothed.SmoothedValue) * (float)Math.Sin(WagonCouplerAngleDerailRad) / WagonNumBogies;
BB1 = MassKG / numAxles;
TotalWagonLateralDerailForceN = Math.Abs(AA1 + BB1 * (BB2 - BB3));
so the wagon lateral derail force is reduced if WagonNumBogies and numAxles are higher.
Therefore I think you are correct in your assumption.
AA1 = Math.Abs(CarAhead.CouplerForceUSmoothed.SmoothedValue) * (float)Math.Sin(WagonCouplerAngleDerailRad) / WagonNumBogies;
BB1 = MassKG / numAxles;
TotalWagonLateralDerailForceN = Math.Abs(AA1 + BB1 * (BB2 - BB3));
so the wagon lateral derail force is reduced if WagonNumBogies and numAxles are higher.
Therefore I think you are correct in your assumption.