Aim:To model the vehicle body using driver block,traction force,vehicle dynamics.
Blocks used:Constants,Integrator,Saturation,terminator memory,add,product...
First we need to load all the parameters like below

By using all these vehicle parameters ,first we need to type in command window then it will be load in to the workspace ,save the workspace area then it will be store as .mat file then load the vehicle param .mat file.
By this we can use these parameters in the model.
We need to create a separate subsystem for the driver block, resistive force block, vehicle model block.
This resistance force includes rolling resistance,aerodynamic drag force,hill climbing force.
Rolling resistance,Fr=m*g*U-res*cos(theta)
Aerodynamic drag force,Fa=(1/2)*Af*adc*cd*v^2
Hill climbing is also called as gradability,Fg=m*g*U-res*sin(theta)
By using all the information now we need to model the vehicle as below
Simulink Model:

Driver block:

Resistance force block:

Vehicle Body block:

Tractive force signal builder as input:

For sin and cos angle input through signal builder.

Result graph:
