GithubHelp home page GithubHelp logo

briann92 / pacejka-tire-model Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 44 KB

Estimating nonlinear behaviors of the vehicle tires using the Pacejka tire model.

License: Apache License 2.0

Python 100.00%
magic-formula pacejka tire-dynamics

pacejka-tire-model's Introduction

Tire Dynamics Repository

This repository contains scripts and data related to tire dynamics and vehicle configuration, utilizing the Pacejka Magic Formula for tire modeling.

Structure

The repository includes the following key components:

  • tire_data/: A directory containing tire-related data and configurations.
    • TIR_files/: Stores .TIR tire files which contain tire model parameters.
    • config/: Contains vehicle configuration parameters.
    • yamls/: Saves tire parameters in YAML format, converted from .TIR files using the readTIR.py script.
  • MagicFormula.py: Script for computing the complete Pacejka tire model.
  • MF_lateral.py: A lite version of the script that computes only the lateral dynamics of vehicle tires.
  • normalForce.py: Calculates the normal force on the tire.
  • test_lateral.py: Provides test cases for users to try out the MagicFormula and MF_lateral scripts.

How to Use

To convert .TIR tire files into YAML format and compute various tire dynamics, follow these steps:

  1. Place your .TIR tire files into the tire_data/TIR_files/ directory.

  2. Run readTIR.py from the command line, specifying the filename of the .TIR file you want to convert, along with optional arguments for the data and save paths if you're not using the default directories. For example:

    python readTIR.py -f example

    If your .TIR files are located in a different directory or you wish to save the YAML files to a different location, you can specify these paths with the --data_path and --save_path arguments, respectively:

    python readTIR.py example.tir --data_path '/path/to/TIR_files/' --save_path '/path/to/yamls/'

    Replace /path/to/TIR_files/ and /path/to/yamls/ with the actual paths where your .TIR files are stored and where you want to save the YAML files, respectively.

  3. Use MagicFormula.py to calculate the complete tire model dynamics, or MF_lateral.py for only lateral dynamics.

  4. The normalForce.py script can be used to determine the normal force on a given tire.

  5. To test and understand the implementation, run the test_lateral.py script, specifying the model you wish to test. You can select between the complete tire model and the lateral tire model using the -m argument:

    • For the lateral tire model, use:

      python test_lateral.py -m lateral
    • For the complete tire model, use:

      python test_lateral.py -m MF

References

This project draws upon the foundational works in tire and vehicle dynamics. For further reading and a deeper understanding of the concepts implemented, the following texts are highly recommended:

  1. Tire and Vehicle Dynamics by Hans Pacejka (2005, Elsevier). This book provides an in-depth exploration of tire behavior and its impact on vehicle dynamics, offering insights into the models and theories that are central to the field.

  2. Vehicle Dynamics and Control by Rajesh Rajamani (2011, Springer Science & Business Media). Rajamani's work delves into the principles of vehicle dynamics, control systems, and their applications in real-world scenarios, making it a valuable resource for anyone interested in the control aspect of vehicle dynamics.

These references serve as essential resources for understanding the complex interactions between tires and vehicle dynamics, and they underpin much of the theoretical framework utilized in this project.

Contribution

Feel free to fork this repository and submit pull requests to contribute to the development of tire dynamics models.

License

This project is licensed under the Apache License.

pacejka-tire-model's People

Contributors

briann92 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.