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

Wagon ( RN7662T

    Type ( Engine )
    WagonShape ( RN7662.s )
    FreightAnim ( interior.s 1 1 )
	
    comment(--- Características generales ---)
    Mass ( 120t )
    Size ( 3.10m 4.26m 19.05m )
    CentreOfGravity ( 0m 2.25m 0m )
    InertiaTensor ( Box (3.10m 4.26m 18.55m) )

    comment(---Rodadura---)
    WheelRadius ( 0.625m )
    NumWheels ( 6 )
    Adheasion ( 0.2 0.4 2 0 )

    Friction (
        1538.8N/m/s    -0.10    1.3mph    13.073N/m/s    1.815
        5.1N/rad/s       1         -1rad/s      0               1
    )
	
    comment(---Descarrilamiento---)
    DerailRailHeight ( 10cm )
    DerailRailForce ( 2.5*120t )
    DerailBufferForce ( 800kN )

    comment(---Enganche---)
    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, Air_twin_pipe, Distributor, emergency_brake_reservoir" )
    BrakeSystemType ( "Air_single_pipe" )
	MaxHandbrakeForce ( 35 )
    MaxBrakeForce ( 114kN )
    
	EmergencyBrakeResMaxPressure( 110 )
    TripleValveRatio( 2.5 )
    MaxReleaseRate( 40 )
    MaxApplicationRate( 30 )
    MaxAuxilaryChargingRate( 116 )
    EmergencyResCapacity( 25 )
    EmergencyResChargingRate( 25 )
    BrakeCylinderPressureForMaxBrakeBrakeForce( 70 )

    BrakeDistributorFullServicePressure( 40 )
	BrakeDistributorMaxAuxilaryResPressure( 60 )
	BrakeDistributorEmergencyResPressure( 74 )
	BrakeDistributorReleaseRate( 8 )
	BrakeDistributorApplicationRate( 8 )
	BrakeDistributorTrainPipeControlRatio( 1.85 )
	BrakeDistributorNormalFullReleasePressure( 74 )
	


    comment(---Luces---)
    Lights	( 16

		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.5 8.8)
					Transition ( 0 )
					Radius ( 100.0 )
					Angle ( 10.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.5 8.8)
					Transition ( 0 )
					Radius ( 250.0 )
					Angle ( 20.0 )
					)
				)
			)
		Light	(
			comment( DaltdavantBright )
			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.50 8.8 )
					Azimuth ( 0.0 0.0 0.0 )
					Transition ( 0 )
					Radius ( 0.5 )
					)
				)
			)
		Light	(
			comment( DaltdavantBright )
			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.50 8.8 )
					Azimuth ( 0.0 0.0 0.0 )
					Transition ( 0 )
					Radius ( 1.0 )
					)
				)
			)
		Light	(
			comment( DretadavantDim )
			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.85 1.725 8.88 )
					Azimuth ( 0.0 0.0 0.0 )
					Transition ( 0 )
					Radius ( 1.0 )
					)
				)
			)
		Light	(
			comment( EsquerradavantDim )
			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.85 1.725 8.88 )
					Azimuth ( 0.0 0.0 0.0 )
					Transition ( 0 )
					Radius ( 1.2 )
					)
				)
			)
		Light	(
			comment( VermelldretDim )
			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.95 3.35 -8.69 )
					Azimuth ( -180 -180 -180 )
					Transition ( 0 )
					Radius ( 0.45 )
					)
				)
			)
		Light	(
			comment( VermellesqDim )
			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.95 3.35 -8.69 )
					Azimuth ( -180 -180 -180 )
					Transition ( 0 )
					Radius ( 0.45 )
					)
				)
			)

comment(                  luces reversibles                  )

		Light	(
			comment( DaltdavantBright )
			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.50 -8.8 )
					Azimuth ( 180.0 180.0 180.0 )
					Transition ( 0 )
					Radius ( 0.5 )
					)
				)
			)
		Light	(
			comment( DaltdavantBright )
			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.50 -8.8 )
					Azimuth ( 180.0 180.0 180.0 )
					Transition ( 0 )
					Radius ( 1.0 )
					)
				)
			)
		Light	(
			comment( DretadavantDim )
			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.85 1.725 -8.88 )
					Azimuth ( 180.0 180.0 180.0 )
					Transition ( 0 )
					Radius ( 1.0 )
					)
				)
			)
		Light	(
			comment( EsquerradavantDim )
			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.85 1.725 -8.88 )
					Azimuth ( 180.0 180.0 180.0 )
					Transition ( 0 )
					Radius ( 1.0 )
					)
				)
			)
		Light	(
			comment( VermelldretDim )
			Type		( 0 )
			Conditions	(
				Service ( 2 )
				Unit ( 4 )
				)
			FadeIn	( 0.5 )
			FadeOut	( 0.5 )
			Cycle	( 0 )
			States	(	1
				State	(
					Duration ( 0.0 )
					LightColour ( eeff0000 )
					Position ( 0.95 3.35 8.69 )
					Azimuth ( 0.0 0.0 0.0 )
					Transition ( 0 )
					Radius ( 0.45 )
					)
				)
			)
		Light	(
			comment( VermellesqDim )
			Type		( 0 )
			Conditions	(
				Service ( 2 )
				Unit ( 4 )
				)
			FadeIn	( 0.5 )
			FadeOut	( 0.5 )
			Cycle	( 0 )
			States	(	1
				State	(
					Duration ( 0.0 )
					LightColour ( eeff0000 )
					Position ( -0.95 3.35 8.69 )
					Azimuth ( 0.0 0.0 0.0 )
					Transition ( 0 )
					Radius ( 0.45 )
					)
				)
			)

