CCG/Kind: Engine

From TrainzOnline
< CCG
Revision as of 18:00, 2 June 2011 by Pev (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Contents

KIND: ENGINE

An engine file specifies a traincar's performance and physics parameters. TRS also supports steam physics and thus, steam engine files have additional fields for this. The following examples are of the SD40-2 Diesel locomotive and the PB-15 Steam locomotive.


WARNING: ALTERING ENGINE FIGURES MAY RESULT IN UNDESIRED EFFECTS IN PERFORMANCE AND BEHAVIOR OF YOUR TRAINS.

(MAKE BACK-UP COPIES OF YOUR ENGINE CONFIG FILES!!)



ENGINE FILE (SD40-2 Diesel locomotive)

kuid <KUID:-1:42004221>
kind engine
rem SD402
flowsize
{
  trainbrakepipe 170000
  epreservoirpipe 0.1
  no3pipe 0.1
  no4pipe 0.1
  auxreservoirvent 0.1
  auxreservoir_no3 0.1
  auxreservoir_trainbrakepipe 0.1
  autobrakecylindervent 0.1
  auxreservoir_autobrakecylinder 0.1
  equaliser_mainreservoir 0.06
  equaliservent 0.06
  equaliserventhandleoff 0.1
  equaliserventemergency 0.1
  no3pipevent 1.5
  no3pipe_mainreservoir 0.1
  compressor 10
  trainbrakepipe_reservoir 1
  trainbrakepipevent 0.06
  no3pipe_autobrakecylinder 0.1
  epreservoirpipe_autobrakecylinder 0.1
  mainreservoir_ep 0.1
  vacuumbrakepipe 0.1
  vacuumbrakepipereleasevent 0.1
  vacuumbrakepipevent 0.1
  vacuumbrakereservoir_vacuumbrakepipe 0.1
  vacuumbrakecylinder_vacuumbrakepipe 0.1
  highspeedexhauster_vacuumbrakepipe 0.1
}
volume
{
  scale 1
  trainbrakepipe 0.2
  epreservoirpipe 0.2
  no3pipe 0.2
  no4pipe 0.2
  auxreservoir 0.0384678
  autobrakecylinder 0.00969387
  vacuumbrakepipe 0
  vacuumbrakereservoir 0
  vacuumbrakecylinder 0
  mainreservoir 0.9
  equaliser 0.5
  independantbrakecylinder 0.0103239
}
pressure
{
  scale 1
  compressor 0.00946941
  mainreservoir 0.00946941
  highspeedexhauster 0
  brakepipe 0.00736041
  brakeinitial 0.00693861
  brakefull 0.0044992
  indbrakefull 0.005075
  trainbrakepipe_start 0.00553261
  epreservoirpipe_start 0
  no3pipe_start 0
  no4pipe_start 0
  auxreservoir_start 0.00553261
  autobrakecylinder_start 0.00560291
  vacuumbrakepipe_start 0
  vacuumbrakereservoir_start 0
  vacuumbrakecylinder_start 0
  mainreservoir_start 0.00946941
  equaliser_start 0.00553261
  independantbrakecylinder_start 0.00560291
}
mass
{
  scale 1
  fuel 6.2156e+006
}
motor
{
  resistance 1.7
  adhesion 7
  maxvoltage 600
  maxspeed 40
  brakeratio 55000
  max-accel 3500
  max-decel 9000
  axle-count 6
  surface-area 80
  moving-friction-coefficient .03
  air-drag-coefficient .00017
}
throttle-power
{
       0
         {
                   0           0
         }
       1
         {
                   0           107
                   2.2          62
                   4.4          34
                   6.6          31
                   8.8          25
                   13.3         18
                   22.2         11
         }
       2
         {
                   0            224
                   2.2          125
                   4.4          68
                   6.6          62
                   8.8          50
                   13.3         36
                   22.2         22
        }
      3
        { 
                    0           373 
                   2.2          187 
                   4.4          125
                   6.6          93
                   8.8          75 
                  13.3          53  
        } 
      4
        { 
                    0           448
                   2.2          249
                   4.4          166 
                   6.6          125 
                   8.8          100 
                   13.3         71
                   22.2         45
        } 
      5
        {
                    0           618
                   2.2          309
                   4.4          206
                   6.6          154
                   8.8          123
                   13.3         88
                   22.2         56
                   35.5         36
        }
      6
        {
                      0          747
                   2.2          374
                   4.4          249
                   6.6          187
                   8.8          149
                   13.3         107
                   22.2         68
                   35.5         44
        }
      7
        {
                     0          872
                   2.2          436
                   4.4          291
                   6.6          218
                   8.8          174
                   13.3         124
                   22.2         79
                   35.5         51
                   44.4         42
        }
      8
        {
                     0          996
                   2.2          498
                   4.4          332
                   6.6          249 
                   8.8          199
                  13.3          142
                   22.2         90
                   35.5         58
                   44.4         48
        }
}
dynamic-brake
{
      0
        {
                    0           0
        }
      1
        {
                 1.333          0
                     2         30
                     5         25
                    10         15
                    12          0
        }
      2
        {
                 1.333          0
                     3         50
                    10         35
                    14         20
                    15          0
        }
      3
        {
                 1.333          0
                     3         60
                    10         40
                     17        20
                     22         0
        }
      4
        {
                 1.333          0
                     4         80
                    10         60
                    20         20
                    25          0
        }
      5
        {
                 1.333          0
                     5        190
                    10         70
                    25         25
                    29          0
        }
      6
        {
                 1.333          0
                     5        250
                    10         80
                    29         70
                    32          0
        }
      7
        {
                 1.333          0
                     5        250
                    10        100
                    32         60
                    36          0
        }
      8
        {
                 1.333          0
                     5        250
                    10        100
                    36         50
                    40          0
        }
}

Refer to Diesel Engine File Breakdown for an explanation of the tags above.



ENGINE FILE (PB15 locomotive)

kuid <KUID:44179:51002>
kind steam-engine
flowsize
 {
  trainbrakepipe 170000
  epreservoirpipe 0.1
  no3pipe 0.1
  no4pipe 0.1
  auxreservoirvent 0.1
  auxreservoir_no3 0.1
  auxreservoir_trainbrakepipe 0.1
  autobrakecylindervent 0.1
  auxreservoir_autobrakecylinder 0.1
  equaliser_mainreservoir 0.06
  equaliservent 0.06
  equaliserventhandleoff 0.1
  equaliserventemergency 0.1
  no3pipevent 1.5
  no3pipe_mainreservoir 0.1
  compressor 5
  trainbrakepipe_reservoir 1
  trainbrakepipevent 0.06
  no3pipe_autobrakecylinder 0.1
  epreservoirpipe_autobrakecylinder 0.1
  mainreservoir_ep 0.1
  vacuumbrakepipe 0.1
  vacuumbrakepipereleasevent 0.1
  vacuumbrakepipevent 0.1
  vacuumbrakereservoir_vacuumbrakepipe 0.1
  vacuumbrakecylinder_vacuumbrakepipe 0.1
  highspeedexhauster_vacuumbrakepipe 0.1
 }
volume
 {
  scale 1
  trainbrakepipe 0.2
  epreservoirpipe 0.2
  no3pipe 0.2
  no4pipe 0.2
  auxreservoir 0.0384678
  autobrakecylinder 0.00969387
  vacuumbrakepipe 0
  vacuumbrakereservoir 0
  vacuumbrakecylinder 0
  mainreservoir 1.0
  equaliser 0.5
  independantbrakecylinder 0.0103239
 }
pressure
 {
  scale 1
  compressor 0.00946941
  mainreservoir 0.00946941
  highspeedexhauster 0
  brakepipe 0.00595441
  brakeinitial 0.00560291
  brakefull 0.00398601
  indbrakefull 0.00398601
  trainbrakepipe_start 0.00440781
  epreservoirpipe_start 0
  no3pipe_start 0
  no4pipe_start 0
  auxreservoir_start 0.00504051
  autobrakecylinder_start 0.00489991
  vacuumbrakepipe_start 0
  vacuumbrakereservoir_start 0
  vacuumbrakecylinder_start 0
  mainreservoir_start 0.00876641
  equaliser_start 0.00440781
  independantbrakecylinder_start 0.00489991
 }
mass
 {
  scale 1
  fuel 6.2156e+006
 }
motor
 {
  resistance 1.3
  adhesion 2.5
  maxvoltage 600
  maxspeed 21
  brakeratio 55000
  max-accel 1500
  max-decel 5000
  throttle-notches 32
  axle-count 4
  surface-area 150
  moving-friction-coefficient 0.01
  air-drag-coefficient 0.0001
 }
throttle-power
 {
    0
      {
           0          0
      }
    1
      {
           0         35
           5         28
          10         18
          12          0
      }
    2
      {
           0         85
           5         70
          10         60
          15         30
          30          0
      }
    3
      {
           0        140
           5         93
          10         70
          15         62
          30          0
      }
    4
      {
           2        187
           5        109
          10         93
          15         87
          30          0
      }
    5
      {
           0        281
           5        218
          10        109
          15         87
          30          0
      }
    6
      {
           0        343
           5        265
          10        172
          15        125
          30          0
      }
    7
      {
           0        359
           5        343
          10        187
          15        156
          30          0
      }
    8
      {
           0        436
           3.5      429
           4.25     425
           5        408
          10        234
          15        172
          21          0
      }
 }
dynamic-brake
 {
    0
      {
           0          0
      }
    1
      {
           1.333      0
           2         30
           5         25
           6         15
           7          0
      }
    2
      {
           1.333      0
           2         50
           5         35
           7         20
           8          0
      }
    3
      {
           1.333      0
           2         60
           5         40
           7         20
           8          0
      }
    4
      {
           1.333      0
           3         80
           7         60
          10         20
          12          0
      }
    5
      {
           1.333      0
           5         90
           9         70
          12         25
          15          0
      }
    6
      {
           1.333      0
           5        150
           9         80
          13         70
          17          0
      }
    7
      {
           1.333      0
           5        200
          10        100
          16         60
          19          0
      }
    8
      {
           1.33       0
           5        200
          10        150
          18         50
          21          0
      }
 }
steam
 {
   firebox-volume	1000.0     .... volumes in L, pressures in kPa, flow sizes (nominal figure), mass in kg
   firebox-to-boiler-heat-flow	0.055
   firebox-efficiency	0.995
   boiler-volume	3000.0
   water-injector-rate	4.0
   westinghouse-volume	100
   main-reservoir-volume 50.0
   cylinder-volume	50.0
   piston-volume-min	1.48
   piston-volume-max	68.7
   piston-area   	0.177
   piston-angular-offsets 0.1
   piston-to-atmosphere-flow	0.0021
   safety-valve-low-pressure	956.0
   safety-valve-low-flow	0.011
   safety-valve-high-pressure	1010.0
   safety-valve-high-flow	0.2
   max-fire-coal-mass  	50.0
   max-fire-temperature	1873.0
   shovel-coal-mass    	2.0
   burn-rate             	0.0001
   fuel-energy         	100.0
   boiler-to-piston-flow	0.0017
 }

Refer to Steam Engine File Breakdown for an explanation of the tags above.



Return to CCG Index

Content Creator's Guide

Personal tools