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

Wagon ( RN10004

    Type ( Engine )
    WagonShape ( RN10004.s )
    FreightAnim ( int280.s 1 1 )
	
    comment(--- Características generales ---)
	
    Mass ( 80t )
    Size  ( 3.079m 5.45m 17.69 )
    CentreOfGravity ( 0.0m 0.0m 0.0m )
    InertiaTensor ( Box ( 3.079m 5.45m 17.2 ) )

    comment(---Rodadura---)
	
    WheelRadius ( 0.5m )
    NumWheels ( 4 )
    Adheasion ( 0.2 0.4 2 0 )

    Friction (
		1025.9N/m/s    -0.10    1.3mph    10.375N/m/s    1.865
		5.1N/rad/s		1		-1rad/s		0		1
	)
	
    comment(---Descarrilamiento---)	
	
    DerailRailHeight ( 10cm )
	DerailRailForce ( 2.5*80t )
	DerailBufferForce ( 800kN )

    comment(---Enganches---)	
	
    Coupling (
        Type ( Automatic )
        Spring (
            Stiffness ( 1e6N/m 5e6N/m )
            Damping ( 1e6N/m/s 1e6N/m/s )
            Break ( 5.1e7N 5.1e7N )
            r0 ( 10cm 20cm )
        )
        CouplingHasRigidConnection ( 0 )
        Velocity ( 0.1m/s )
    )
    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 )
    )

    comment(---Frenado---)
	
    BrakeEquipmentType ( "handbrake,Distributor,auxilary_reservoir,emergency_brake_reservoir" )

	BrakeSystemType( "Air_single_pipe" )
    MaxBrakeForce ( 76kN )
	MaxReleaseRate ( 5 )
    MaxApplicationRate ( 12 )
    MaxAuxilaryChargingRate ( 25 )

    BrakeDistributorTrainPipeAuxResPressureDifferenceForApplication ( 1 )
    BrakeDistributorEmergencyApplicationPressure ( 51 )
    BrakeDistributorEmergencyApplicationRate ( 3 )

    BrakeCylinderPressureForMaxBrakeBrakeForce ( 51 )

    BrakeDistributorFullServicePressure ( 0 )
    BrakeDistributorMaxAuxilaryResPressure ( 73 )
    BrakeDistributorEmergencyResPressure ( 145 )
    BrakeDistributorReleaseRate ( 2 )
    BrakeDistributorApplicationRate ( 3 )
    BrakeDistributorTrainPipeControlRatio ( 2 )
    BrakeDistributorNormalFullReleasePressure ( 73 )
	


    comment(---Luces---)
    Lights	( 18

		Light	(
			comment( Sphere of light )
			Type		( 1 )
			Conditions	(
				Headlight ( 2 )
				Unit ( 2 )
				)
			Cycle	( 0 )
			FadeIn	( 0.5 )
			FadeOut	( 0.5 )
			States	(	1
				State	(
					Duration ( 0.0 )
					LightColour ( d8ffdf90 )
					Position ( 0.0 3.784 9.5)
					Transition ( 0 )
					Radius ( 50.0 )
					Angle ( 5.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 ( d8ffdf90 )
					Position ( 0.0 3.784 9.5)
					Transition ( 0 )
					Radius ( 150.0 )
					Angle ( 10.0 )
					)
				)
			)
		Light	(
			comment( FococentraldelBright )
			Type		( 0 )
			Conditions	(
				Headlight ( 2 )
				Unit ( 2 )
				)
			FadeIn	( 0.5 )
			FadeOut	( 0.5 )
			Cycle	( 0 )
			States	(	1
				State	(
					Duration ( 0.0 )
					LightColour ( d8ffdf90 )
					Position ( 0.0 3.65 8.07 )
					Azimuth ( 0.0 0.0 0.0 )
					Transition ( 0 )
					Radius ( 0.35 )
					)
				)
			)		
		Light	(
			comment( FococentraldelBright )
			Type		( 0 )
			Conditions	(
				Headlight ( 3 )
				Unit ( 2 )
				)
			FadeIn	( 0.5 )
			FadeOut	( 0.5 )
			Cycle	( 0 )
			States	(	1
				State	(
					Duration ( 0.0 )
					LightColour ( d8ffdf90 )
					Position ( 0.0 3.65 8.07 )
					Azimuth ( 0.0 0.0 0.0 )
					Transition ( 0 )
					Radius ( 0.7 )
					)
				)
			)		
		Light	(
			comment( DelanteroderechaDim )
			Type		( 0 )
			Conditions	(
				Service ( 2 )
				Unit ( 2 )
				)
			FadeIn	( 0.5 )
			FadeOut	( 0.5 )
			Cycle	( 0 )
			States	(	1
				State	(
					Duration ( 0.0 )
					LightColour ( d8ffdf90 )
					Position ( 0.90 1.78 8.32 )
					Azimuth ( 0.0 0.0 0.0 )
					Transition ( 0 )
					Radius ( 0.4 )
					)
				)
			)		
		Light	(
			comment( DelanteroizquierdaDim )
			Type		( 0 )
			Conditions	(
				Service ( 2 )
				Unit ( 2 )
				)
			FadeIn	( 0.5 )
			FadeOut	( 0.5 )
			Cycle	( 0 )
			States	(	1
				State	(
					Duration ( 0.0 )
					LightColour ( d8ffdf90 )
					Position ( -0.90 1.78 8.32 )
					Azimuth ( 0.0 0.0 0.0 )
					Transition ( 0 )
					Radius ( 0.4 )
					)
				)
			)		
		Light	(
			comment( RojaDimDer )
			Type		( 0 )
			Conditions	(
				Service ( 2 )
				Unit ( 3 )
				)
			FadeIn	( 0.5 )
			FadeOut	( 0.5 )
			Cycle	( 0 )
			States	(	1
				State	(
					Duration ( 0.0 )
					LightColour ( eeff0000 )
					Position ( -0.96 3.5 -8.07 )
					Azimuth ( -180 -180 -180 )
					Transition ( 0 )
					Radius ( 0.3 )
					)
				)
			)		
	 	Light	(
			comment( RojaDimIzq )
			Type		( 0 )
			Conditions	(
				Service ( 2 )
				Unit ( 3 )
				)
			FadeIn	( 0.5 )
			FadeOut	( 0.5 )
			Cycle	( 0 )
			States	(	1
				State	(
					Duration ( 0.0 )
					LightColour ( eeff0000 )
					Position ( 0.96 3.5 -8.07 )
					Azimuth ( -180 -180 -180 )
					Transition ( 0 )
					Radius ( 0.3 )
					)
				)
			)		

comment(     luces reversibles     )

		Light	(
			comment( FococentraldelBright )
			Type		( 0 )
			Conditions	(
				Headlight ( 2 )
				Unit ( 5 )
				)
			FadeIn	( 0.5 )
			FadeOut	( 0.5 )
			Cycle	( 0 )
			States	(	1
				State	(
					Duration ( 0.0 )
					LightColour ( d8ffdf90 )
					Position ( 0.0 3.65 -8.07 )
					Azimuth ( -180 -180 -180 )
					Transition ( 0 )
					Radius ( 0.4 )
					)
				)
			)		
		Light	(
			comment( FococentraldelBright )
			Type		( 0 )
			Conditions	(
				Headlight ( 3 )
				Unit ( 5 )
				)
			FadeIn	( 0.5 )
			FadeOut	( 0.5 )
			Cycle	( 0 )
			States	(	1
				State	(
					Duration ( 0.0 )
					LightColour ( d8ffdf90 )
					Position ( 0.0 3.65 -8.07 )
					Azimuth ( -180 -180 -180 )
					Transition ( 0 )
					Radius ( 0.7 )
					)
				)
			)		
		Light	(
			comment( DelanteroderechaDim )
			Type		( 0 )
			Conditions	(
				Service ( 2 )
				Unit ( 5 )
				)
			FadeIn	( 0.5 )
			FadeOut	( 0.5 )
			Cycle	( 0 )
			States	(	1
				State	(
					Duration ( 0.0 )
					LightColour ( d8ffdf90 )
					Position ( 0.90 1.78 -8.32 )
					Azimuth ( -180 -180 -180 )
					Transition ( 0 )
					Radius ( 0.4 )
					)
				)
			)		
		Light	(
			comment( DelanteroizquierdaDim )
			Type		( 0 )
			Conditions	(
				Service ( 2 )
				Unit ( 5 )
				)
			FadeIn	( 0.5 )
			FadeOut	( 0.5 )
			Cycle	( 0 )
			States	(	1
				State	(
					Duration ( 0.0 )
					LightColour ( d8ffdf90 )
					Position ( -0.90 1.78 -8.32 )
					Azimuth ( -180 -180 -180 )
					Transition ( 0 )
					Radius ( 0.4 )
					)
				)
			)		
		Light	(
			comment( DelanteroderechaSupDim )
			Type		( 0 )
			Conditions	(
				Service ( 2 )
				Unit ( 4 )
				)
			FadeIn	( 0.5 )
			FadeOut	( 0.5 )
			Cycle	( 0 )
			States	(	1
				State	(
					Duration ( 0.0 )
					LightColour ( ffff0000 )
					Position ( 0.96 3.5 8.07 )
					Azimuth ( 0.0 0.0 0.0 )
					Transition ( 0 )
					Radius ( 0.3 )
					)
				)
			)		
		Light	(
			comment( DelanteroderechaSupBright )
			Type		( 0 )
			Conditions	(
				Service ( 2 )
				Unit ( 4 )
				)
			FadeIn	( 0.5 )
			FadeOut	( 0.5 )
			Cycle	( 0 )
			States	(	1
				State	(
					Duration ( 0.0 )
					LightColour ( ffff0000 )
					Position ( -0.96 3.5 8.07 )
					Azimuth ( 0.0 0.0 0.0 )
					Transition ( 0 )
					Radius ( 0.3 )
					)
				)
			)		

comment( =====  Luces IA ===== )

		Light	(
			comment( FococentraldelBright )
			Type		( 0 )
			Conditions	(
				Control ( 1 )
				Unit ( 2 )
				Service ( 2 )
				TimeOfDay ( 0 )
					)
			FadeIn	( 0.5 )
			FadeOut	( 0.5 )
			Cycle	( 0 )
			States	(	1
				State	(
					Duration ( 0.0 )
					LightColour ( d8ffdf90 )
					Position ( 0.0 3.65 8.07 )
					Azimuth ( 0.0 0.0 0.0 )
					Transition ( 0 )
					Radius ( 0.7 )
					)
				)
			)		
		Light	(
			comment( RojaBrightDcha )
			Type		( 0 )
			Conditions	(
				Control ( 1 )
				Unit ( 3 )
				Service ( 2 )
				TimeOfDay ( 0 )
					)
			FadeIn	( 0.5 )
			FadeOut	( 0.5 )
			Cycle	( 0 )
			States	(	1
				State	(
					Duration ( 0.0 )
					LightColour ( ffff0000 )
					Position ( -0.96 3.5 8.07 )
					Azimuth ( 0 0 0 )
					Transition ( 0 )
					Radius ( 0.3 )
					)
				)
			)		
 		Light	(
			comment( RojaBrightIzq )
			Type		( 0 )
			Conditions	(
				Control ( 1 )
				Unit ( 3 )
				Service ( 2 )
				TimeOfDay ( 0 )
					)
			FadeIn	( 0.5 )
			FadeOut	( 0.5 )
			Cycle	( 0 )
			States	(	1
				State	(
					Duration ( 0.0 )
					LightColour ( ffff0000 )
					Position ( 0.96 3.5 8.07 )
					Azimuth ( 0 0 0 )
					Transition ( 0 )
					Radius ( 0.3 )
					)
				)
			)	
				
		Light	(
			comment( Pantograph flash )
			Type		( 0 )
			Conditions	(
				Headlight ( 0 )
				Unit ( 0 )
				)
			FadeIn	( 0 )
			FadeOut	( 0 )
			Cycle	( 0 )
			States	(	8     
				State	(
					Duration ( 4.0 )
					LightColour ( 11000000 )
					Position ( 0.0 5.5 -4.4 )
					Azimuth ( 0.0 -180.0 180.0 )
					Transition ( 0 )
					Radius ( 0.90 )
					Elevation ( 0 -90 90 )
					)
				State	(
					Duration ( 1.0 )
					LightColour ( ffaaaaff )
					Position ( 0.0 5.5 -4.4 )
					Azimuth ( 0.0 -180.0 180.0 )
					Transition ( 0 )
					Radius ( 1.3 )
					Elevation ( 0 -90 90 )
					)
				State	(
					Duration ( 15.0 )
					LightColour ( 11000000 )
					Position ( 0.0 5.5 -4.4 )
					Azimuth ( 0.0 -180.0 180.0 )
					Transition ( 0 )
					Radius ( 0.90 )
					Elevation ( 0 -90 90 )
					)
				State	(
					Duration ( 1.0 )
					LightColour ( ffaaaaff )
					Position ( 0.0 5.5 -4.4 )
					Azimuth ( 0.0 -180.0 180.0 )
					Transition ( 0 )
					Radius ( 0.90 )
					Elevation ( 0 -90 90 )
					)
				State	(
					Duration ( 7.0 )
					LightColour ( 11000000 )
					Position ( 0.0 5.5 -4.4 )
					Azimuth ( 0.0 -180.0 180.0 )
					Transition ( 0 )
					Radius ( 0.90 )
					Elevation ( 0 -90 90 )
					)
				State	(
					Duration ( 1.0 )
					LightColour ( ffaaaaff )
					Position ( 0.0 5.5 -4.4 )
					Azimuth ( 0.0 -180.0 180.0 )
					Transition ( 0 )
					Radius ( 1.1 )
					Elevation ( 0 -90 90 )
					)
				State	(
					Duration ( 0.05 )
					LightColour ( 11000000 )
					Position ( 0.0 5.5 -4.4 )
					Azimuth ( 0.0 -180.0 180.0 )
					Transition ( 0 )
					Radius ( 0.90 )
					Elevation ( 0 -90 90 )
					)
				State	(
					Duration ( 0.05 )
					LightColour ( ffaaaaff )
					Position ( 0.0 5.5 -4.4 )
					Azimuth ( 0.0 -180.0 180.0 )
					Transition ( 0 )
					Radius ( 0.90 )
					Elevation ( 0 -90 90 )
					)
				)
			)					
		)
    Sound ( "R276eng.sms" )
)

