Four more switches on EngineType go into the classes of the drives:
- TractionDrive::MainsPowerAvailable(): whether the line breaker has the
power to close; the low voltage circuits for the diesel engines and Dumb,
the line (or the low voltage, closed ahead of the pantographs) for the
series and the induction motors, always for the others (from
MainSwitchCheck())
- TractionDrive::CheckVoltageRelays(): the undervoltage and the overvoltage
relay of the series motors, the line voltage out of range of the induction
motors, the line contactors of the diesel-electric (the body of
VoltageRelaysCheck())
- TractionDrive::UpdateEngine(): the automatic start of the series motors,
the step of the diesel engine; returns whether a relay clicked (from
compute_movement_())
- TractionDrive::UpdateEngineVoltage(): the voltage of the motors, by the
reverser for the series motors, which also count the time since their
last relay, from the traction supply for the others (from
ComputeTotalForce())
The reading of the Engine and MotorParamTable sections of the .fiz still
switches on the engine type: it fills private members of the loader, and
stays with it.
No change in behaviour: 1144/1144 tests, golden traces exact against staging
62f7a29b.
Two more switches on EngineType go into the classes of the drives:
- TractionDrive::UpdateEngineRevolutions(): the diesel-electric engine
follows the revolutions it aims for, the diesel engine with a mechanical
transmission gives its ratio and its moment, the others turn with the
wheels (UpdateEngineRevolutions() before)
- TractionDrive::IncreaseMainController(), DecreaseMainController(): a notch
of the master controller as the kind of the engine takes it: the series
motors through their own steps, the diesel engine running to the end at
a fast step, the draisine by a push, the others one position at a time
(IncMainCtrlByEngine(), DecMainCtrlByEngine() before)
NoDrive splits in two: NoEngineDrive for a vehicle without an engine (its
controller steps, for the vehicles it controls) and UnmodelledDrive for the
steam engine and Main, which did nothing in these steps and still don't.
No change in behaviour: 1144/1144 tests, golden traces exact against staging
62f7a29b.
The fields of the drive of asynchronous motors fed by inverters move from
TMoverParameters into InductionMotor inductionMotor
(physics/components/inductionmotor.h):
eimc[26] config (std::array, indexed by eimc_* as before)
eimv[21] state (std::array, indexed by eimv_*)
eimv_pr forceShare
InverterFrequency inverterFrequency
InvertersNo, InvertersRatio inverterCount, inverterRatio
Inverters inverters (of Inverter, inverter before)
InverterControlCouplerFlag inverterControlCouplings
EIM_Pmax_Table maxPowerTable
EIMCLogForce logForce
The integrated controller (eimic, EIMCtrlType), which the diesel-electric
vehicles use too, and the ED/EP blending (MED_*) stay where they are.
No change in behaviour: 1144/1144 tests, golden traces exact against staging
62f7a29b.
TMoverParameters held some 80 fields of the diesel engine and its hydraulic
transmission among its other 600, named dizel_*, hydro_TC_* and hydro_R_*.
They are now three structures of physics/components/dieselengine.h, with
English names:
- DieselEngine diesel: the definition (maxMoment, maxRevolutions,
minRevolutions, the governor, the clutch, the fuel consumption, the tables)
and the state (fill, clutchState, clutchPressure, torque, power, the start
up, the fuel consumed) and its heat (EngineHeat, heat_data before)
- TorqueConverter torqueConverter: present, the ratios, the lockup, the
fill rates, the table, and its state (fill, lockedUp, torqueRatio, the
revolutions in and out)
- Retarder retarder: present, its placement, torque, power, fill rates,
clutch, and its state
The .fiz keywords, the keys of the dictionaries of the Python screens and the
names of the golden channels (dizel_fill...) are unchanged; only the C++
names changed. The functions of the engine (dizel_Update, dizel_Momentum...)
stay members of TMoverParameters for now.
No change in behaviour: 1144/1144 tests, golden traces exact against staging
62f7a29b.
The files of the parts of a vehicle (pneumatics, electrics, traction, doors,
drives...) are in physics/components/, not under the old name of the mover;
the file of the vehicle as a body, its forces and its movement, is body.cpp
(was mover.cpp). The includes, CMakeLists.txt and AGENTS.md name the new
paths.
Renames only. 1144/1144 tests, golden traces exact against staging 62f7a29b.