Magic Formula
$$F_y = D\sin\!\bigl(C\arctan(B\alpha - E(B\alpha - \arctan(B\alpha)))\bigr)$$D = µ·Fz, B=stiffness, C=shape, E=curvature
Adjust slip angle, vertical load, and friction coefficient to visualize lateral force, longitudinal force, and the friction circle in real time. Understand cornering stiffness and grip limits intuitively.
D = µ·Fz, B=stiffness, C=shape, E=curvature
The core of the simulator is the Pacejka Magic Formula, which calculates the lateral force $F_y$ generated by a tire as a function of its slip angle $\alpha$.
$$F_y = D\sin\!\bigl(C\arctan(B\alpha - E(B\alpha - \arctan(B\alpha)))\bigr)$$Where:
• $F_y$ = Lateral (cornering) force [N]
• $\alpha$ = Slip angle [rad]
• $D$ = Peak factor = $\mu \cdot F_z$
• $B$ = Stiffness factor (controls the slope at $\alpha=0$)
• $C$ = Shape factor (typically ~1.3-1.6 for lateral force)
• $E$ = Curvature factor (influences the shape near the peak)
The friction circle concept is governed by the vector sum of lateral and longitudinal forces, limited by the maximum available friction force.
$$\sqrt{F_x^2 + F_y^2} \leq \mu F_z$$Where:
• $F_x$ = Longitudinal force (from braking or acceleration) [N]
• $F_y$ = Lateral force [N]
• $\mu$ = Friction coefficient between tire and road
• $F_z$ = Vertical load on the tire [N]
This inequality means the combined force vector must stay inside a circle of radius $\mu F_z$. This is why a tire cannot brake hard and corner hard at the exact same time.
Vehicle Dynamics Simulation (CAE): This is the primary use. Automotive engineers embed the Magic Formula in software like Adams/Car or Simulink to predict how a vehicle will handle, brake, and accelerate long before a physical prototype is built. They tune the B, C, E parameters to match test data from specific tires.
Racing Telemetry Analysis: Race engineers use the friction circle plot to analyze driver performance. By plotting lateral vs. longitudinal g-forces from onboard sensors, they can see if a driver is using the tire's grip optimally through a corner or if they are "over-driving" and asking for more force than the tire can provide.
Advanced Driver-Assistance Systems (ADAS): Systems like Electronic Stability Control (ESC) need to know the tire's force limits to prevent skids. The controller estimates the available $\mu F_z$ based on conditions and uses a simplified version of the friction circle model to decide how to apply braking to individual wheels to keep the car stable.
Tire Design and Testing: Tire manufacturers perform thousands of tests on tire test rigs to measure force vs. slip angle curves. They then fit the Magic Formula to this data, creating a "tire model" that can be shared with car manufacturers for their simulations, allowing for collaborative development between tire and vehicle engineers.
First, avoid assuming "the Magic Formula parameters are fixed constants specific to a tire." In reality, particularly D (peak factor) and B (stiffness factor) are strongly dependent on the vertical load Fz. For example, if the load doubles, the maximum lateral force D nearly doubles, but the cornering stiffness (initial slope) increases by more than double. Overlooking this nonlinearity will lead to significant errors in simulations of sporty driving with heavy load transfer. Use the tool's Fz slider to see how the shape of the graph itself changes.
Next, the misconception that "the friction circle is a perfect circle." A real tire's friction limit is not perfectly symmetric between longitudinal and lateral forces; it often resembles an ellipse. This stems from the tire's tread characteristics. While the Magic Formula itself has models that consider combined slip (simultaneous longitudinal and lateral slip), the circle shown in this tool is an idealization to help you understand the concept of a "combined force limit." In practice, more sophisticated combined slip models are necessary.
Finally, pitfalls when adjusting parameters. The four parameters B, C, D, and E interfere with each other. For instance, if you arbitrarily increase the D value just to raise the maximum lateral force, the initial slope of the graph (the effective cornering stiffness) will also change. To achieve the target characteristics, you need expertise such as using dedicated software for fitting experimental data or adjusting B and D in conjunction. Manually creating a "plausible curve" is good for learning but insufficient for replicating real vehicle data.
The calculations in this simulator form the core of Vehicle Dynamics. The tire forces obtained here are incorporated into "two-wheel" or "four-wheel" vehicle models, directly leading to predictions of overall vehicle behavior like steering response and stability limits (spin, plow). For example, if the initial slope of lateral force versus slip angle differs between the front and rear axles, it manifests as understeer characteristics.
Furthermore, integration with Control Engineering is crucial. Beyond the aforementioned ESC (Electronic Stability Control), the Magic Formula model is also used as foundational data for algorithms in state-of-the-art torque vectoring utilizing motor control, which constantly estimates each tire's friction margin (distance from the center of the friction circle to the current force point) to optimally distribute drive and brake forces across all four wheels. The tire model is the core of the "object to be controlled" in a vehicle.
It also couples with Suspension Geometry. While camber angle acts on the tire, suspension movement changes camber and toe angles, which add to the tire's slip angle. For higher-fidelity simulations, extended versions of the Magic Formula that include camber angle are used, analyzing the loop between suspension movement and tire forces. This is essential for analyzing rally cars after landing a jump or the roll attitude during cornering.
First, I recommend experiencing the flow from "tire to vehicle dynamics." Once you understand the standalone tire characteristics with this tool, try integrating this tire model into simple vehicle models like a "two-wheel bicycle model" or "steady-state cornering for a four-wheel vehicle." Calculating how a vehicle turns based on steering input using a spreadsheet or Python will make it tangible how tire characteristics affect vehicle behavior.
Regarding the mathematical background, learning about parameter fitting for nonlinear functionsLevenberg-Marquardt method, a type of least squares. Learning this process will help you intuitively grasp which parts of the graph each parameter B, C, D, and E sensitively controls.
The next recommended topics are "Combined Slip Models" and "Transient Characteristics (Relaxation Length)." Real vehicles experience longitudinal and lateral slip simultaneously, and tire forces do not develop instantaneously with steering input; they settle to a steady-state value only after traveling a "relaxation length" of several centimeters to tens of centimeters. Dynamic tire models incorporating these effects are key for more realistic driving simulators and high-precision control development. First, make this foundational Pacejka Magic Formula your own.