You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This tree is a summary of the important object relationships (aggregation) inside the simulation. Each entry is a class whose instances can be accessed from the parent item.
Copy file name to clipboardExpand all lines: Docs/Readme.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ Open Rails is a free train simulator supporting the world's largest range of dig
10
10
## Documentation
11
11
12
12
*[Read the FAQ](http://www.openrails.org/learn/faq/?utm_campaign=documentation&utm_source=readme&utm_medium=referral)
13
-
*[Read the manual online](https://open-rails.readthedocs.io/en/1.3.1/) or the PDF included with the program, found in the main menu under "Documents"
13
+
*[Read the manual online](https://open-rails.readthedocs.io/en/latest/) or the PDF included with the program, found in the main menu under "Documents"
14
14
*[Get additional materials, including tutorials, from our website](http://www.openrails.org/learn/manual-and-tutorials/?utm_campaign=documentation&utm_source=readme&utm_medium=referral)
15
15
*[Read more about the project on our website](http://www.openrails.org/discover/open-rails/?utm_campaign=documentation&utm_source=readme&utm_medium=referral)
Copy file name to clipboardExpand all lines: Source/Orts.Simulation/Simulation/RollingStocks/MSTSDieselLocomotive.cs
+45-36Lines changed: 45 additions & 36 deletions
Original file line number
Diff line number
Diff line change
@@ -301,10 +301,9 @@ public override void LoadFromWagFile(string wagFilePath)
301
301
{
302
302
Trace.TraceInformation("MaxRailOutputPower (BASIC Config): set at arbitary value = {0}",FormatStrings.FormatPower(LocomotiveMaxRailOutputPowerW,IsMetric,false,false));
303
303
}
304
-
305
304
}
306
305
307
-
306
+
308
307
if(MaximumDieselEnginePowerW==0)
309
308
{
310
309
MaximumDieselEnginePowerW=LocomotiveMaxRailOutputPowerW;// If no value set in ENG file, then set the Prime Mover power to same as RailOutputPower (typically the MaxPower value)
@@ -313,7 +312,6 @@ public override void LoadFromWagFile(string wagFilePath)
313
312
Trace.TraceInformation("Maximum Diesel Engine Prime Mover Power set the same as MaxRailOutputPower {0} value",FormatStrings.FormatPower(MaximumDieselEnginePowerW,IsMetric,false,false));
314
313
315
314
}
316
-
317
315
}
318
316
319
317
// Check that maximum force value has been set
@@ -330,40 +328,42 @@ public override void LoadFromWagFile(string wagFilePath)
330
328
}
331
329
else
332
330
{
333
-
floatThrottleSetting=1.0f;// Must be at full throttle for these calculations
331
+
floatthrottleSetting=1.0f;// Must be at full throttle for these calculations
334
332
floatStartingSpeedMpS=0.1f;// Assumed starting speed for diesel - can't be zero otherwise error will occurr
Trace.TraceInformation("Diesel Force Settings (BASIC Config): Max Starting Force {0}, Calculated Max Continuous Force {1} @ speed of {2}",FormatStrings.FormatForce(MaxForceN,IsMetric),FormatStrings.FormatForce(CalculatedMaxContinuousForceN,IsMetric),FormatStrings.FormatSpeedDisplay(SpeedOfMaxContinuousForceMpS,IsMetric));
354
351
Trace.TraceInformation("Diesel Power Settings (BASIC Config): Prime Mover {0}, Max Rail Output Power {1}",FormatStrings.FormatPower(MaximumDieselEnginePowerW,IsMetric,false,false),FormatStrings.FormatPower(LocomotiveMaxRailOutputPowerW,IsMetric,false,false));
355
352
356
353
if(MaxForceN<MaxContinuousForceN)
357
354
{
358
355
Trace.TraceInformation("!!!! Warning: Starting Tractive force {0} is less then Calculated Continuous force {1}, please check !!!!",FormatStrings.FormatForce(MaxForceN,IsMetric),FormatStrings.FormatForce(CalculatedMaxContinuousForceN,IsMetric),FormatStrings.FormatSpeedDisplay(SpeedOfMaxContinuousForceMpS,IsMetric));
359
356
}
360
-
361
357
}
362
-
else// Advanced configuration -
358
+
359
+
}
360
+
else// Advanced configuration -
361
+
{
362
+
floatStartingSpeedMpS=0.1f;// Assumed starting speed for diesel - can't be zero otherwise error will occurr
Trace.TraceInformation("Diesel Force Settings (ADVANCED Config): Max Starting Force {0}, Calculated Max Continuous Force {1}, @ speed of {2}",FormatStrings.FormatForce(StartingForceN,IsMetric),FormatStrings.FormatForce(CalculatedMaxContinuousForceN,IsMetric),FormatStrings.FormatSpeedDisplay(SpeedOfMaxContinuousForceMpS,IsMetric));
368
368
Trace.TraceInformation("Diesel Power Settings (ADVANCED Config): Prime Mover {0}, Max Rail Output Power {1} @ {2} rpm",FormatStrings.FormatPower(DieselEngines.MaxPowerW,IsMetric,false,false),FormatStrings.FormatPower(DieselEngines.MaximumRailOutputPowerW,IsMetric,false,false),MaxRPM);
369
369
@@ -372,34 +372,43 @@ public override void LoadFromWagFile(string wagFilePath)
372
372
Trace.TraceInformation("!!!! Warning: Calculated Starting Tractive force {0} is less then Calculated Continuous force {1}, please check !!!!",FormatStrings.FormatForce(StartingForceN,IsMetric),FormatStrings.FormatForce(CalculatedMaxContinuousForceN,IsMetric),FormatStrings.FormatSpeedDisplay(SpeedOfMaxContinuousForceMpS,IsMetric));
373
373
}
374
374
}
375
+
}
376
+
377
+
// Check that MaxPower value is realistic - Calculate power - metric - P = F x V
Trace.TraceInformation("!!!! Warning: MaxPower {0} is less then continuous force calculated power {1} @ speed of {2}, please check !!!!",FormatStrings.FormatPower(MaxPowerW,IsMetric,false,false),FormatStrings.FormatPower(CalculatedContinuousPowerW,IsMetric,false,false),FormatStrings.FormatSpeedDisplay(SpeedOfMaxContinuousForceMpS,IsMetric));
382
+
}
375
383
376
-
// Check that MaxPower value is realistic - Calculate power - metric - P = F x V
Trace.TraceInformation("!!!! Warning: MaxPower {0} is less then continuous force calculated power {1} @ speed of {2}, please check !!!!",FormatStrings.FormatPower(MaxPowerW,IsMetric,false,false),FormatStrings.FormatPower(CalculatedContinuousPowerW,IsMetric,false,false),FormatStrings.FormatSpeedDisplay(SpeedOfMaxContinuousForceMpS,IsMetric));
0 commit comments