Elvas Tower: Wagon Physics Variation - Elvas Tower

Jump to content

Posting Rules

All new threads will be started by members of the Open Rails team, Staff, and/or Admins. Existing threads started in other forums may get moved here when it makes sense to do so.

Once a thread is started any member may post replies to it.
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Wagon Physics Variation Adjustment of wagon physics with changing loads Rate Topic: -----

#1 User is offline   steamer_ctn 

  • Open Rails Developer
  • Group: Status: Elite Member
  • Posts: 1,889
  • Joined: 24-June 11
  • Gender:Male
  • Country:

Posted 03 February 2017 - 01:24 PM

Starting with #3777 capability is being included in OR to facilitate the adjustment of wagon physics (friction, braking, curve speed, etc) related to the load. This compliments the existing freight animations capability, for example, the physics for a coal wagon will vary as the wagon is loaded and unloaded.

To facilitate variation of the physics a known empty and full physics condition needs to be defined for OR. This is done by inserting relevant empty and full physics parameters in the freight animations include file. (Se example code below).

When defining a load variation scenario one of the following two options may be used:

i) Static Load Variation - wagon load is configured when OR is initially loaded, and loading condition does not change throughout the game. The root WAG file conditions are used for the empty condition, and the full ones are inserted from the INCLUDE file. This feature allows a single empty wagon to be configured, and then different loads to be added via freight animations.

At some stage in the future it may be possible to script the full configuration in the CON file by specifying the freight animation load to be used, thus simplifying wagon selection and eliminating the need to duplicate WAG files for loaded and unloaded conditions.

A typical INCLUDE file for a Static
Wagon (
ORTSFreightAnims
  (
	MSTSFreightAnimEnabled (0)
	WagonEmptyWeight(10.0t-uk)

  FreightAnimStatic
  (
	SubType(Default)
	Shape( ..\\common.Loads\\15ft_open\\15ft_3p_HumpSheet2.s )
	Offset( 0, 0, 0)
	FreightWeight( 15.0t-uk )
	FullMaxBrakeForce ( 62.275kN ) 
	FullMaxHandbrakeForce ( 9.964kN )
	FullORTSDavis_A ( 421.80 )
	FullORTSDavis_B ( 12.6850 )
	FullORTSDavis_C ( 0.958320 )
	FullCentreOfGravity_Y ( 2.0 ) 
  )
 )
)



ii) Continuous Load Variation - wagon load varies throughout the game as wagon is load/unloaded at pickup points.

In the case of the continuous load model, both the full and empty physics are included in the INCLUDE file.


Wagon (
ORTSFreightAnims
  (
  	MSTSFreightAnimEnabled (0)
  	WagonEmptyWeight(10.0t-uk)
  	EmptyMaxBrakeForce ( 29.892kN )
  	EmptyMaxHandbrakeForce ( 9.964kN )
  	EmptyORTSDavis_A ( 580.71 )
  	EmptyORTSDavis_B ( 5.0148 )
  	EmptyORTSDavis_C ( 0.694782 )
  	EmptyCentreOfGravity_Y ( 1.41 )
  	IsGondola(0)
  	UnloadingStartDelay (5)
  	
	FreightAnimContinuous
 	(
  	IntakePoint ( 0.0 6.0 FreightCoal )
  	Shape(H_Coal.s) 
  	MaxHeight(0.1)
  	MinHeight(-0.85)
  	FreightWeightWhenFull(26.0t-uk)
  	FullAtStart( 0 )
  	FullMaxBrakeForce ( 89.676kN )
  	FullMaxHandbrakeForce ( 9.964kN )
  	FullORTSDavis_A ( 748.61 )
  	FullORTSDavis_B ( 18.0157 )
  	FullORTSDavis_C ( 0.838530 )
  	FullCentreOfGravity_Y ( 1.8 ) 
 	)	
)


It is hoped to extend this functionality to locomotives and tenders thus allowing physics variations as the load varies in the locomotive or tender.

#2 User is offline   Coolhand101 

  • Foreman Of Engines
  • Group: Status: Contributing Member
  • Posts: 998
  • Joined: 13-June 15
  • Gender:Male
  • Simulator:MSTS
  • Country:

Posted 03 February 2017 - 05:50 PM

While testing my wagons with this feature, i'm noticing different starting resistance forces.

Wagon weight 45 tons 2 axles :

Friction (
		492.2N/m/s    -0.10    1.6mph    2.525N/m/s    1.829
		5.1N/rad/s		1		-1rad/s		0		1
	)


Starting resistance is 218ibs

      ORTSDavis_A ( 492.23 )
      ORTSDavis_B ( 7.4039 )	
      ORTSDavis_C ( 1.186999 )
      ORTSBearingType ( Roller )


Starting resistance is 466ibs


        FullORTSDavis_A ( 492.23 ) 
        FullORTSDavis_B ( 7.4039 ) 
        FullORTSDavis_C ( 1.186999 ) 


Starting resistance is 714ibs

The first two has been ongoing between fcalc and ORTSdavis for as long as i can remember, but i cannot account for the extra starting resistance in the FULL davis parameters?

Thanks

#3 User is offline   steamer_ctn 

  • Open Rails Developer
  • Group: Status: Elite Member
  • Posts: 1,889
  • Joined: 24-June 11
  • Gender:Male
  • Country:

Posted 03 February 2017 - 11:38 PM

View PostCoolhand101, on 03 February 2017 - 05:50 PM, said:

While testing my wagons with this feature, i'm noticing different starting resistance forces.

........................ Snip .......................

The first two has been ongoing between fcalc and ORTSdavis for as long as i can remember, but i cannot account for the extra starting resistance in the FULL davis parameters?


Starting resistance is independent of the Davis calculated resistance which only starts to have an effect over about 5mph.

The starting resistance is related to the weight of the wagon, (and has always been the case).

Therefore starting resistance will increase as the wagon is loaded, and decrease as the wagon is unloaded.

In fact it has always varied ever since freight animation was initially introduced, to confirm run v1.2, and watch the friction column in the Forces Information HUD.

What hasn't varied previously has been the brake force, and "running friction".

#4 User is offline   Coolhand101 

  • Foreman Of Engines
  • Group: Status: Contributing Member
  • Posts: 998
  • Joined: 13-June 15
  • Gender:Male
  • Simulator:MSTS
  • Country:

Posted 04 February 2017 - 03:22 AM

Thanks for that explanation.

If i add the wag ORTSDavis parameters to the include file, i now get the same 466ibs friction at a stand for a 2-axle 45 ton loaded wagon, when using the FULLORTSDavis parameters.

#5 User is offline   steamer_ctn 

  • Open Rails Developer
  • Group: Status: Elite Member
  • Posts: 1,889
  • Joined: 24-June 11
  • Gender:Male
  • Country:

Posted 04 February 2017 - 10:12 PM

#3782 now incorporates physics variation for steam tenders. This means that the tender weight will vary as coal/water is used, and replenished. The wagon physics will vary accordingly as well.

Only occurs if the freight animation file below is configured for the tender.

A typical INCLUDE file for a tender will look like the following:

Wagon (
ORTSFreightAnims
  (
  	WagonEmptyWeight(22.4t-uk)
  	EmptyMaxBrakeForce ( 29.892kN )
  	EmptyMaxHandbrakeForce ( 9.964kN )
  	EmptyORTSDavis_A ( 580.71 )
  	EmptyORTSDavis_B ( 5.0148 )
  	EmptyORTSDavis_C ( 0.694782 )
  	EmptyCentreOfGravity_Y ( 1.41 )
  	
	FreightAnimContinuous
 	(
  	FreightWeightWhenFull(40.0t-uk)
  	FullMaxBrakeForce ( 89.676kN )
  	FullMaxHandbrakeForce ( 9.964kN )
  	FullORTSDavis_A ( 748.61 )
  	FullORTSDavis_B ( 18.0157 )
  	FullORTSDavis_C ( 0.838530 )
  	FullCentreOfGravity_Y ( 1.8 ) 
 	)	
)


Notes:
i) Intake points should be defined within the root WAG file
ii) Intake points, freight animations should not be defined within the INCLUDE file
iii) Empty weight of tender will be the full mass minus coal and water weight
iv) FreightWeightWhenFull will be the sum of the coal and water weight.
v) Full physics values will be those values for the combined weight of the tender, water and coal.

