# How can I implement the magic formula by Pacejka in Simscape Multibody between a wheel modeled as a disk and the ground modeled as a prismatic piece?

8 visualizzazioni (ultimi 30 giorni)
Mathlouthi Malek il 18 Mag 2023
Risposto: Steve Miller il 18 Giu 2023
How can I implement the magic formula by Pacejka in Simscape Multibody between a wheel modeled as a disk and the ground modeled as a prismatic piece?
How can I ensure the contact between the disk and the plane, that is, between the wheel and the ground, and where and how to implement the magic formula? I have no idea, I'm really stuck.
##### 3 CommentiMostra 1 commento meno recenteNascondi 1 commento meno recente
Mathlouthi Malek il 19 Mag 2023
Hi Lorenzo,
I have my model of a rolling wheel without slipping, and I want to implement it into my model,
Mathlouthi Malek il 19 Mag 2023
Here's another simple model that I want to implement using the Pacejka magic formula.

Accedi per commentare.

### Risposte (1)

Steve Miller il 18 Giu 2023
You can look at File Exchange submission Spatial Contact Force Examples Simscape Multibody to see an example of how to add a custom force law model to a Simscape Mutlibody model. You can use the Spatial Contact Force block to obtain quantities at the point of contact, such as positions and velocities, use those quantities to calculate the forces and torques according to the Magic Formula, and then apply those calculated forces to the block.
This is likely to be quite challenging. An example of the full implementation is shown on the File Exchange here: MFeval
We provide in our libraries a Magic Formula Tire Force and Torque block that does this for you, and it handles both longitudinal and lateral dynamics. For purely longitudinal studies, you could use the tire blocks in Simscape Driveline, such as Tire (Magic Formula)
--Steve
##### 0 CommentiMostra -2 commenti meno recentiNascondi -2 commenti meno recenti

Accedi per commentare.

### Categorie

Scopri di più su Contact Forces in Help Center e File Exchange

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by