Two-axle vehicle body with translational and rotational motion.
blockType: SubSystem
Path in the library:
/Automotive/Vehicle Body/Vehicle body 6DOF
Description
Block Vehicle body 6DOF Implements a model of a rigid two-axle vehicle body (TC) with six degrees of freedom for calculating longitudinal, transverse, vertical motion, as well as pitch, roll, and yaw motion. The unit takes into account body weight, inertia, aerodynamic drag, road slope and weight distribution between the axles due to suspension and external forces and moments. Use the options on the tab Inertial Loads to analyze vehicle dynamics under various load conditions.
The unit can be connected to virtual sensors, a suspension system, or external systems such as body control drives. Use the block Vehicle body 6DOF in the study of smooth running and handling to simulate the effects of drag forces, passenger loads, and the location of suspension attachment points.
To use additional input ports, in the parameter group Input signals check the following boxes:
Hitch forces — opens the Fh port associated with the coupling force acting on the body in the vehicle’s frame of reference;
Hitch moments — opens the Mh port associated with the clutch moment in the vehicle’s reference frame.
Inertial loads
To analyze vehicle dynamics under different load conditions, use the parameters in the tab Inertial Loads. In particular, you can set the following loads
Front transmission;
Front and back row passengers;
Cargo of the upper part of the body;
The cargo of the luggage section.
For each of the loads, you can specify the mass, position, and inertia.
The illustrations show the locations of the loads and the dimensions of the vehicle (TS). The table shows the corresponding settings for the position parameter sign.
The illustration shows:
— the transverse distance from the center of mass (CM) to the coupling device along the axis in the reference frame of the vehicle;
— the longitudinal distance from the coupling device to the point of normal projection of the tractor’s center of gravity onto the common axis plane;
— the height of the coupling device above the plane of the axis along the axis in the reference frame of the vehicle;
— the height of the center of mass of the vehicle above the plane of the axis;
— the distance of the front and rear wheels, respectively, from the point of normal projection of the center of mass of the vehicle onto the common plane of the axis.
This table shows the parameter settings that determine the location of the loads indicated by the dots. To determine the position, the block uses the following distance vector:
The attachment point of the front suspension for loading along a fixed axis vehicle (vehicle);
TC centerline for loading along a fixed axis VEHICLE;
The attachment point of the front suspension for loading along a fixed axis The vehicle.
Load
Parameter
Example of the location
At the front
Distance vector from front axle [z1R], m
z1R[1,1]<0 — ahead of the front axle
z1R[1,2]>0 — to the right of the VEHICLE centerline
z1R[1,3]>0 — above the mounting point of the front axle suspension
From above
Distance vector from front axle [z2R], m
z2R[1,1]>0 — behind the front axle
z2R[1,2]<0 — to the left of the VEHICLE centerline
z2R[1,3]>0 — above the mounting point of the front axle suspension
Front row on the left
Distance vector from front axle [z3R], m
z3R[1,1]>0 — behind the front axle
z3R[1,2]<0 — to the left of the VEHICLE centerline
z3R[1,3]>0 — above the mounting point of the front axle suspension
Front row on the right
Distance vector from front axle [z4R], m
z4R[1,1]>0 — behind the front axle
z4R[1,2]>0 — to the right of the VEHICLE centerline
z4R[1,3]>0 — above the mounting point of the front axle suspension
Back row on the left
Distance vector from front axle [z5R], m
z5R[1,1]>0 — behind the front axle
z5R[1,2]<0 — to the left of the VEHICLE centerline
z5R[1,3]>0 — above the mounting point of the front axle suspension
Back row on the right
Distance vector from front axle [z6R], m
z6R[1,1]>0 — behind the front axle
z6R[1,2]>0 — to the right of the VEHICLE centerline
z6R[1,3]>0 — above the mounting point of the front axle suspension
From behind
Distance vector from front axle [z7R], m
z7R[1,1]>0 — behind the front axle
z7R[1,2]>0 — to the right of the VEHICLE centerline
z7R[1,3]>0 — above the mounting point of the front axle suspension
Equations of motion
To determine the movement of a vehicle, the unit performs calculations of vehicle dynamics as a solid, air resistance, inertial loads, and coordinate transformations. The associated coordinate system of the body axes and the coordinate system of the vehicle are the same.
Block Vehicle body 6DOF It takes into account the rotation of the associated coordinate system around the inertial reference frame relative to the flat earth. The origin of the associated coordinate system is the center of gravity of the vehicle body.
The illustration shows:
— the height of the center of mass of the vehicle above the plane of the axis;
— the distance of the front and rear wheels, respectively, from the point of normal projection of the center of mass of the vehicle on the common plane of the axis.
The block uses the following equation to calculate the translational motion of the associated coordinate system, where the applied forces are are in a related coordinate system, and the mass of the body is it is considered permanent:
where — moments of inertia of the vehicle body.
To determine the relationship between the angular velocity vector associated with the body, and the rate of change of the Euler angles , the block converts the Euler velocities into a related coordinate system:
Here
— the angle of rotation of the vehicle coordinate system around the axis , stationary relative to the ground (roll);
— the angle of rotation of the vehicle coordinate system around the axis , stationary relative to the ground (pitch);
— the angle of rotation of the vehicle coordinate system around the axis , stationary relative to the ground (yaw).
Reverse conversion gives the necessary relation to determine the Euler velocity vector:
The applied forces and moments are the sum of the forces of resistance, gravity, external forces, and suspension forces.:
where
— the resistance forces applied to the center of mass of the vehicle along the axes and in the reference frame of the vehicle body;
— the gravitational forces applied to the center of mass of the vehicle along the axes and in the reference frame of the vehicle body;
— external forces applied to the center of mass of the vehicle along the axes and in the reference frame of the vehicle body;
— suspension forces applied to the front left suspension attachment point along the axes and in the reference frame of the vehicle body;
— suspension forces applied to the front right suspension attachment point along the axes and in the reference frame of the vehicle body;
— suspension forces applied to the rear left suspension attachment point along the axes and in the reference frame of the vehicle body;
— suspension forces applied to the rear right suspension attachment point along the axes and in the reference frame of the vehicle body;
— suspension moments applied to the center of mass of the vehicle along the axes and in the reference frame of the vehicle body;
— the moments of the drag force applied to the center of mass of the vehicle along the axes and in the reference frame of the vehicle body;
— external moments applied to the center of mass of the vehicle along the axes and in the reference frame of the vehicle body.
Masses and moments of inertia of loads
The block uses the Huygens—Steiner theorem to calculate individual masses and moments of inertia of loads, taking into account the mass and moment of inertia of the vehicle:
Gravitational forces
The block uses a matrix of guiding cosines to transform the gravity vector in an inertially fixed frame of reference to a connected system.
powers and moments of resistance
To determine the relative velocity of the air flow, the unit subtracts the wind speed from the velocity of the vehicle’s center of mass. Using the relative velocity of the air flow, the unit determines the resistance forces :
where
— displacement of the center of mass, velocity and acceleration of the vehicle along the axis in the reference frame of the vehicle;
— displacement of the center of mass, velocity and acceleration of the vehicle along the axis in the reference frame of the vehicle;
— displacement of the center of mass, velocity and acceleration of the vehicle along the axis in the reference frame of the vehicle;
— wind speed along the axes and in the reference frame of the vehicle;
— ambient air temperature;
— specific gas constant of the atmosphere;
— coefficients of aerodynamic drag acting along the axes in the reference frame of TC , respectively;
— frontal surface area;
— absolute ambient pressure.
Using the relative velocity of the air flow, the unit determines the moments of resistance :
where
— the moment of air resistance during roll, pitch, yaw, respectively, relative to the axes in the reference frame of TC , respectively;
— the distance of the front and rear wheels, respectively, from the point of normal projection of the center of mass of the vehicle on the common plane of the axis.
External forces and moments_
External forces and the moments they are entered via ports FExt and MExt.
_ Strengths and moments of suspension_
The block assumes that the suspension forces and moments act on the following attachment points:
The longitudinal, transverse and vertical suspension forces applied to the vehicle at the attachment point, measured in N. The signal dimension is 3×4:
Array element
The axis
Wheel
The axis of power
Fsusp[1,1]
The front
The left one
The axis in the reference frame of the vehicle (longitudinal)
Fsusp[1,2]
The front
The right one
Fsusp[1,3]
The back
The left one
Fsusp[1,4]
The back
The right one
Fsusp[2,1]
The front
The left one
The axis in the TC (transverse) frame of reference
The longitudinal, transverse and vertical suspension torques applied to the vehicle at the attachment point, measured in nm. The signal dimension is 3×4:
Array element
The axis
Wheel
The axis of the moment
Msusp[1,1]
The front
The left one
The axis in the reference frame of the vehicle (longitudinal)
Msusp[1,2]
The front
The right one
Msusp[1,3]
The back
The left one
Msusp[1,4]
The back
The right one
Msusp[2,1]
The front
The left one
The axis in the TC (transverse) frame of reference
the tension force of the coupling device on the body
+
array
Details
The tension force of the coupling device applied to the body at the attachment point of the coupling device, , in the vehicle reference frame, measured in H, specified as an array of size 1×3 or 3×1.
Dependencies
To use this port, in the parameter group Input signals check the box Hitch forces.
the angular velocity of the vehicle relative to the reference frame associated with the vehicle
+
vector
Details
Angular velocity of the vehicle’s center of mass relative to the axes (roll speed), (pitch velocity) and (yaw velocity), stationary relative to the vehicle, measured in rad/s, returned as a vector.
the position of the vehicle in the inertial reference frame
+
vector
Details
The position of the center of mass of the vehicle stationary relative to the inertial coordinate system of the axes and , measured in meters, returned as a vector.
The velocity of the vehicle’s center of mass along axes that are stationary relative to the inertial coordinate system and , measured in m/s, returned as a vector.
#Longitudinal distance from center of mass to front axle a, m —
distance
Details
Distance from the center of mass of the vehicle to the front axle, measured in meters.
Default value
1.4
Program usage name
a
Tunable
No
Evaluatable
Yes
#Longitudinal distance from center of mass to rear axle b, m —
distance
Details
Distance from the center of mass of the vehicle to the front axle, measured in meters.
Default value
1.6
Program usage name
b
Tunable
No
Evaluatable
Yes
#Lateral distance from geometric centerline to center of mass d, m —
distance
Details
Transverse distance from the geometric centerline to the center of mass, measured in meters, along an axis stationary relative to the vehicle . Positive values indicate that the vehicle’s center of mass is to the right of the geometric centerline. Negative values indicate that the center of mass of the vehicle is to the left of the geometric centerline.
Default value
0.0
Program usage name
d
Tunable
No
Evaluatable
Yes
#Vertical distance from center of mass to axle plane, h [m]: —
distance
Details
Vertical distance from the center of mass of the vehicle to the plane of the axis, measured in meters.
Default value
0.35
Program usage name
h
Tunable
No
Evaluatable
Yes
#Longitudinal distance from center of mass to hitch dh, m —
distance
Details
The longitudinal distance from the center of mass to the coupling device, measured in meters.
Dependencies
To use this parameter, in the parameter group Input signals check the box Hitch forces or Hitch moments.
Default value
1.0
Program usage name
dh
Tunable
No
Evaluatable
Yes
#Lateral distance from geometric centerline to hitch hl, m —
distance
Details
Transverse distance from the center of mass to the coupling device, measured in meters.
Dependencies
To use this parameter, in the parameter group Input signals check the box Hitch forces or Hitch moments.
Default value
0.0
Program usage name
hl
Tunable
No
Evaluatable
Yes
#Vertical distance from hitch to axle plane hh, m —
distance
Details
Vertical distance from the coupling device to the axis plane, measured in meters.
Dependencies
To use this parameter, in the parameter group Input signals check the box Hitch forces or Hitch moments.
Default value
0.1
Program usage name
hh
Tunable
No
Evaluatable
Yes
#Initial position in inertial frame Xe_o = [Xeo, Yeo, Zeo], m —
starting position
Details
Starting position vehicle in an inertial reference frame, measured in meters.
Default value
[0.0, 0.0, 0.0]
Program usage name
Xe_o
Tunable
No
Evaluatable
Yes
#Initial velocity in body axes xbdot_o = [xdot_o, ydot_0, xdot_o], m/s —
initial velocity
Details
The initial velocity of the vehicle’s center of mass along the axes and , stationary relative to the vehicle, measured in m/s.
The initial rotation of the Eulerian coordinate system associated with the vehicle around the axes (roll), (pitch) and (yaw) stationary relative to the Ground, measured in radians.
Default value
[0.0, 0.0, 0.0]
Program usage name
eul_o
Tunable
No
Evaluatable
Yes
#Initial body rotation rates p_0 = [p, q, r], rad/s —
initial rotation speed
Details
The initial angular velocity of the vehicle’s center of mass around the axes (roll speed), (pitch velocity) and (yaw velocity), stationary relative to the vehicle, measured in rad/s.
#Longitudinal velocity tolerance xdot_tol, m/s —
allowance
Details
Longitudinal speed tolerance , measured in m/s .
The unit uses this parameter to avoid division by zero when calculating the sliding angle of the body. .
Default value
0.1
Program usage name
xdot_tol
Tunable
No
Evaluatable
Yes
#Geometric longitudinal offset from axle pane longOff, m —
longitudinal displacement
Details
Displacement of the vehicle chassis relative to the axis plane along the axis , stationary relative to the body, measured in meters. When using the 3D visualization mechanism, it is recommended to use this offset to position the chassis regardless of the vehicle’s center of gravity.
Default value
0.0
Program usage name
longOff
Tunable
No
Evaluatable
Yes
#Geometric lateral offset from axle plane latOff, m —
lateral displacement
Details
Displacement of the vehicle chassis from the central plane along the axis , stationary relative to the body, measured in meters. When using the 3D visualization mechanism, it is recommended to use this offset to position the chassis regardless of the vehicle’s center of gravity.
Default value
0.0
Program usage name
latOff
Tunable
No
Evaluatable
Yes
#Geometric vertical offset from axle plane vertOff, m —
vertical displacement
Details
Displacement of the vehicle chassis relative to the axis plane along the axis , stationary relative to the body, measured in meters. When using the 3D visualization mechanism, it is recommended to use this offset to position the chassis regardless of the vehicle’s center of gravity.
Default value
0.0
Program usage name
vertOff
Tunable
No
Evaluatable
Yes
#Wrap Euler angles, wrapAng —
the ability to limit Euler angles
Details
The ability to limit the Euler angles to an interval [−π, π]. For vehicle maneuvers that may involve yaw axis turns beyond this range, it is recommended to uncheck this box if you want to:
Track the full rotation angle of the vehicle along the yaw axis.