comment( **********     luces IA     ********** )

		Light	(
			comment( DaltdavantBright )
			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.50 8.8 )
					Azimuth ( 0.0 0.0 0.0 )
					Transition ( 0 )
					Radius ( 1.0 )
    )
    )
   )
 
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.45 -4.74 )
     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.45 -4.74 )
     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.45 -4.74 )
     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.45 -4.74 )
     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.45 -4.74 )
     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.45 -4.74 )
     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.45 -4.74 )
     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.45 -4.74 )
     Azimuth ( 0.0 -180.0 180.0 )
     Transition ( 0 )
     Radius ( 0.90 )
     Elevation ( 0 -90 90 )
					)
				)
			)
		)
    Sound ( "R276eng.sms" )
)

Engine ( RN7662T

    comment(---Características generales ---)
    Name ( "RN7662T" )
    Wagon ( RN7662T )

    Type ( Electric )
    comment ( 110kmh/125kmh )
    MaxVelocity ( 125kmh )
    WheelRadius ( 0.625m )
    MaxPower ( 2208kW )
    MaxForce ( 178kN )
    MaxContinuousForce ( 162kN )

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

    AntiSlip (1)
    MaxSandingTime ( 1800s )

	Comment (---Frenos sección motriz---)
	
    AirBrakesAirCompressorPowerRating( 0.8 )
  	AirBrakesMainMinResAirPressure( 0 )
  	AirBrakesMainMaxAirPressure( 135 )
  	AirBrakesMainResVolume( 15 )
  	AirBrakesAirCompressorWattage( 8000 )
  	AirBrakesCompressorRestartPressure( 115 )
  	AirBrakesAirUsedPerPoundsOfBrakePipePressure( 1.5 )
  	AirBrakesHasLowPressureTest( 0 )
  	AirBrakesIsCompressorElectricOrMechanical( 1 )

	EngineBrakesControllerMinPressureReduction ( 7 )
	EngineBrakesControllerMaxApplicationRate ( 30 )
	EngineBrakesControllerMaxReleaseRate ( 40 )
	EngineBrakesControllerMinSystemPressure ( 0 )
	EngineBrakesControllerMaxSystemPressure ( 110 )
    EngineBrakesControllerEmergencyApplicationRate ( 50 )
	EngineBrakesControllerEmergencyBrakeTimePenalty ( 120 )
	EngineBrakesControllerFullServicePressureDrop ( 50 )
	EngineBrakesControllerHasProportionalBrake ( 1 )
	EngineBrakesControllerDirectControlExponent ( 1 )
    EngineBrakesProportionalBrakeLag( 0.1 )
	EngineBrakeHasEmergencyStopButton ( 0 )

	       
	TrainBrakesControllerMinPressureReduction( 2 )
	TrainBrakesControllerMaxApplicationRate( 15 )
	TrainBrakesControllerMaxReleaseRate( 3 )
	TrainBrakesControllerEmergencyApplicationRate( 20 )
	TrainBrakesControllerMinSystemPressure( 30 )
	TrainBrakesControllerMaxSystemPressure( 74 )
	TrainBrakesControllerEmergencyBrakeTimePenalty( 0 )
	TrainBrakesControllerFullServicePressureDrop( 22 )

	DynamicBrakesMinUsableSpeed( 15 )				
  	DynamicBrakesMaximumEffectiveSpeed( 100 )
    DynamicBrakesMaximumForce( 80kN )
    DynamicBrakesResistorCurrentLimit ( 900 )    
    DynamicBrakesCutInSpeed( 10 )					
	DynamicBrakesMaxAirBrakePressure ( 100 )			
	DynamicBrakesFadingSpeed( 20 )					
	DynamicBrakesDelayTimeBeforeEngaging ( 0 )
	DynamicBrakesMaximumSpeedForFadeOut ( 100 )
	DynamicBrakesEffectAtMaximumFadeOut( 0 )
	DynamicBrakesHigherSpeedCurveExponent( 10.5 )
	DynamicBrakesLowerSpeedCurveExponent( 0.7 )
	DynamicBrakesNumberOfControllerNotches( 18 )

    EngineBrakesControllerHasProportionalBrake( 1 )
	BrakesTrainBrakeType ( "Air_single_pipe" )
	BrakesEngineBrakeType( "Air_single_pipe"  )
    BrakesEngineControllers( "combined, dynamic, train" )
       	
       	DoesBrakeCutPower( 1 )
       	BrakeCutsPowerAtBrakeCylinderPressure( 15 )

    CabView ( "276FD.cvf" )
    HeadOut ( -1.6 3 -7.9 )

    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 ( "RN7662T" )
      Description (
 *Constructores partes mecánicas: Alsthom, MTM, MACOSA, CAF, S.E.C. Naval
 *Constructores partes eléctricas: G.E.E., Alsthom
 *Años de puesta en servicio: 1956-65
 *Tensión:  3.000 V., C.C.
 *Disposición de ejes:  Co'Co'
 *Potencia nominal:  2.208 kw
 *Peso en servicio:  120 T
 *Esfuerzo tractor:  GV 16,5 T
 *Velocidad máxima  GV 125 kmh
 *Número de motores:  6 
        )
     
)