The Dynamics Blog

Using a linear bicycle model in ADAMS and MATLAB

Build a single-track handling model in ADAMS, compare steering tests and stiffness changes, then use MATLAB and a steady-state calculation to check the response.

Original ADAMS baseline yaw-rate response. Negative steering begins at one second, the yaw-rate magnitude overshoots, then settles near 47.5 degrees per second.
From steering input to vehicle response. The baseline ADAMS yaw-rate trace shows the transient and the settled value. The negative sign follows the steering direction; the overshoot describes damping, rather than identifying understeer by itself.

A linear bicycle model lets us connect a steering input to tyre forces, yaw rate and the path of a car. Building it in ADAMS makes those relationships visible. A separate MATLAB implementation then gives us another way to check the equations and the response.

Our previous article explained the difference between linear and non-linear bicycle models. Here, we use our Nissan 370Z-based model to work through the development process: define the vehicle, calculate slip and force, change the handling balance, and examine controlled steering tests.

The simulations are handling demonstrations. They use estimated tyre stiffnesses and a linear force law without a grip limit. Some inputs deliberately produce large responses, so their absolute force and yaw values must not be treated as measured vehicle capability.

View the opening ADAMS yaw-rate plot at full size ↗

Define the vehicle before building the model

We replace the left and right wheels with one equivalent wheel at each axle. The model retains the wheelbase, centre-of-gravity position, mass and yaw inertia. These properties determine how the front and rear forces move and rotate the vehicle.

Baseline geometry and implemented stiffness values. Displayed values are rounded.
InputValueRole
Nominal vehicle massAbout 1,456 kgSets the lateral acceleration for a given net force.
Yaw inertia1,105.18 kg·m²Sets the yaw acceleration for a given moment.
CG to front axle, a1.1985 mFront lateral-force moment arm.
CG to rear axle, b1.3515 mRear lateral-force moment arm.
Wheelbase2.55 mThe sum of a and b.
Front coefficient, Cf1,350.67 N/degreeForce slope assigned to the equivalent front wheel.
Rear coefficient, Cr2,041.77 N/degreeForce slope assigned to the equivalent rear wheel.
Step-steer initial speed30 m/sNominal operating speed for the initial comparison.

The initial tyre sizes are 255/40R17 at the front and 295/35R17 at the rear. Their cornering stiffnesses were estimated from tyre dimensions, construction assumptions and available deflection information. They are modelling inputs, not direct lateral-force measurements.

The rear value above is the implemented ADAMS design-variable value. It also corresponds to the rear coefficient in the MATLAB formulation. Checking the values actually used by each implementation is essential before comparing their outputs.

Build the bodies, joints and reference frames in ADAMS

The model contains a chassis body and two equivalent wheel bodies. The chassis is constrained to move in the horizontal plane. The rear wheel is attached to the chassis without steering; the front connection allows the prescribed steering motion. The rear attachment does not prevent the whole vehicle from moving sideways.

ADAMS plan view with an equivalent front wheel, a chassis body, an equivalent rear wheel and local reference markersView full size ↗
The single-track geometry. The axle positions and centre of gravity set the force moment arms. The simple visible bodies represent the handling model.
ADAMS model tree showing chassis, front and rear wheel bodies, velocity reference markers, ground markers and three connectorsView full size ↗
The model structure. Bodies carry mass and inertia. Markers define positions and directions. Connectors constrain relative motion.

Markers at the chassis and wheel centres provide local coordinate systems. These matter because slip depends on velocity relative to the wheel’s heading. A global sideways velocity is not, by itself, the wheel’s lateral velocity once the car has turned.

We store speed, tyre coefficients and force parameters as design variables. This allows controlled changes without rebuilding the geometry. Measures record the chassis path, yaw rate and front and rear lateral forces.

Connect wheel motion to lateral force

At each wheel, ADAMS resolves the local forward and lateral velocities, vx and vy. Our expressions calculate a slip angle and multiply it by the selected cornering coefficient. In simplified notation, the implemented calculation is:

alpha_deg = ATAN(v_y / MAX(0.001, v_x)) * RTOD
F_y = C_alpha_deg * alpha_deg

RTOD converts radians to degrees, so the force coefficient uses N/degree. The force direction must be checked against the marker axes: its action must oppose the local lateral slip. The small denominator guard avoids division by zero in forward-running calculations; it does not make the model suitable for reverse or near-zero-speed motion.

These forces act at different distances from the centre of gravity. Their sum changes lateral motion, while their opposing yaw moments change the heading. As the chassis moves, the local wheel velocities change, which updates slip and force again.

The drive force is set to balance the model’s speed-dependent drag at the target speed. This is a force balance, not a prescribed speed constraint. Forward speed must therefore be monitored during steering.

There is also a useful distinction in the word linear. The ADAMS tyre law is linear in slip angle, but the slip calculation uses arctangent and the bodies retain multibody kinematics. The MATLAB reference uses small-angle vehicle equations. Their responses should be closest when these geometric differences are small.

Use step steer to examine the transient response

