three-凯发k8网页登录
this example shows how to simulate a three-axle tractor towing a three-axle trailer for a commercial trucking application. the model implements a hitch subsystem, a sinusoidal steering or braking test, and an axle torque applied to the rear wheels of the tractor.
by default, the model implements the sinusoidal steering test. to implement the braking test, click the toggle between sine steer and braking button. use the braking test to assess the ability of the service braking control system to stop the commercial truck at .5 g deceleration without activating the abs (anti-lock braking system). see braking test.
to view the simulation in the 3d visualization environment, use the vehicle monitor 3d variant. right-click the vehicle monitor block and select variant > label mode active choice > vehicle monitor 3d. see run simulation in 3d visualization environment.
to implement the tractor and trailer, by default, the three dof model uses the vehicle body 3dof and trailer body 3dof blocks. click the toggle between 3dof and 6dof button to configure a six dof model that uses the vehicle body 6 dof block, trailer body 6dof block, and a 6dof hitch subsystem. see six degrees-of-freedom model.
model
run simulation
on the simulation tab, click run. as the simulation runs, the vehicle position window provides the trace of the tractor and trailer.
three-axle tractor subsystem
to steer and drive the tractor, the three-axle tractor subsystem uses a sinusoidal wave steering input and an axle torque applied to the rear wheels. the subsystem includes models for the wheels, suspension, and vehicle body.
three-axle trailer subsystem
the three-axle trailer subsystem includes models for the wheels, suspension, and the trailer body.
hitch subsystem
when you select the three dof model variant, the hitch model allows relative longitudinal, lateral, and yaw motion between the tractor and trailer. to limit the longitudinal and lateral motion, the hitch model implements a stiff translational spring-damper in the xy plane of the vehicle-fixed reference frame. the resulting spring-damper forces approximately limits the relative motion between the tractor and trailer to yaw rotation about a vertical axis at the hitch connection point. the hitch model transfers the vertical hitch force from the trailer to the tractor.
when you select the six dof model variant, the hitch model allows relative longitudinal, lateral, vertical, and yaw motion between the tractor and trailer. the hitch model implements another translational spring-damper along the z -axis of the vehicle-fixed reference frame. the effects of hitch moments due to the relative rotations of the hitches are considered negligible.
spring forces are linear functions of the planar distance from the tractor hitch location to the first trailer front hitch location in the inertial reference frame.
damper forces are linear functions of the planar velocity from the tractor hitch location to the first trailer front hitch location in the inertial reference frame.
braking test
to implement the braking test, click toggle between sine steer and braking. the model switches the axle torque block to indicate a braking test. the abs block turns red to indicate abs control.
then, on the simulation tab, click run. the scope block shows plots of the tractor acceleration and velocity, and tractor and trailer brake pressure.
to view the simulation in the 3d visualization environment, use the vehicle monitor 3d variant.
run simulation in 3d visualization environment
in the vehicle monitor subsystem, use the vehicle monitor 3d variant to visualize the tractor and trailer in the 3d simulation environment.
right-click the vehicle monitor block and select variant > label mode active choice > vehicle monitor 3d.
2. click run. in the autovrtlenv
window, view the tractor and trailer in the 3d visualization environment. you can use the key numbers to change camera views of the tractor and trailer. for example, press 7 for a front left camera view.
six degrees-of-freedom model
to implement a 6 dof tractor, trailer, and hitch model, click toggle between 3dof and 6dof. then, on the simulation tab, click run.
to view the simulation in the 3d visualization environment, use the vehicle monitor 3d variant.
see also
| | |