How to make the vehicle body mass and the horizontal distance from CG to front/rear axle variable?

2 views (last 30 days)
I am a matlab user for simulating the hybrid vehicle. For the hybrid truck mass is variable during the simulation, which causes the horizontal distance from CG to front/rear axle are also variable. So how can I define a variable in the MATLAB/Simulink InitFcn file to simulate the variable vehicle mass?

Answers (1)

Steve Miller
Steve Miller on 3 Aug 2020
Edited: Steve Miller on 3 Aug 2020
The Vehicle Body block in Simscape Driveline allows you to vary mass, inertia, and CG values during simulation.
If you want to vary the location of the CG during simulation, you can feed the x and y position as inputs to the CG port if Externally-defined additional mass is set to "on".

Categories

Find more on Simscape Driveline in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!