You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+22-1Lines changed: 22 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,28 @@ If you are unfamiliar with packages and modules in Python, the first thing you'l
14
14
```python
15
15
setup.py install
16
16
```
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.
18
39
19
40
## Examples
20
41
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