main content

electric vehicle configured for hil -凯发k8网页登录

this example shows an electric vehicle model suitable for hardware-in-the-loop (hil) deployment. energy-based modeling is used to avoid high-frequency switching, and solvers set for fixed-step simulation.

the test run shows the vehicle accelerating to a steady speed up an incline followed by a period of descent during which electrical power is returned to the battery.

model

pmsm drive subsystem

cooling system subsystem

electric and thermal model subsystem

vehicle control subsystem

simulation results from simscape logging

the plot below shows the behavior of an electric vehicle subject to driver inputs and environmental conditions. the vehicle accelerates until the driver enables cruise control. the vehicle maintains speed even as the grade of the road changes. as the driver applies the brakes, the vehicle slows down to zero speed.

the plots below shows the torque produced by the pmsm motor in the electric vehicle and its temperature. during the first half of the simulation the motor is accelerating the vehicle to the commanded speed and then continuing to apply torque to push the vehicle up a hill. during the second half of the simulation, the motor acts as a generator as shown by the change in sign of motor torque.

results from real-time simulation

this example has been tested on a speedgoat performance real–time target machine with an intel® 3.5 ghz i7 multi–core cpu. this model can run in real time with a step size of 400 microseconds.

网站地图