18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-12-01 22:07:55 +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
@@ -387,7 +387,7 @@ bool TMoverParameters::readPmaxList(std::string const &line)
double y = 0.0;
parser >> x >> y;
EIM_Pmax_Table.emplace(x, y);
inductionMotor.maxPowerTable.emplace(x, y);
return true;
}