#6 User is offline   steamer_ctn 

  • Open Rails Developer
  • Group: Status: Elite Member
  • Posts: 1,889
  • Joined: 24-June 11
  • Gender:Male
  • Country:

Posted 15 February 2017 - 09:11 PM

#3795 now incorporates variation of the locomotive mass as fuel (coal, water or diesel) is used on the locomotive, as well as load physics variations. In the case of the locomotive, the drive wheel weight also varies as fuel is used.

As per previous changes a freight animation INCLUDE file must be defined.

Notes:
i) Empty weight of locomotive will be the full mass minus ideal fire mass (coal normally on the fire) and boiler mass (water in boiler). NB: On tank locomotive the weight of water and coal carried as fuel on the locomotive needs to be subtracted.
ii) FreightWeightWhenFull will be the sum of the respective coal and water weights.
iii) Full physics values will be those values for the combined weight of the locomotive, water and coal.

#7 User is offline   Duke 

  • Apprentice
  • Group: Status: First Class
  • Posts: 16
  • Joined: 14-September 16
  • Gender:Male
  • Simulator:OR
  • Country:

Posted 27 February 2017 - 02:50 PM

My test with diesel engine with follow settings:

ORTSFreightAnims
  (
        WagonEmptyWeight( 192.8t )
        EmptyMaxBrakeForce ( 288kN )
        EmptyORTSDavis_A ( 472.0649 )
        EmptyORTSDavis_B ( 6.878421 )
        EmptyORTSDavis_C ( 0.411526 )
        EmptyCentreOfGravity_Y ( 2.2 )

        FreightAnimContinuous
        (
        FreightWeightWhenFull( 208.7t )
        FullMaxBrakeForce ( 288kN )
        FullORTSDavis_A ( 472.0649 )
        FullORTSDavis_B ( 6.878421 )
        FullORTSDavis_C ( 0.411526 )
        FullCentreOfGravity_Y ( 2.2 )
        )
)


In HUD shows mass and fuel correct in different fuel conditions, but the engine does not make move ahead. Axle drive force is ok but no motive (see picture). Without the ORTSFreightAnims is all fine, see the helper engine in picture.

What have I overlooked?

Attached thumbnail(s)

  • Attached Image: freigth.jpg


#8 User is offline   steamer_ctn 

  • Open Rails Developer
  • Group: Status: Elite Member
  • Posts: 1,889
  • Joined: 24-June 11
  • Gender:Male
  • Country:

Posted 07 March 2017 - 07:41 PM

Load animation and variation of physics with load is now "operational" (with the exception of sand refueling, which I hope to look at in the foreseeable future).

Included in this functionality is the ability:
i) for loads to be animated, eg open coal wagon
ii) for box car and tanker cars (eg fuel and milk) to be loaded and unloaded.
iii) stock physics to vary as load varies
iv) Locomotives and tenders to vary their load as fuel consumables are used.
v) addition of extra freight and fuel loading/unloading points

Information has been included in the manual, or a demonstration and some guidance of how to set it up is also shown on this page.

Thanks

Page 1 of 1
  • 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