Engine ( RN10004

    comment(---Características generales ---)
				
    
    Wagon ( RN10004 )
    Type ( Electric )
    Comment ( Viajeros: 120kmh - Mercancías: 70kmh )
    MaxVelocity ( 120kmh )
    WheelRadius ( 0.5m )
    MaxPower ( 2280kW )
    MaxForce ( 222kN )     Comment (PV 22.638kgs)
    MaxContinuousForce ( 122.58kN )     Comment (GV 12.500kgs)

    MaxCurrent ( 2000A )
    NumWheels ( 4 )
    Sanding ( 1e9mph )

    AntiSlip (1)
    MaxSandingTime ( 1800s )

	Comment (---Frenos sección motriz---)
	
    AirBrakesAirCompressorPowerRating ( 0.14 )
    AirBrakesAirCompressorWattage ( 19000 )
    AirBrakesAirUsedPerPoundsOfBrakePipePressure ( 0.2 )
    AirBrakesCompressorRestartPressure ( 116 )
    AirBrakesHasLowPressureTest ( 1 )
    AirBrakesIsCompressorElectricOrMechanical ( 1 )
    AirBrakesMainMaxAirPressure ( 145 )
    AirBrakesMainMinResAirPressure ( 0 )
    AirBrakesMainResVolume ( 56 )
    AirBrakeMaxMainResPipePressure ( 73 )

    EngineBrakesControllerMinPressureReduction ( 14.5 )
    EngineBrakesControllerMaxApplicationRate ( 20 )
    EngineBrakesControllerMaxReleaseRate ( 15 )
    EngineBrakesControllerMinSystemPressure ( 0 )
    EngineBrakesControllerMaxSystemPressure ( 73 )
    EngineBrakesControllerMaxPressureDropInNormalApplication ( 73 )
    EngineBrakesControllerFullServicePressureDrop ( 73 )
    EngineBrakesControllerDirectControlExponent ( 1 )
    EngineBrakesControllerHasProportionalBrake ( 0 )

    TrainBrakesControllerMinPressureReduction ( 5 )
    TrainBrakesControllerMaxApplicationRate ( 7 )
    TrainBrakesControllerMaxReleaseRate ( 2 )
    TrainBrakesControllerMaxQuickReleaseRate ( 5 )
    TrainBrakesControllerEmergencyApplicationRate ( 8 )
    TrainBrakesControllerMinSystemPressure ( 0 )
    TrainBrakesControllerMaxSystemPressure ( 73 )
    TrainBrakesControllerMaxPressureDropInNormalApplication ( 22 )
    TrainBrakesControllerEmergencyBrakeTimePenalty ( 0 )
    TrainBrakesControllerFullServicePressureDrop ( 22 )
    TrainBrakesControllerDirectControlExponent ( 1.2 )

    DynamicBrakesMinUsableSpeed ( 0 )
    DynamicBrakesFadingSpeed ( 15 )
    DynamicBrakesMaximumEffectiveSpeed ( 50 )
    DynamicBrakesMaximumSpeedForFadeOut ( 190 )

   
    DynamicBrakesMaximumForce ( 76kN )
    DynamicBrakesResistorCurrentLimit ( 810 )
    DynamicBrakesCutInSpeed ( 0 )

  
    DynamicBrakesMaxAirBrakePressure ( 70 )

 
    DynamicBrakesDelayTimeBeforeEngaging ( 0 )
    DynamicBrakesEffectAtMaximumFadeOut ( 0 )
    DynamicBrakesHigherSpeedCurveExponent ( 1 )
    DynamicBrakesLowerSpeedCurveExponent ( 1 )
    DynamicBrakesNumberOfControllerNotches ( 9 )
    DynamicBrakeHasAutoBailOff ( 0 )

    BrakesEngineBrakeType( "Air_single_pipe"  )
    BrakesTrainBrakeType( "Air_single_pipe" )
    BrakesEngineControllers( "Train, Dynamic, Blended" )
    
    DoesBrakeCutPower( 1 )
    DoesHornTriggerBell( 0 )
    BrakeCutsPowerAtBrakeCylinderPressure( 15 )

    CabView ( RN10001.cvf )
	HeadOut ( 1.6 3 7.0 )

    Sound ( "R276cab.sms" )

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

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

    VigilanceMonitor(
        MonitoringDeviceMonitorTimeLimit ( 60 )
        MonitoringDeviceAlarmTimeLimit ( 55 )
        MonitoringDevicePenaltyTimeLimit ( 0 )
        MonitoringDeviceCriticalLevel ( 0 )
        MonitoringDeviceResetLevel ( 0 )
        MonitoringDeviceAppliesFullBrake ( 1 )
        MonitoringDeviceAppliesEmergencyBrake ( 0 )
        MonitoringDeviceAppliesCutsPower ( 0 )
        MonitoringDeviceAppliesShutsDownEngine ( 1 )
        MonitoringDeviceResetOnZeroSpeed ( 1 )
    )

    OverspeedMonitor(
        MonitoringDeviceMonitorTimeLimit ( 0 )
        MonitoringDeviceAlarmTimeLimit ( 0 )
        MonitoringDevicePenaltyTimeLimit ( 0 )
        MonitoringDeviceCriticalLevel ( 150 )
        MonitoringDeviceResetLevel ( 0 )
        MonitoringDeviceAppliesFullBrake ( 1 )
        MonitoringDeviceAppliesEmergencyBrake ( 1 )
        MonitoringDeviceAppliesCutsPower ( 1 )
        MonitoringDeviceAppliesShutsDownEngine ( 0 )
        MonitoringDeviceTriggerOnTrackOverspeed ( 1 )
        MonitoringDeviceTriggerOnTrackOverspeedMargin ( 10 )
        MonitoringDeviceResetOnZeroSpeed ( 1 )
        MonitoringDeviceResetOnResetButton ( 0 )
    )

    comment(---Controles---)

    EngineControllers (
            Throttle ( 0 1 0.03 0
                NumNotches ( 0 )
         	  )
	Brake_Train ( 0 1 0.0125 0.65 
                NumNotches ( 6
                    Notch ( 0    0 TrainBrakesControllerReleaseStart )
                    Notch ( 0.2  0 TrainBrakesControllerHoldLappedStart )
                    Notch ( 0.25 1 TrainBrakesControllerGraduatedSelfLapLimitedHoldingStart )
                    Notch ( 0.85 0 TrainBrakesControllerSuppressionStart )
                    Notch ( 0.9  0 TrainBrakesControllerContinuousServiceStart )
                    Notch ( 0.95 0 TrainBrakesControllerEmergencyStart )
                )
            )
             Brake_Engine ( 0 1 0.04 0 
                NumNotches ( 1
                    Notch( 0  1 Dummy )
               	 )
       	  )
            Brake_Dynamic ( 0 1 0.04 0 
                	NumNotches ( 0
                   	)
            )
		Combined_Control( 0 1 0.1 0.5 throttle dynamic )
            DirControl ( -1 0 1 1 )
            BellToggle( 0 1 0 )
            Sanding ( 0 1 0 )
            Horn ( 0 1 0 )
            Wipers ( 0 1 0 )
            PantographToggle1 ( 0 1 0 )
            EmergencyStopResetToggle( 0 1 0 )
            EmergencyStopToggle( 0 1 0 )
            Vigilance ( 0 1 0 )
            Headlights ( 0 0.25 1 0 )
	)
    EngineVariables ( 5300 )

   Name ( "RN10004" )
    Description (
    "Serie 10000 (280) de Renfe \n"+
    "Puesta en servicio en los años 1963-1967 \n"+
    "Potencia nominal: 3084 hp \n"+
    "Velocidad máxima: 120 km/h \n"+
    "Constructor: Alshtom \n\n"+
    "Autor: Jesus Brau \n"+
    "Marzo 2020"
        )
     
)