mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-12-01 18:47:06 +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:
@@ -1103,8 +1103,8 @@ void TMoverParameters::CheckEIMIC(double dt)
|
||||
double brakeDemand = SplitEDPneumaticBrake ? DynamicBrakeRatio() : LocalBrakeRatio();
|
||||
if (SplitEDPneumaticBrake)
|
||||
{
|
||||
double const vh0 = eimc[eimc_p_Vh0];
|
||||
double const vh1 = eimc[eimc_p_Vh1];
|
||||
double const vh0 = inductionMotor.config[eimc_p_Vh0];
|
||||
double const vh1 = inductionMotor.config[eimc_p_Vh1];
|
||||
if (vh1 > vh0 + 0.001)
|
||||
{
|
||||
double const vhRamp = std::clamp((Vel - vh0) / (vh1 - vh0), 0.0, 1.0);
|
||||
|
||||
Reference in New Issue
Block a user