Vehicle Body 3DOF Longitudinal
R2026b3DOF rigid vehicle body to calculate longitudinal, vertical, and pitch motion
Libraries:
Powertrain Blockset /
Vehicle Dynamics
Vehicle Dynamics Blockset /
Vehicle Body
Description
The Vehicle Body 3DOF Longitudinal block implements a three degrees-of-freedom (3DOF) rigid vehicle body model with configurable axle stiffness to calculate longitudinal, vertical, and pitch motion. The block accounts for body mass, aerodynamic drag, road incline, and weight distribution between the axles due to acceleration and the road profile.
You can specify the type of axle attachment to the vehicle:
Grade angle — Vertical axle displacement from road surface to axles remains constant. The block uses tabular stiffness and damping parameters to model the suspension forces acting between the vehicle body and axles.
Axle displacement, velocity — Axles have input-provided vertical displacement and velocity with respect to the road grade. The block uses tabular stiffness and damping parameters to model the suspension forces acting between the vehicle body and axle.
External suspension — Axles have externally applied forces for coupling the vehicle body to custom suspension models.
If the weight transfer from vertical and pitch motions is not negligible, consider using this block to represent vehicle motion in powertrain and fuel economy studies. For example, use it in studies with heavy braking or acceleration, or with road profiles that contain larger vertical changes.
The block equations use a road frame: X runs along the grade
surface, Z is normal to the road (positive down), and θ
is the pitch angle relative to the road. The road grade, γ, enters the
equations only through the gravity force. The InertFrm signals in the
Info bus use the global earth-fixed frame
(Z positive down), where theta is the total
pitch angle, θ + γ. The block treats the road
grade as slowly varying. With a time-varying grade, the equations omit the terms in the
rate of change of the grade.
The block uses rigid-body vehicle motion, suspension system forces, and wind and drag forces to calculate the normal forces on the front and rear axles. The block resolves the force components and moments on the rigid vehicle body frame:
The FxExt, FzExt, and MyExt terms apply only when you select the External forces or External moments parameters. The external force acts at the vehicle center of gravity (CG). The block uses only the x- and z-components of the external force and the y-component of the external moment.
Rigid-Body Vehicle Motion
The block uses the net effect of all the forces and torques acting on it to determine the vehicle motion. The longitudinal tire forces push the vehicle forward or backward. The weight of the vehicle body acts through its CG. Depending on the inclined angle, the weight pulls the vehicle to the ground and either forward or backward. Whether the vehicle travels forward or backward, aerodynamic drag slows it down. For simplicity, the block assumes that the drag acts through the CG.
The Vehicle Body 3DOF Longitudinal block implements these equations.
The gravity force components along the vehicle-fixed axes depend on the pitch angle and the road grade:
Suspension System Forces
If you configure the block with the Ground interaction type
parameter Grade angle or Axle displacement,
velocity, the block uses nonlinear stiffness and damping
parameters to model the suspension system.
The block calculates the front and rear axle suspension forces as:
The suspension forces act along the road normal. A positive force pushes the vehicle body away from the road. The block resolves the suspension forces into vehicle-fixed components:
The block uses lookup tables to model the front and rear suspension stiffness. To account for kinematic and material nonlinearities, including collisions with end-stops, the tables are functions of the stroke.
The block uses lookup tables to model the front and rear suspension damping. To account for nonlinearities, compression, and rebound, the tables are functions of the stroke rate.
The stroke is the difference in the vehicle vertical and axle positions along the road normal. The stroke rate is the time derivative of the stroke. The block measures the road-normal positions from the axle line, that is, from the suspension hard points at zero deflection, not from the road surface.
When the Ground interaction type parameter is
Grade angle, the block sets the axle vertical positions () and velocities () to 0, so the stroke equals the vehicle
vertical position and the stroke rate equals the vehicle vertical velocity.
Wind and Drag Forces
The wind speed input is in the road frame. The block rotates the wind speed into the vehicle-fixed axes and adds it to the vehicle velocity to obtain the relative airspeed:
To calculate the drag forces and moment acting on the vehicle, the block uses the magnitude of the relative airspeed, including the lateral component:
The block smooths the sign function for |vrel,x| below about 0.03 m/s. A positive lift coefficient, Cl, produces lift, which acts along the negative vehicle-fixed z-axis. A negative Cl produces downforce. The lift force does not change direction when the airflow reverses.
The block uses a headwind-positive sign convention for the wind speed inputs:
Positive wind speed is a headwind that opposes vehicle motion and increases drag.
Negative wind speed is a tailwind that assists vehicle motion and decreases drag.
Power Accounting
For the power accounting, the block implements these equations.
| Bus | Description | Equations | ||
|---|---|---|---|---|
|
|
| Externally applied longitudinal force power | |
| Externally applied vertical force power | |||
| Externally applied pitch moment power | |||
| Longitudinal force applied at the front axle | |||
| Longitudinal force applied at the rear axle | |||
|
|
| Internal power transferred between suspension and vehicle body at the front axle | ||
| Internal power transferred between suspension and vehicle body at the rear axle | |||
| Longitudinal drag force power | |||
| Vertical drag force power | |||
| Drag pitch moment power | |||
| Total suspension damping power | |||
|
|
| Rate of change of gravitational potential energy | ||
| Rate of change of longitudinal kinetic energy | |||
| Rate of change of vertical kinetic energy | |||
| Rate of change of rotational pitch kinetic energy | |||
| Stored spring energy from front suspension | |||
| Stored spring energy from rear suspension | |||
The equations use these variables.
| Fx | Longitudinal force on vehicle |
| Fz | Normal force on vehicle |
| My | Torque on vehicle about the vehicle-fixed y-axis |
| FwF, FwR | Longitudinal force on front and rear axles along vehicle-fixed x-axis |
| Fd,x, Fd,z | Longitudinal and normal drag force on vehicle CG |
| Fsx,F, Fsx,R | Longitudinal suspension force on front and rear axles |
| Fsz,F, Fsz,R | Normal suspension force on front and rear axles |
| Fg,x,Fg,z | Longitudinal and normal gravitational force on vehicle along the vehicle-fixed frame |
| Md,y | Torque due to drag on vehicle about the vehicle-fixed y-axis |
| FxExt, FzExt | External force on the vehicle CG along the vehicle-fixed x- and z-axes |
| MyExt | External moment on the vehicle about the vehicle-fixed y-axis |
| a,b | Distance of front and rear axles, respectively, from the normal projection point of vehicle CG onto the common axle plane |
| h | Height of body (sprung mass) CG above the axle plane along vehicle-fixed z-axis |
| FsF, FsR | Front and rear axle suspension force along the road normal. A positive force pushes the vehicle body away from the road. |
| θ | Vehicle pitch angle relative to the road, about the vehicle-fixed y-axis |
| γ | Road grade angle |
| m | Vehicle body (sprung) mass |
| NF, NR | Number of front and rear wheels |
| Iyy | Vehicle body moment of inertia about the vehicle-fixed y-axis |
| x, , | Vehicle longitudinal position, velocity, and acceleration along the vehicle-fixed x-axis |
Vehicle normal position, velocity, and acceleration along the vehicle-fixed z-axis | |
| FkF, FkR | Front and rear wheel suspension stiffness force along the road normal |
| FbF, FbR | Front and rear wheel suspension damping force along the road normal |
| ZF, ZR | Front and rear vehicle position along the road normal |
Front and rear vehicle velocity along the road normal | |
Front and rear wheel axle position along the road normal | |
Front and rear wheel axle velocity along the road normal | |
| dZF, dZR | Front and rear axle suspension deflection along the road normal |
Front and rear axle suspension deflection rate along the road normal | |
| Cd | Aerodynamic drag coefficient acting along the vehicle-fixed x-axis |
| Cl | Aerodynamic lift coefficient acting along the vehicle-fixed z-axis |
| Cpm | Aerodynamic pitch moment coefficient acting about the vehicle-fixed y-axis |
| Af | Frontal area |
| Pabs | Environmental absolute pressure |
| R | Atmospheric specific gas constant |
| T | Environmental air temperature |
| wX, wY, wZ | Wind speed along the road-frame X-, Y-, and Z-axes. Positive wind speed is a headwind. |
| vrel | Relative airspeed of the vehicle, resolved along the vehicle-fixed axes. vrel,x is the component along the vehicle-fixed x-axis. |
Ports
Input
Output
Parameters
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"autolibvehdynlong/Vehicle Body 3DOF Longitudinal"
"vehdynlibeom/Vehicle Body 3DOF Longitudinal"
Example: add_block("autolibvehdynlong/Vehicle Body 3DOF Longitudinal","myModel/myBlock",MakeNameUnique="on")
For information about programmatic access to individual block parameters, see the Programmatic Use section of parameter descriptions on this page.
References
[1] Gillespie, Thomas. Fundamentals of Vehicle Dynamics. Warrendale, PA: Society of Automotive Engineers, 1992.
[2] Vehicle Dynamics Standards Committee. Vehicle Dynamics Terminology. SAE J670. Warrendale, PA: Society of Automotive Engineers, 2008.
[3] Technical Committee. Road vehicles — Vehicle dynamics and road-holding ability — Vocabulary. ISO 8855:2011. Geneva, Switzerland: International Organization for Standardization, 2011.
[4] Unrau, H.-J., and Zamow J. TYDEX-Format: Description and Reference Manual. Release 1.3, 1997.
