Vehicle body

automotive.vehicle_body

Longitudinal motion of a vehicle as one mass. The flange takes the traction force from the tires. Aerodynamic drag grows with the square of speed, rolling resistance is Crr times the normal force and turns sign with the direction of travel, and the grade input (road angle in rad, uphill positive) adds the downhill pull of gravity.

Ports

NameDomainDirection
gradesignalin
flangetranslational

Parameters

NameUnitDefaultRangeDescription
mkg15000 to ∞Vehicle mass
Cd10.30 to ∞Drag coefficient
Am22.20 to ∞Frontal area
rhokg/m31.20 to ∞Air density
Crr10.010 to ∞Rolling resistance coefficient
v_sm/s0.10.000001 to ∞Speed over which rolling resistance builds up from zero, to keep it smooth at standstill
v0m/s0Speed at the start

Variables

NameUnitStartDescription
smDistance travelled
vm/sv0Speed
FdNAerodynamic drag
FrNRolling resistance
FgNGravity along the road
gm/s2Standard gravity

Equations

s = flange.s
v = der(s)
m * der(v) = flange.f - Fd - Fr - Fg
Fd = 0.5 * rho * Cd * A * v * abs(v)
Fr = Crr * m * g * cos(grade) * tanh(v / v_s)
Fg = m * g * sin(grade)
g = 9.80665