Skip to content

Commit cba710d

Browse files
authored
Update README.md
1 parent c34a78c commit cba710d

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

README.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,28 @@ If you are unfamiliar with packages and modules in Python, the first thing you'l
1414
```python
1515
setup.py install
1616
```
17-
Once OpenTire is installed, you should check out the examples to help you get started.
17+
Once OpenTire is installed, you can load up a tire model with these commands:
18+
19+
```python
20+
from opentire import OpenTire
21+
from opentire.Core import TireState
22+
23+
openTire = OpenTire()
24+
myTireModel = openTire.createmodel('PAC2002')
25+
26+
state = TireState()
27+
state['FZ'] = 1500
28+
state['IA'] = 0.0
29+
state['SR'] = 0.0
30+
state['SA'] = 0.0
31+
state['FY'] = 0.0
32+
state['V'] = 10.0
33+
state['P'] = 260000
34+
35+
myTireModel.solve(state)
36+
```
37+
38+
For more comprehensive examples, please check out the additional examples in the examples folder.
1839

1940
## Examples
2041
To help you get started using OpenTire, there are a number of different Jupyter Notebooks which demonstrates how to initiate OpenTire and how to integrate into a tire or vehicle simulation.

0 commit comments

Comments
 (0)