We first run the model straight, then apply a steering change. The ADAMS input is:

STEP(time, 1.0, 0.0d, 1.1, -10.0d)

The angle changes from 0° at 1.0 s to −10° at 1.1 s, then remains fixed. ADAMS uses a smooth transition over that interval. It is therefore a step-steer test with a finite rise time, rather than an instantaneous discontinuity.

The opening yaw-rate plot shows a peak magnitude of about 61°/s before settling near 47.47°/s. The negative sign follows the chosen steering direction. The overshoot and subsequent settling identify an underdamped response for this run.

ADAMS front and rear lateral forces after steering starts at one second. Both show a transient response and settle at magnitudes of roughly nineteen and seventeen kilonewtons.View full size ↗
Read the forces alongside yaw. The front force changes first, and the rear responds as the vehicle motion develops. Both approach steady values once the initial transient has decayed.
ADAMS centre-of-mass trace changing from a straight approach into a circular path after the steering inputView full size ↗
Connect the signals to the path. After the transient, sustained steering produces a steady circular trajectory in this simulation.

The path is a useful visual check, but it cannot explain the response alone. The force histories show how the axle contributions develop; yaw rate shows how quickly the chassis rotates.

Nor does the overshoot prove understeer. Damping describes the transient. We establish the intended steering balance from the front and rear stiffnesses and their moment arms.

Change rear stiffness to compare handling balance

To study the effect of balance, we keep the axle positions and front coefficient fixed and change the rear coefficient. A useful indicator for this linear formulation is:

Stiffness-balance indicators = (Cfa − Crb) / (Cf + Cr)

For this definition, s < 0 indicates understeer, s = 0 neutral steer, and s > 0 oversteer. The quantity has units of length. The neutral condition follows directly from Cfa = Crb.

Three intended stiffness balances with a 10° steering-input magnitude. Yaw values are recorded ADAMS steady magnitudes; gains are calculated by dividing by 10°.
CaseRear coefficient
(N/degree)
s
(m)
Yaw rate
(°/s)
Yaw-rate gain
(s⁻¹)
Understeer2,041.77−0.33647.474.747
Neutral steer1,197.76Approximately 0134.6513.465
Oversteer1,184.16+0.0073143.6014.360

The oversteer-labelled setup uses an estimated rear coefficient associated with a 225/45R17 tyre. The neutral coefficient is set directly to satisfy the balance equation. This is a parameter study; it does not establish that tyre width alone determines the handling of the physical car.

ADAMS neutral-balance case with yaw-rate magnitude increasing progressively towards about 135 degrees per secondView full size ↗
Neutral stiffness balance. This run approaches a much larger steady yaw-rate magnitude than the baseline. Neutral steer is a steady balance condition, not a definition of damping.
ADAMS reduced-rear-stiffness case with yaw-rate magnitude increasing towards about 144 degrees per second without the baseline overshootView full size ↗
Further reduced rear stiffness. The steady yaw-rate magnitude increases again. This particular response settles progressively; that shape is not a universal property of oversteer.
Compare the neutral and oversteer path traces
ADAMS centre-of-mass path for the neutral-stiffness caseView full size ↗
Neutral-stiffness case. The path changes as the transient settles.
ADAMS centre-of-mass path for the reduced-rear-stiffness oversteer caseView full size ↗
Oversteer-stiffness case. The separate screenshots do not share a displayed length scale.

These large-input results show why the model’s range matters. A linear tyre law continues to add force as slip grows. It cannot impose a real grip limit. The case names describe the chosen stiffness balance; the high yaw rates are not evidence of achievable tyre performance.

Use ramp and circular tests to ask different questions

A step input exposes the response to a rapid change. A ramp instead increases the demand throughout the run. Here, the ramp tests start at 10 m/s, with steering increasing in magnitude at 5°/s.

ADAMS baseline ramp-steer yaw-rate magnitude increasing throughout a ten-second simulationView full size ↗
The demand keeps changing. Yaw rate does not settle to one final level while steering continues to increase. A ramp also contains transient effects unless it is slow enough for near-steady response.
See the ramp-steer forces and path
ADAMS baseline ramp-steer front and rear force histories, with both magnitudes increasing and the front increasing moreView full size ↗
Front and rear force histories. The original vertical-axis label reads “No Units”; these are the model’s lateral-force variables, intended in newtons.
ADAMS baseline ramp-steer trajectory tightening as steering demand increasesView full size ↗
The tightening trajectory connects increasing steering demand to the changing motion.

At this ramp rate, steer becomes large within a few seconds. The later response explores the implementation beyond a small-angle handling approximation. It should not be used to establish a linear operating range or real tyre saturation.

We also run steady circular manoeuvres at a nominal 10 m/s for 60 seconds. Once the initial motion settles, the force and yaw histories become approximately constant.

Recorded steady circular-path radii for the three stiffness cases.
CaseRadius (m)
Understeer33.95
Neutral steer29.15
Oversteer29.03
ADAMS baseline yaw rate settling near minus seventeen degrees per second and remaining steady over a sixty-second circular runView full size ↗
A steady operating point. Sustained yaw rate is consistent with a circular trajectory. The long time axis makes the initial transient appear short.

