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.
- utilities/enumset.h: EnumSet<E>, a set of the values of an enum class whose
values are bits, with the operations CouplingSet had (HasAll, HasAny,
Empty, Set, Clear, Without, |, &, ^, ==, FromBits, Bits). CouplingSet is
EnumSet<Coupling> now; an enum is a kind of the sets by IsEnumSetKind<E>,
which gives it its operator |.
- the damage of a vehicle (DamageFlag) is a DamageSet of VehicleDamage
instead of the int and the dtrain_* constants. A bit means one thing for a
locomotive and another for a wagon; both names are there (thinWheel and
loadShift, ventilator and loadDamage, engine and loadDestroyed).
- the SetDamage command of the scenery adds or takes away the damage by its
number as SetFlag() did (setOrClear()); "WRECKED" is still the set of the
number 255; the bearing divisor of the resistance stays the number 4.
- the damage of the tracks and of the catenary (dtrack_*, the traction's
DamageFlag) are other flags and stay as they were.
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.