18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-12-01 17:37:09 +01:00

refactor(physics): the induction motor drive is a component of its own

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.
This commit is contained in:
2026-11-28 15:43:22 +01:00
parent 04f76951f5
commit ff739d2328
21 changed files with 244 additions and 217 deletions
+1 -1
View File
@@ -530,7 +530,7 @@ TEST_CASE("elf holding brake: the force of the motors at 1% against the holding
unit.wait(5.0);
auto const holding{cab.StopBrakeDecc * mass};
MESSAGE("mass " << mass << " kg, holding " << holding << " N, cars with motors " << powered << ", demand " << cab.eimic_real << ", cab car Ft " << cab.Ft
<< " N, Fful " << cab.eimv[eimv_Fful] << " kN, speed " << cab.Vel << " km/h after 5 s");
<< " N, Fful " << cab.inductionMotor.state[eimv_Fful] << " kN, speed " << cab.Vel << " km/h after 5 s");
CHECK(cab.eimic_real == doctest::Approx(0.01).epsilon(0.02));
CHECK(cab.Ft * powered < 0.1 * holding);
}