SIMISA@@@@@@@@@@JINX0D0t______

Wagon ( FS_D145_2017
	Type ( Engine )
	WagonShape ( FS_D145_2017.s )
	Size ( 2.631m 3.795m 15.856m )
	Mass ( 72t )
	WheelRadius ( 0.52m )
	InertiaTensor ( Box (2.6m 3.7m 15.856m) )
	freightanim( 145_2.s 1 1 )
	Coupling (
		Type ( Chain )
		Spring (
			Stiffness ( 1e7N/m 1e6N/m )
			Damping ( 2e6N/m 2e6N/m )
			r0 ( 20cm 30cm )
		)
		CouplingHasRigidConnection (1)
		
	)
	Buffers (
		Spring (
			Stiffness ( 1e6N/m 5e6N/m )
			Damping ( 1e6N/m/s 1e6N/m/s )
			r0 ( 0m 1e9 )
		)
		Centre ( 0.5 )
		Radius ( 1 )
		Angle ( 0.5deg )
	)
	
	Adheasion ( 0.27 0.54 4 0 )
	DerailRailHeight ( 4cm )
	DerailRailForce ( 108kn )
	DerailBufferForce ( 360kN )
	NumWheels (	8 )
	Friction (
		1465N/m/s		0		1mph		13.5N/m/s		2
		5.1N/rad/s		1		-1rad/s		0		1
	)
	comment (Antislip ()) 

	Inside (
		 PassengerCabinFile ( FS_D145_2017.s )
		 PassengerCabinHeadPos ( -1.26 2.63 6.75 )
		 RotationLimit ( 90 220 0 )
		 StartDirection ( 0 0 0 )
	         Sound ( "FS_D145_2017Eng.sms" )
	)

	BrakeEquipmentType( "Handbrake, Triple_valve, Auxilary_reservoir, Emergency_brake_reservoir" )
	BrakeSystemType( "Air_single_pipe" )
	MaxBrakeForce ( 72kN )
	
	EmergencyBrakeResMaxPressure( 110 )
	TripleValveRatio( 2.5 )
	MaxReleaseRate( 30 )
	MaxApplicationRate( 25 )
	MaxAuxilaryChargingRate( 20 )
	EmergencyResCapacity( 10 )
	EmergencyResChargingRate( 25 )
	BrakeCylinderPressureForMaxBrakeBrakeForce( 70 )

	IntakePoint ( -0.37 1.6 FuelDiesel )
	IntakePoint ( 0.37 1.6 FuelDiesel )

	Lights	(	17
		Light	(
			comment( Sphere of light dim )
			Type		( 1 )
			Conditions	(
				Headlight ( 2 )
				Unit ( 0 )
				)
			Cycle	( 0 )
			FadeIn	( 0.5 )
			FadeOut	( 0.5 )
			States	(	1
				State	(
					Duration ( 0.0 )
					LightColour ( ffffffff )
					Position ( 0 1.9 13.7 )
					Transition ( 0 )
					Radius ( 400.0 )
					Angle ( 15.0 )
					)
				)
			)
		Light	(
			comment( Sphere of light )
			Type		( 1 )
			Conditions	(
				Headlight ( 3 )
				Unit ( 2 )
				)
			Cycle	( 0 )
			FadeIn	( 0.5 )
			FadeOut	( 0.5 )
			States	(	1
				State	(
					Duration ( 0.0 )
					LightColour ( ffffffff )
					Position ( 0 1.9 13.7 )
					Transition ( 0 )
					Radius ( 400.0 )
					Angle ( 15.0 )
					)
				)
			)
		Light	(
			comment( Central light )
			Type		( 0 )
			Conditions	(
				Headlight ( 3 )
				Unit ( 2 )
				)
			FadeIn	( 0.5 )
			FadeOut	( 0.5 )
			Cycle	( 0 )
			States	(	1
				State	(
					Duration ( 0.0 )
					LightColour ( ffffffff )
					Position ( 0.00 2.65 7.25 )
					Azimuth ( 0.0 0.0 0.0 )
					Transition ( 0 )
					Radius ( 0.4 )
					)
				)
			)
		Light	(
			comment( Left headlight running )
			Type		( 0 )
			Conditions	(
				Headlight ( 3 )
				Unit ( 2 )
				)
			FadeIn	( 0.5 )
			FadeOut	( 0.5 )
			Cycle	( 0 )
			States	(	1
				State	(
					Duration ( 0.0 )
					LightColour ( ffffffff )
					Position ( 0.864 1.652 7.63 )
					Azimuth ( 0.0 0.0 0.0 )
					Transition ( 0 )
					Radius ( 0.4 )
					)
				)
			)
		Light	(
			comment( Left headlight shunting )
			Type		( 0 )
			Conditions	(
				Headlight ( 2 )
				Unit ( 0 )
				)
			FadeIn	( 0.5 )
			FadeOut	( 0.5 )
			Cycle	( 0 )
			States	(	1
				State	(
					Duration ( 0.0 )
					LightColour ( ffffffff )
					Position ( 0.864 1.652 7.63 )
					Azimuth ( 0.0 0.0 0.0 )
					Transition ( 0 )
					Radius ( 0.4 )
					)
				)
			)
		Light	(
			comment( Green headlight shunting )
			Type		( 0 )
			Conditions	(
				Headlight ( 0 )
				Weather ( 3 )
				Unit ( 0 )
				)
			FadeIn	( 0.5 )
			FadeOut	( 0.5 )
			Cycle	( 0 )
			States	(	1
				State	(
					Duration ( 0.0 )
					LightColour ( ff00ff00 )
					Position ( 0.748 1.425 7.55 )
					Azimuth ( 0.0 0.0 0.0 )
					Transition ( 0 )
					Radius ( 0.15 )
					)
				)
			)
		Light	(
			comment( Left headlight traffic )
			Type		( 0 )
			Conditions	(
				Headlight ( 0 )
				Unit ( 0 )
				Control ( 1 )
				)
			FadeIn	( 0.5 )
			FadeOut	( 0.5 )
			Cycle	( 0 )
			States	(	1
				State	(
					Duration ( 0.0 )
					LightColour ( ffffffff )
					Position ( 0.864 1.652 7.63 )
					Azimuth ( 0.0 0.0 0.0 )
					Transition ( 0 )
					Radius ( 1.0 )
					)
				)
			)
		Light	(
			comment( Right headlight running )
			Type		( 0 )
			Conditions	(
				Headlight ( 3 )
				Unit ( 2 )
				)
			FadeIn	( 0.5 )
			FadeOut	( 0.5 )
			Cycle	( 0 )
			States	(	1
				State	(
					Duration ( 0.0 )
					LightColour ( ffffffff )
					Position ( -0.864 1.652 7.63 )
					Azimuth ( 0.0 0.0 0.0 )
					Transition ( 0 )
					Radius ( 0.4 )
					)
				)
			)
		Light	(
			comment( Right headlight shunting )
			Type		( 0 )
			Conditions	(
				Headlight ( 2 )
				Unit ( 0 )
				)
			FadeIn	( 0.5 )
			FadeOut	( 0.5 )
			Cycle	( 0 )
			States	(	1
				State	(
					Duration ( 0.0 )
					LightColour ( ffffffff )
					Position ( -0.864 1.652 7.63 )
					Azimuth ( 0.0 0.0 0.0 )
					Transition ( 0 )
					Radius ( 0.4 )
					)
				)
			)
		Light	(
			comment( Right headlight traffic )
			Type		( 0 )
			Conditions	(
				Headlight ( 0 )
				Unit ( 0 )
				Control ( 1 )
				)
			FadeIn	( 0.5 )
			FadeOut	( 0.5 )
			Cycle	( 0 )
			States	(	1
				State	(
					Duration ( 0.0 )
					LightColour ( ffffffff )
					Position ( -0.864 1.652 7.63 )
					Azimuth ( 0.0 0.0 0.0 )
					Transition ( 0 )
					Radius ( 1.0 )
					)
				)
			)
		Light	(
			comment( Right endlight running )
			Type		( 0 )
			Conditions	(
				Headlight ( 3 )
				Unit ( 3 )
				)
			FadeIn	( 0.5 )
			FadeOut	( 0.5 )
			Cycle	( 0 )
			States	(	1
				State	(
					Duration ( 0.0 )
					LightColour ( ffff0000 )
					Position ( 0.938 1.425 -7.55 )
					Azimuth ( -180 -180 -180 )
					Transition ( 0 )
					Radius ( 0.6 )
					)
				)
			)
		Light	(
			comment( Right endlight shunting )
			Type		( 0 )
			Conditions	(
				Headlight ( 2 )
				Unit ( 0 )
				)
			FadeIn	( 0.5 )
			FadeOut	( 0.5 )
			Cycle	( 0 )
			States	(	1
				State	(
					Duration ( 0.0 )
					LightColour ( ffffffff )
					Position ( 0.864 1.652 -7.63 )
					Azimuth ( -180 -180 -180 )
					Transition ( 0 )
					Radius ( 0.4 )
					)
				)
			)
		Light	(
			comment( Right endlight traffic )
			Type		( 0 )
			Conditions	(
				Headlight ( 0 )
				Unit ( 0 )
				Control ( 1 )
				)
			FadeIn	( 0.5 )
			FadeOut	( 0.5 )
			Cycle	( 0 )
			States	(	1
				State	(
					Duration ( 0.0 )
					LightColour ( ffffffff )
					Position ( 0.938 1.425 -7.55 )
					Azimuth ( 0.0 0.0 0.0 )
					Transition ( 0 )
					Radius ( 1.0 )
					)
				)
			)
		Light	(
			comment( Left endlight shunting )
			Type		( 0 )
			Conditions	(
				Headlight ( 2 )
				Unit ( 0 )
				)
			FadeIn	( 0.5 )
			FadeOut	( 0.5 )
			Cycle	( 0 )
			States	(	1
				State	(
					Duration ( 0.0 )
					LightColour ( ffffffff )
					Position ( -0.864 1.652 -7.63 )
					Azimuth ( -180 -180 -180 )
					Transition ( 0 )
					Radius ( 0.4 )
					)
				)
			)
		Light	(
			comment( Left endlight running )
			Type		( 0 )
			Conditions	(
				Headlight ( 3 )
				Unit ( 3 )
				)
			FadeIn	( 0.5 )
			FadeOut	( 0.5 )
			Cycle	( 0 )
			States	(	1
				State	(
					Duration ( 0.0 )
					LightColour ( ffff0000 )
					Position ( -0.938 1.425 -7.55 )
					Azimuth ( -180 -180 -180 )
					Transition ( 0 )
					Radius ( 0.4 )
					)
				)
			)
		Light	(
			comment( Green endlight shunting )
			Type		( 0 )
			Conditions	(
				Headlight ( 0 )
				Weather ( 3 )
				Unit ( 0 )
				)
			FadeIn	( 0.5 )
			FadeOut	( 0.5 )
			Cycle	( 0 )
			States	(	1
				State	(
					Duration ( 0.0 )
					LightColour ( ff00ff00 )
					Position ( -0.748 1.425 -7.55 )
					Azimuth ( -180 -180 -180 )
					Transition ( 0 )
					Radius ( 0.15 )
					)
				)
			)

		Light	(
			comment( Left endlight traffic )
			Type		( 0 )
			Conditions	(
				Headlight ( 0 )
				Unit ( 0 )
				Control ( 1 )
				)
			FadeIn	( 0.5 )
			FadeOut	( 0.5 )
			Cycle	( 0 )
			States	(	1
				State	(
					Duration ( 0.0 )
					LightColour ( ffffffff )
					Position ( -0.938 1.425 -7.55 )
					Azimuth ( 0.0 0.0 0.0 )
					Transition ( 0 )
					Radius ( 1.0 )
					)
				)
			)
		)
    	Sound (	"FS_D145_2017Eng.sms" )
	)

