Skip to content

How to Use OpenTire Python

Matthew Schroeder edited this page May 21, 2020 · 5 revisions

This page will contain information about how to use OpenTire in Python with some examples to help you get started.

Python Requirements

  • Python 3.x
  • A computer
  • A cup of coffee

Some example code

from opentire import OpenTire
from opentire.Core import TireState

openTire = OpenTire()
myTireModel = openTire.createmodel('PAC2002')

state = TireState()
state['FZ'] = 1500
state['IA'] = 0.0
state['SR'] = 0.0
state['SA'] = 0.0
state['FY'] = 0.0
state['V'] = 10.0
state['P'] = 260000

myTireModel.solve(state)
Clone this wiki locally