mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-12-02 16:36:53 +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:
@@ -804,7 +804,7 @@ void TMoverParameters::GensetCheck(double const Deltatime)
|
||||
}
|
||||
else
|
||||
{
|
||||
auto const demand{GensetSelected() && Mains ? std::clamp(eimv_pr, 0.0, 1.0) : 0.0};
|
||||
auto const demand{GensetSelected() && Mains ? std::clamp(inductionMotor.forceShare, 0.0, 1.0) : 0.0};
|
||||
auto const target{genset.is_active ? genset.revolutions_idle + (genset.revolutions_max - genset.revolutions_idle) * demand : 0.0};
|
||||
genset.revolutions += (target - genset.revolutions) * std::min(1.0, Deltatime / genset.spinup_time);
|
||||
if (genset.revolutions < 0.001)
|
||||
|
||||
Reference in New Issue
Block a user