Elvas Tower: OR NewYear MG - Elvas Tower

Jump to content

  • 229 Pages +
  • « First
  • 227
  • 228
  • 229
  • You cannot start a new topic
  • You cannot reply to this topic

OR NewYear MG Rate Topic: ****- 4 Votes

#2281 User is offline   Csantucci 

  • Member, Board of Directors
  • Group: Posts: Elite Member
  • Posts: 7,234
  • Joined: 31-December 11
  • Gender:Male
  • Country:

Posted 08 December 2024 - 12:50 PM

Hi Peter,
Thanks for your help.

#2282 User is offline   engmod 

  • Open Rails Developer
  • PipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 1,966
  • Joined: 26-February 08
  • Gender:Male
  • Location:Eltham, Victoria, Australia
  • Simulator:ORNYMG
  • Country:

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?

Attached File(s)



#2283 User is offline   Csantucci 

  • Member, Board of Directors
  • Group: Posts: Elite Member
  • Posts: 7,234
  • Joined: 31-December 11
  • Gender:Male
  • Country:

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.

#2284 User is offline   engmod 

  • Open Rails Developer
  • PipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 1,966
  • Joined: 26-February 08
  • Gender:Male
  • Location:Eltham, Victoria, Australia
  • Simulator:ORNYMG
  • Country:

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.

#2285 User is offline   Csantucci 

  • Member, Board of Directors
  • Group: Posts: Elite Member
  • Posts: 7,234
  • Joined: 31-December 11
  • Gender:Male
  • Country:

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.

  • 229 Pages +
  • « First
  • 227
  • 228
  • 229
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users