How to Use OpenTire Python - OpenTire/OpenTirePython GitHub Wiki
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)