I had low tire pressure yesterday due to the polar vortex, so I added additional air to my tires to about 34PSI at 22F, today it is much warmer at nearly 50F and the PSI went up more than I expected. Also the PSI doesn’t seem to change as much from Spring to Summer, when the weather can swing up more than 20 degrees from night to day. I decided to write some python to try to figure this whole thing out using the Ideal Gas Law. Also no attempt was made to account for the weight of the car, and how that adds pressure to tire.

\[PV = nRT\]The equation terms mean the following with their SI units in parenthesis.

- $P$ is the pressure. (pascals)
- $V$ is the volume. (meters
^{3}) - $n$ is the number of moles of gas. (unit less)
- $R$ is the ideal gas constant
- $T$ is the temperature in kelvins.

We have a couple of things we need to solve. The first part is the number of moles of gas in my tires. From there we can figure out how changing the temperature affects the pressure and attempt to attribute how much the expansion of my tires due to heat affects the pressure.

## Unit Conversions

The most important thing about physics and math in this situation is making sure your units line up correctly and are in metric. I have to do a couple of conversions to get everything to line up properly.

The first couple are conversions from US imperial to metric in size. The next is using pascals, does that helps with making sure the numbers line up in a logical manner and prevents boneheaded mistakes.

We should test our unit conversion function to make sure it lines up as we expect. If we convert back and forth, we should receive roughly the same number, and we do.

```
(36.0, 36.0)
```

We also need to convert from the imperial units of temperature to Kelvins.

Next we have to calculate the volume of the tire. I plugged in some numbers that sound right for my car.

```
0.0837506620437606
```

Now that the tire size is in meters cubed, we can calculate the moles from the known quantities I got today from the tire pressure measurement system. Today it was 44F, and my tire had about 39PSI in it.

```
7.095798455289843
```

The next step is to characterize how the temperature yesterday affected my tire pressure. It was about 14F.

```
30.482758620689655
```

So, just a small drop in temperature of 20 degrees is enough to decrease the PSI by 6. This seems like an awful lot, but we did not account for volumetric shift due to the cold.

## Volume Calculations

The next step is to determine the expansion and contraction of the tire rubber with respect to temperature. I’m going to compute all volume changes with respect to the tire measurements in linear units rather than volume, because that feels right and its easier to find unit formulas. I found constants ($\alpha$) for thermal expansion at this handy site.

\[dL = L_0 \alpha (t_1 - t_0)\] \[L_1 = L_0 + dL\]The units for this are $meters * 10^{-6} / (meters * degreeC)$. This is because the change is typically so small. We don’t have to convert to Celsius because kelvins are Celsius with a different zero point.

```
0.004915814399999999
```

As we can see the change in length is very small, but it might have some impact in the overall change in pressure, so let’s calculate it out. I’m going to define a class to help with the volume calculations.

```
True
```

```
(0.0837506620437606, 0.08632182197652641)
```

# Volume vs Temperature Plot

# Building the new model

The next step is to define a function that takes into account the change in volume due to temperature.

\[P * V(T) = nRT\]It’s time for some plots, and to see how much the change in volume affects everything. The temperature range I’m interested in from -20 Fahrenheit to a 110 degrees.

I’m also interested in what my car actually reported, but I’m going based off of my memory since I didn’t write them down. This whole post is about me trying to build a model, when the car’s monitoring felt way off.

# Interpretation

As can be seen in the plot above, either my model isn’t very good or the tire pressure monitoring system (TPMS) isn’t good in my car. I’m leaning towards the TPMS in my car being relatively inaccurate, as I don’t drive a very high end car. It seemed to be all over the place today as it warmed up today from the polar vortex.

# Assumptions

There’s a couple key assumptions that have been made with this analysis and spots where error can occur. I’m honestly not sure how to control for these issues, but I don’t think they matter for my overall analysis.

- I was going from memory when I grabbed these reading from the dashboard and placed them in the plot.
- The tire might have leaked some amount of gas as it warmed up.
- I did not test over a wide enough temperature range, only during the day as it warmed up.
- My volume calculations might be incorrect and overly simplified. A real tire is kind of curved on the sidewalls, and do not have right angles with the surface.
- I should have checked against a real tire pressure meter from the auto parts store for a complete picture. Although this has confounding factors by removing some number of gas molecules for each measurement.

Thank you for your attention and careful reading. I certainly found it interesting to put into practice the things I learned in high school, and apply it to the real world. Many times we don’t put enough work into synthesizing our existing knowledge into new fields and real problems. It’s important to be able to say when the math doesn’t feel right to you, and validate it against your assumptions and a known physical model.

You can find this notebook on my GitHub.