Engine ( FS_D145_2017
	Effects
		(
		DieselSpecialEffects
			(
				comment
				(
					the format of these little blocks is as follow:

					offset.x offset.y offset.z
					normal.x normal.y normal.z
					width in metres

					defining the offset from the shape pivot point
					where steam / smoke should appear, the direction
					it should go and the width of the nozzle
				)

				Exhaust1
				(
					0.0 4.203 -1.312
					0 1 0
					0.08
				)
			)
        	)
        
	Wagon ( FS_D145_2017 )
	Type ( Diesel )
	MaxPower ( 840kW )
	MaxForce ( 205kN # slittamento dopo i 190.5kN )	
	MaxContinuousForce ( 205kN )
	MaxVelocity ( 100Km/h )
	MaxCurrent ( 280A ) 
	WheelRadius ( 0.520m )
	comment( sanding system is switched off when faster than given velocity )
	Sanding ( 1e9mph )

	NumWheels ( 8 )
	MaxTemperature ( 120 )
	MaxOilPressure ( 90 )

 	CabView ( FS_D145_2017.cvf )
	HeadOut (  -1.8 3.47 0.41 )
	MaxDieselLevel ( 380gal )
	DieselUsedPerHourAtMaxPower ( 60gal )
	DieselUsedPerHourAtIdle ( 10gal )

	AirBrakesAirCompressorPowerRating( 3 )
	AirBrakesMainMinResAirPressure( 0 )
	AirBrakesMainMaxAirPressure( 130 )
	AirBrakesMainResVolume( 8 )
	AirBrakesAirCompressorWattage( 19000 )
	AirBrakesCompressorRestartPressure( 100 )
	AirBrakesAirUsedPerPoundsOfBrakePipePressure( 0.5 )
	AirBrakesHasLowPressureTest( 1 )
	AirBrakesIsCompressorElectricOrMechanical( 1 )

	EngineBrakesControllerMinPressureReduction( 6 )
	TrainBrakesControllerMinPressureReduction( 6 )
	EngineBrakesControllerHasProportionalBrake( 1 )
	EngineBrakesProportionalBrakeLag( 0.9 )
	EngineBrakesControllerMaxApplicationRate( 20 )
	TrainBrakesControllerMaxApplicationRate( 10 )
	EngineBrakesControllerMaxReleaseRate( 20 )
	TrainBrakesControllerMaxReleaseRate( 4 )
	EngineBrakesControllerEmergencyApplicationRate( 50 )
	TrainBrakesControllerEmergencyApplicationRate( 50 )
	EngineBrakesControllerMinSystemPressure( 0 )
	TrainBrakesControllerMinSystemPressure( 0 )
	EngineBrakesControllerMaxSystemPressure( 90 )
	TrainBrakesControllerMaxSystemPressure( 90 )
	EngineBrakesControllerEmergencyBrakeTimePenalty( 0 )
	TrainBrakesControllerEmergencyBrakeTimePenalty( 0 )
	EngineBrakesControllerFullServicePressureDrop( 26 )
	TrainBrakesControllerFullServicePressureDrop( 26 )

      DynamicBrakesMinUsableSpeed( 12.5 )
	DynamicBrakesMaximumEffectiveSpeed( 45 )
	DynamicBrakesMaximumForce( 80kN )
	DynamicBrakesResistorCurrentLimit ( 510A )
	DynamicBrakesCutInSpeed( 12.5 )
	DynamicBrakesMaxAirBrakePressure ( 110 )
	DynamicBrakesFadingSpeed( 12.5 )
	DynamicBrakesDelayTimeBeforeEngaging ( 0 )
	DynamicBrakesMaximumSpeedForFadeOut ( 90 )
	DynamicBrakesEffectAtMaximumFadeOut( 0 )
	DynamicBrakesHigherSpeedCurveExponent( 1 )
	DynamicBrakesLowerSpeedCurveExponent( 1 )
	DynamicBrakesNumberOfControllerNotches( 8 )
	DynamicBrakeHasAutoBailOff( 1 )


	
	BrakesEngineBrakeType( "Air_single_pipe"  )
	BrakesTrainBrakeType( "	Air_single_pipe" )
        BrakesEngineControllers( "Train, Independent" )
        
        EngineBrakesControllerDirectControlExponent( 1 )

	MaxDieselLevel ( 380gal )
	DieselUsedPerHourAtMaxPower ( 60gal )
	DieselUsedPerHourAtIdle ( 10gal )

	DieselSmokeEffectInitialMagnitude( 0.5 )
	DieselSmokeEffectMaxMagnitude( 3.0 )
	DieselSmokeEffectInitialSmokeRate( 0.5 )
	DieselSmokeEffectMaxSmokeRate( 6.5 )	
	
	DoesHornTriggerBell( 0 )

	EmergencyStopMonitor(
    		MonitoringDeviceMonitorTimeLimit( 0 )
    		MonitoringDeviceAlarmTimeLimit( 0 )
    		MonitoringDevicePenaltyTimeLimit( 0 )
    		MonitoringDeviceCriticalLevel( 0 )
    		MonitoringDeviceResetLevel( 0 )
    		MonitoringDeviceAppliesFullBrake( 0 )
    		MonitoringDeviceAppliesEmergencyBrake( 1 )
    		MonitoringDeviceAppliesCutsPower( 0 )
    		MonitoringDeviceAppliesShutsDownEngine( 0 )
    		)

	AWSMonitor(
		MonitoringDeviceMonitorTimeLimit( -1 )
		MonitoringDeviceAlarmTimeLimit( 5 )
		MonitoringDevicePenaltyTimeLimit( 0 )
		MonitoringDeviceCriticalLevel( 0 )
		MonitoringDeviceResetLevel( 0 )
		MonitoringDeviceAppliesFullBrake( 0 )
		MonitoringDeviceAppliesEmergencyBrake( 1 )
		MonitoringDeviceAppliesCutsPower( 0 )
		MonitoringDeviceAppliesShutsDownEngine( 0 )
		)
	
	EngineVariables( 3600 )
			
       EngineControllers (
            Throttle ( 0 1 0.025 0 
                NumNotches ( 0 )
                   
            )
            Brake_Engine ( 0 1 0.025 0 
                NumNotches ( 0 )
                )
            Brake_Train ( 0 1 0.025 0.45 
                NumNotches ( 5
                    Notch ( 0    0 TrainBrakesControllerReleaseStart )
                    Notch ( 0.3  1 TrainBrakesControllerGraduatedSelfLapLimitedStart )
                    Notch ( 0.85 0 TrainBrakesControllerSuppressionStart )
                    Notch ( 0.9  0 TrainBrakesControllerContinuousServiceStart )
                    Notch ( 0.95 0 TrainBrakesControllerEmergencyStart )
                )
            )
            Brake_Dynamic ( 0 1 0.02 0 
                NumNotches ( 0 )
                    
            )
            Combined_Control( 0 1 0.5 0.5 throttle dynamic )
            DirControl ( -1 0 1 1 )
            BellToggle( 0 0 0 )
            AWS ( 0 0 0 )
            Sanding ( 0 1 0 )
            Horn ( 0 1 0 )
            Wipers ( 0 1 0 )
            EmergencyStopResetToggle( 0 1 0 )
            EmergencyStopToggle( 0 1 0 )
            Vigilance ( 0 0 0 )
            Headlights ( 0 0.25 1 0 )
            BailOffButton( 0 1 0 )
        )
       
    	Sound (	"FS_D145_2017Cab.sms" )
    	Name ("FS D 145 2017")
    	Description (
	"Le D.145 nascono alla fine degli anni 70 con la necessità di dotare il parco FS "+
	"di nuove macchine per il servizio da manovra pesante. L' ordine del luglio 1979 fu trasmesso "+
	"sia alla FIAT (le unità prodotte sono numerate dalla 1001 alla 1038) che alla TIBB (dalla 2001 alla 2062).\n\n"+
	"Queste ultime differiscono esteticamente dalle prime per un diverso disegno dei cofani e della cabina, "+ 
	"mentre a differenza delle FIAT montano un singolo propulsore diesel da 1030 kW.\n\n"+
	"L' unità 2017 è a tutt'oggi assegnata al deposito di Milano Smistamento. "
	)
    	EngineOperatingProcedures (
    	"To move forward\n"+
	"1.	Press the W key to move the Reverser to Forward.\n"+
	"2.	Press the ; (SEMICOLON) key to release the train brakes.\n"+
	"3.	Press the [ (LEFT BRACKET) key to release the locomotive brake.\n"+
	"4.	Press the D key to move the throttle from Idle to Notch 1.\n"+
	"5.	Gradually increase power (D key), one notch at a time, until your train reaches the desired speed.\n\n"+
	"To slow the train\n"+
	"1.	Press the A key to move the throttle to a lower setting.\n"+
	"2.	Use the brakes to further reduce speed if desired.\n\n"+
	"To apply the dynamic brakes\n"+
	"1.	Press the A key to move the throttle to the Idle position.\n"+
	"2.	Wait for 10 seconds, then press the . (PERIOD) key to advance the Dynamic Brake handle from Off to the Setup position. After allowing a few seconds for braking circuit setup, press the . (PERIOD) key again to set the desired level of dynamic braking (Levels 1 - 8).\n\n"+
	"To release the dynamic brakes\n"+
	"1. Press the D key to move the throttle towards Idle.\n\n"+
	"To apply the train brakes\n"+
	"1.	Press the ' (APOSTROPHE) key to apply the train brakes.\n\n"+
	"To bail off the train brakes on the locomotive\n"+
	"1. Press the / (FORWARD SLASH) key.\n\n"+
	"To release the train brakes\n"+
	"1. Press the ; (SEMICOLON) key to release the train brakes.\n\n"+
	"To apply the locomotive brake\n"+
	"1.	Press the ] (RIGHT BRACKET) key to apply the locomotive brake.\n\n"+
	"To release the locomotive brake\n"+
	"1. Press the [ (LEFT BRACKET) key to release the locomotive brake.\n\n"+
	"To activate emergency braking\n"+
	"1.	Press the A key to reduce the throttle to Idle.\n"+
	"2.	Press the BACKSPACE key to activate emergency braking.\n\n"+
	"To back up\n"+
	"1.	Bring your train to a full stop.\n"+
	"2.	Press the S key to move the Reverser to the Reverse position.\n"+
	"3.	Release the brakes.\n"+
	"4.	Slowly advance the throttle lever (D key).\n\n"+
	"To couple to a car or locomotive\n"+
	"1. Coast into the unit at a very slow speed, about 2 mph.\n"+
	"TIP: To use the Coupling view, press the 6 key.\n"+
	"2. Press F9 to open the Train Operations window.\n"+
	"3. If the icon for the unit you coupled to is red, the handbrake is on. Double-click the car to release the handbrake.\n"+
	"4. Close the Train Operations window.\n\n"+
	"To uncouple from a car or locomotive\n"+
	"1. Press F9 to open the Train Operations window.\n"+
	"2. Double-click a unit in the part of the train you want to uncouple from the locomotive, to set the handbrake.\n"+
	"3. Double-click the coupler between the units you want to uncouple and the rest of the train.\n"+
	"4. Close the Train Operations window."
    	) 
)

