Professional Documents
Culture Documents
Libraries:
Vehicle Dynamics Blockset / Vehicle Body
Description
The Trailer Body 3DOF block implements a rigid one-axle, two-axle or three-axle trailer body model to calculate longitudinal, lateral, and yaw motion. Configure the block for a
single or dual track. The block accounts for axle and hitch reaction forces due to the trailer acceleration, aerodynamic drag, and steering.
Use this block in vehicle dynamics and automated driving studies to model nonholonomic vehicle motion when vehicle pitch, roll, and vertical motion are not significant.
Dual 1-axle Trailer with a dual track and one axle. Forces act at the axle hard-point locations.
Dual 2-axle(default) Trailer with a dual track and two axles. Forces act at the axle hard-point locations.
Dual 3-axle Trailer with a dual track and three axles. Forces act at the axle hard-point locations.
Because the motion is quasi-steady, the block calculates lateral forces using the tire slip angles and linear cornering stiffness.
Conduct high-level software studies that are not impacted by driveline or nonlinear tire responses.
The block calculates lateral forces using the tire slip angles and linear cornering stiffness.
Account for changes in the longitudinal velocity on the lateral and yaw motion.
Specify the external longitudinal motion through a force instead of an external longitudinal velocity.
External forces
The block uses the external lateral and longitudinal forces to steer, accelerate, or brake the vehicle.
The block does not use the steering input to calculate vehicle motion.
Consider this setting when you need tire models with more accurate nonlinear combined lateral and longitudinal slip.
To create additional input ports, under Input signals, select these block parameters.
External forces FExt External force on the vehicle center of gravity (CG), F , F , and F , in the vehicle-fixed frame
x y z
External moments MExt External moment about the vehicle CG, M , M , and M , in the vehicle-fixed frame
x y z
Front hitch forces FhF Hitch force applied to the body at the front hitch location, FhF , FhF , and FhF , in the vehicle-fixed frame
x y z
Front hitch moments MhF Hitch moment at the front hitch location, MhF , MhF , and MhF , about the vehicle-fixed frame
x y z
Rear hitch forces FhR Hitch force applied to the body at the rear hitch location, FhR , FhR , and FhR , in the vehicle-fixed frame
x y z
Rear hitch moments MhR Hitch moment at the rear hitch location, MhR , MhR , and MhR , about the vehicle-fixed frame
x y z
Initial longitudinal position X_o Initial vehicle CG displacement along the earth-fixed X-axis
Initial yaw angle psi_o Initial rotation of the vehicle-fixed frame about the earth-fixed Z-axis (yaw)
Initial longitudinal velocity xdot_o Initial vehicle CG velocity along the vehicle-fixed x-axis
Initial yaw rate r_o Initial vehicle angular velocity about the vehicle-fixed z-axis (yaw rate)
Initial lateral position Y_o Initial vehicle CG displacement along the earth-fixed Y-axis
Air temperature AirTemp Ambient air temperature. Consider this option if you want to vary the temperature during run time.
Initial lateral velocity ydot_o Initial vehicle CG velocity along the vehicle-fixed y-axis
Theory
To determine the vehicle motion, the block solves the rigid body planar dynamics equations of motion.
Calculation Description
Dynamics The block solves the rigid-body planar dynamics equations to determine the vehicle longitudinal motion. If you set Axle forces to External
longitudinal velocity, the block assumes a quasi-steady state for the longitudinal acceleration.
External forces External forces include both drag and external force inputs. The forces act on the vehicle CG.
The block divides the normal forces by the nominal normal load to vary the effective friction parameters during weight and load transfer. The
block maintains pitch and roll equilibrium.
Tire forces The block uses the ratio of the local, longitudinal, and lateral velocities to determine the slip angles.
The block uses the steering angles to transform the tire forces to the vehicle-fixed frame.
If you set Axle forces to External forces, the block assumes that the externally provided forces are in the vehicle-fixed frame at the axle-
wheel location.
, ,
a b c Longitudinal distance of the front, middle, and rear axles, respectively, from the normal projection point of the vehicle CG onto the common axle plane
h Height of the tractor CG above the axle plane along the vehicle-fixed z-axis
d Lateral distance from the geometric centerline to the center of mass along the vehicle-fixed y-axis
hh_f hh_r , Height of the front and rear hitch, respectively, above the axle plane along the vehicle-fixed z-axis
dh_f dh_r , Longitudinal distance of the front and rear hitch, respectively, from the normal projection point of tractor CG onto the common axle plane
,
wf wm wr , Front, middle, and rear track width, respectively
Drag
This table summarizes the block implementation for the drag calculation.
Calculation Description
Coordinate transformation The block transforms the wind speeds from the inertial frame to the vehicle-fixed frame.
Calculation Description
Drag forces To determine a relative airspeed, the block subtracts the wind speed from the CG vehicle velocity. Using the relative airspeed, the block
determines the drag forces.
Drag moments Using the relative airspeed, the block determines the drag moments.
Parameter Settings
Description
Mapped Corner Stiffness Include Relaxation Length Dynamics
Off (default) On (default) The block uses constant corner stiffness values.
The slip angles include the relaxation length dynamic settings. The relaxation length approximates an
effective corner stiffness force that is a function of wheel travel.
On On (default) The block uses lookup tables that are functions of the corner stiffness data and slip angles.
The slip angles include the relaxation length dynamic settings. The relaxation length approximates an
effective corner stiffness force that is a function of wheel travel.
Off (default) Off The block uses constant corner stiffness values.
Examples
Ports
https://in.mathworks.com/help/vdynblks/ref/trailerbody3dof.html?searchHighlight=trailer axles&s_tid=srchtitle_support_results_8_trailer%2520axles 11/51
3/7/24, 10:22 PM Trailer body with longitudinal, lateral, and yaw motion - Simulink - MathWorks India
scalar | array
https://in.mathworks.com/help/vdynblks/ref/trailerbody3dof.html?searchHighlight=trailer axles&s_tid=srchtitle_support_results_8_trailer%2520axles 12/51
3/7/24, 10:22 PM Trailer body with longitudinal, lateral, and yaw motion - Simulink - MathWorks India
array
FrntAxl Lft Disp X Front left wheel displacement along the Computed m
earth-fixed X-axis
Vel Xdot Front left wheel velocity along the earth- Computed m/s
fixed X-axis
Ydot Front left wheel velocity along the earth- Computed m/s
fixed Y-axis
Vel Xdot Front right wheel velocity along the earth- Computed m/s
fixed X-axis
Ydot Front right wheel velocity along the earth- Computed m/s
fixed Y-axis
MidlAxl Lft Disp X Middle left wheel displacement along the Computed m
earth-fixed X-axis
Vel Xdot Middle left wheel velocity along the earth- Computed m/s
fixed X-axis
Ydot Middle left wheel velocity along the earth- Computed m/s
fixed Y-axis
Vel Xdot Middle right wheel velocity along the earth- Computed m/s
fixed X-axis
Ydot Middle right wheel velocity along the earth- Computed m/s
fixed Y-axis
RearAxl Lft Disp X Rear left wheel displacement along the Computed m
earth-fixed X-axis
Vel Xdot Rear left wheel velocity along the earth- Computed m/s
fixed X-axis
Ydot Rear left wheel velocity along the earth- Computed m/s
fixed Y-axis
Vel Xdot Rear right wheel velocity along the earth- Computed m/s
fixed X-axis
Ydot Rear right wheel velocity along the earth- Computed m/s
fixed Y-axis
Geom Disp X Trailer body offset from the axle plane Computed m
along the earth-fixed X-axis
Vel Xdot Trailer body offset velocity along the earth- Computed m/s
fixed X-axis
Ydot Trailer body offset velocity along the earth- Computed m/s
fixed Y-axis
Zdot Trailer body offset velocity along the earth- Computed m/s
fixed Z-axis
HitchF Disp X Trailer front hitch offset from the axle plane Computed m
along the earth-fixed X-axis
Vel Xdot Trailer front hitch offset velocity along the Computed m/s
earth-fixed X-axis
Ydot Trailer front hitch offset velocity along the Computed m/s
earth-fixed Y-axis
Zdot Trailer front hitch offset velocity along the Computed m/s
earth-fixed Z-axis
HitchR Disp X Trailer rear hitch offset from the axle plane Computed m
along the earth-fixed X-axis
Vel Xdot Trailer rear hitch offset velocity along the Computed m/s
earth-fixed X-axis
Ydot Trailer rear hitch offset velocity along the Computed m/s
earth-fixed Y-axis
Zdot Trailer rear hitch offset velocity along the Computed m/s
earth-fixed Z-axis
BdyFrm Cg Vel xdot Vehicle CG velocity along the vehicle-fixed Computed m/s
x-axis
Vy
β =
Vx
Tires FrntTires Lft Fx Front left tire force along the vehicle-fixed x- Computed N
axis
RearTires Lft Fx Rear left tire force along the vehicle-fixed x- Computed N
axis
FrntAxl Lft Disp x Front left wheel displacement along the Computed m
vehicle-fixed x-axis
Vel xdot Front left wheel velocity along the vehicle- Computed m/s
fixed x-axis
ydot Front left wheel velocity along the vehicle- Computed m/s
fixed y-axis
Vel xdot Front right wheel velocity along the vehicle- Computed m/s
fixed x-axis
ydot Front right wheel velocity along the vehicle- Computed m/s
fixed y-axis
MidlAxl Lft Disp x Middle left wheel displacement along the Computed m
vehicle-fixed x-axis
Vel xdot Middle left wheel velocity along the vehicle- Computed m/s
fixed x-axis
ydot Middle left wheel velocity along the vehicle- Computed m/s
fixed y-axis
Vel xdot Middle right wheel velocity along the Computed m/s
vehicle-fixed x-axis
RearAxl Lft Disp x Rear left wheel displacement along the Computed m
vehicle-fixed x-axis
Vel xdot Rear left wheel velocity along the vehicle- Computed m/s
fixed x-axis
ydot Rear left wheel velocity along the vehicle- Computed m/s
fixed y-axis
Vel xdot Rear right wheel velocity along the vehicle- Computed m/s
fixed x-axis
ydot Rear right wheel velocity along the vehicle- Computed m/s
fixed y-axis
HitchF Disp x Front hitch offset from axle plane along the Input m
vehicle-fixed x-axis
Vel xdot Front hitch offset velocity along the vehicle- Computed m/s
fixed x-axis
ydot Front hitch offset velocity along the vehicle- Computed m/s
fixed y-axis
HitchR Disp x Rear hitch offset from axle plane along the Input m
vehicle-fixed x-axis
Vel xdot Rear hitch offset velocity along the vehicle- Computed m/s
fixed x-axis
ydot Rear hitch offset velocity along the vehicle- Computed m/s
fixed y-axis
Geom Disp x Trailer offset from axle plane along the Input m
vehicle-fixed x-axis
Vel xdot Trailer offset velocity along the vehicle- Computed m/s
fixed x-axis
Vy
β =
Vx
PwrFwFLx Longitudinal force applied at the front left axle power Computed W
PwrFwFLy Lateral force applied at the front left axle power Computed W
PwrFwFRx Longitudinal force applied at the front right axle power Computed W
PwrFwFRy Lateral force applied at the front right axle power Computed W
PwrFwMLx Longitudinal force applied at the middle left axle power Computed W
PwrFwMLy Lateral force applied at the middle left axle power Computed W
PwrFwMRx Longitudinal force applied at the middle right axle power Computed W
PwrFwMRy Lateral force applied at the middle right axle power Computed W
PwrFwRLx Longitudinal force applied at the rear left axle power Computed W
PwrFwRLy Lateral force applied at the rear left axle power Computed W
PwrFwRRx Longitudinal force applied at the rear right axle power Computed W
PwrFwRRy Lateral force applied at the rear right axle power Computed W
psi — Yaw
scalar
r — Yaw rate
scalar
Options
Dual 1-axle Trailer with a dual track and one axle. Forces act at the axle hard-point locations.
Dual 2-axle(default) Trailer with a dual track and two axles. Forces act at the axle hard-point locations.
Dual 3-axle Trailer with a dual track and three axles. Forces act at the axle hard-point locations.
Input Signals
off (default) | on
Longitudinal
Longitudinal distance from center of mass to front axle, a — Distance from CM to front axle
4 (default) | scalar
Longitudinal distance from center of mass to middle axle, b — Distance from CM to middle axle
4.5 (default) | scalar
Longitudinal distance from center of mass to rear axle, c — Distance from CM to rear axle
5 (default) | scalar
Vertical distance from center of mass to axle plane, h — Distance from CM to axle plane
2 (default) | scalar
Longitudinal distance from center of mass to front hitch, dh_f — Distance to front hitch
7.5 (default) | scalar
Vertical distance from front hitch to axle plane, hh_f — Distance from front hitch to axle plane
Longitudinal distance from center of mass to rear hitch, dh_r — Distance to front hitch
7.5 (default) | scalar
Vertical distance from front hitch to axle plane, hh_r — Distance from rear hitch to axle plane
0.6 (default) | scalar
Lateral
Lateral distance from geometric centerline to center of mass, d — Distance from centerline to CM
0 (default) | scalar
Lateral distance from the geometric centerline to the center of mass, d, in m, along the vehicle-fixed y. Positive values indicate that the trailer CM is to the right of the
geometric centerline. Negative values indicate that the trailer CM is to the left of the geometric centerline.
Lateral distance from geometric centerline to front hitch, hl_f — Distance from centerline to front hitch
0 (default) | scalar
Lateral distance from the geometric centerline to the front hitch, hl_f, in m, along the vehicle-fixed y. Positive values indicate that the trailer hitch is to the right of the
geometric centerline. Negative values indicate that the trailer hitch is to the left of the geometric centerline.
Dependencies
To enable this parameter, on the Input signals pane, select Front hitch forces or Front hitch moments.
Lateral distance from geometric centerline to rear hitch, hl_r — Distance from centerline to rear hitch
0 (default) | scalar
Lateral distance from the geometric centerline to the rear hitch, hl_r, in m, along the vehicle-fixed y. Positive values indicate that the trailer hitch is to the right of the
geometric centerline. Negative values indicate that the trailer hitch is to the left of the geometric centerline.
Dependencies
To enable this parameter, on the Input signals pane, select Rear hitch forces or Rear hitch moments.
Front axle tire corner stiffness, Cy_f — Front axle tire stiffness
12.3 (default) | scalar
Middle axle tire corner stiffness, Cy_m — Middle axle tire stiffness
11.3 (default) | scalar
Rear axle tire corner stiffness, Cy_r — Rear axle tire stiffness
11.3 (default) | scalar
Yaw
Aerodynamic
Environment
Simulation
Wrap Euler angles, wrapAng — Wrap the Euler angles to the interval [-pi, pi]
off (default) | on
References
[1] Gillespie, Thomas. Fundamentals of Vehicle Dynamics. Warrendale, PA: Society of Automotive Engineers (SAE), 1992.
Extended Capabilities
Version History
Introduced in R2020a
See Also
Vehicle Body 3DOF Three Axles | Vehicle Body 3DOF | Trailer Body 6DOF
Topics
Coordinate Systems in Vehicle Dynamics Blockset