The larger baseline radius and the closer neutral and oversteer radii show how the selected stiffness changes affect these runs. However, different radii at one nominal speed are not a constant-radius speed sweep. To measure an understeer gradient, we must hold the same radius, vary speed and record the steering required at each settled condition.

Check the ADAMS response with MATLAB

The final check uses a different implementation. ADAMS assembles motion from bodies, joints and applied forces. Our MATLAB model writes the lateral and yaw equations directly as a two-state system:

Vehicle states and their rates of changex = [vy, r]T
dx/dt = Ax + Bδ

One function builds the state and output matrices from mass, yaw inertia, axle positions, speed and stiffness. A second script applies the steering input, integrates the states and calculates slip angles and lateral forces. Separating these tasks makes the equations and the test conditions easier to inspect.

The reference script uses 30 m/s, a 0.01 s Euler integration step and a 3 s run. Its front and rear coefficients are 77,387.6 and 116,985.1 N/rad. These correspond to the ADAMS values after multiplication by 180/π. Its mass is 1,456.11 kg; the nominal ADAMS input list is 1,456.93 kg. A strict comparison should make even this small difference explicit.

Align the comparison before judging the result

ADAMS applies negative steer from 1.0 to 1.1 s. The MATLAB script applies positive 10° steer from its first time sample. We must reverse the relevant signs, convert yaw rate from radians per second to degrees per second, and align time to the steering event. For a transient error calculation, we must also give both models the same input rise time.

Original MATLAB yaw-rate response to positive ten-degree step steer, with an overshoot near 1.12 radians per second and a settled value near 0.84 radians per secondView full size ↗
Compare with the opening ADAMS plot. Both show yaw-rate overshoot followed by settling. The units, sign, time origin and steering rise time differ, so the raw traces should not be overlaid without adjustment.
Original MATLAB front and rear lateral-force histories settling near 19.4 and 17.2 kilonewtons, with an immediate front force at the ideal steering stepView full size ↗
The force response gives a second check. The ideal MATLAB step produces an immediate front force through the steering term. The rear force starts from zero and develops with the vehicle states. This initial difference from a smoothed ADAMS input is expected.

We can also check the settled solution without time integration. At steady state, the derivatives are zero, so we solve Ax + Bδ = 0. Using the MATLAB coefficients gives r = 0.8364 rad/s, or 47.92°/s, with front and rear force magnitudes of 19.36 and 17.17 kN.

Settled response magnitudes. The second column uses recorded ADAMS output; the third is calculated directly from the MATLAB model equations.
QuantityADAMSState-space steady solution
Yaw rate47.47°/s47.92°/s
Front forceAbout 19 kN, read from the plot19.36 kN
Rear forceAbout 17 kN, read from the plot17.17 kN

The settled yaw values differ by about 1%, while the force levels and main transient features are similar. This supports consistency between the implementations for this baseline. It is not a quantified match of the complete time histories: the raw ADAMS signals have not been used here to calculate transient errors.

What multiple methods can confirm

The comparison can expose an incorrect force direction, a missing moment arm, a degree/radian error or an integration problem. The steady algebraic solution checks the settled state independently of the time-stepping method. Reducing the Euler time step is a further numerical check that should precede a claim of converged transient accuracy.

There are also limits to the agreement. The two implementations share the same estimated tyre properties. ADAMS retains geometric effects and can vary in speed, while the state-space calculation fixes forward speed and linearises the motion. These differences must be controlled before assigning a mismatch to a coding error.

For this large steering input, the steady state-space solution gives front and rear slip magnitudes of about 14.3° and 8.4°. It implies about 2.56 g lateral acceleration. These are mathematical outputs of the assumed linear law, not verified grip predictions. The agreement shows that similar assumptions can produce similar answers even outside their physical range.

This is the distinction between verification and validation. ADAMS, MATLAB and a steady-state calculation help us check that the model has been implemented consistently. Independent tyre data and vehicle measurements are needed to establish whether it represents the real car. Used together, these methods give us a clearer basis for developing the model and deciding which results can support a setup decision.

Our non-linear bicycle-model follow-up replaces the linear tyre law with a spline, examines the resulting ADAMS response and develops the method for a MATLAB comparison.

Figures and calculation notes

The ADAMS and MATLAB images are the original model-development figures. Their axes and annotations are retained. The stiffness-balance indicators, yaw-rate gains and steady-state checks were recalculated from the stated inputs; they are not new ADAMS or MATLAB runs.

The matrix check uses m = 1,456.11 kg, Iz = 1,105.18 kg·m², a = 1.1985 m, b = 1.3515 m, u = 30 m/s, Cf = 77,387.6 N/rad and Cr = 116,985.1 N/rad. Positive steer is 10°. Lateral acceleration is evaluated as ur at the settled state, with g = 9.80665 m/s².

Back to The Dynamics Blog