DaleSpam said:
I get P(0) = 2.4 10^161 atm
Of course, Earth isn't a uniform density, and the behavior of air would be far from ideal, and the temperature would probably not be constant either, but in any case it would be a lot of pressure.
You might want to double-check your assumptions.
A better assumption is that the magical unobtanium walls that keep the walls of the tunnel from closing in on itself completely isolate the tunnel from the Earth: No energy transfer whatsoever. That suggests an adiabatic atmosphere assumption. For an ideal gas, this means
\frac{T}{T_0} = \left(\frac{p}{p_0}\right)^{(\gamma-1)/\gamma}
Where γ is the heat capacity ratio
cp/
cv, which for dry air is about 1.4.
T0 and
p0 denote the temperature and pressure at some known point such as the top of the tunnel. Combining the above with the ideal gas law p=\rho RT/\mu (here μ is the molar mass, 28.964 grams/mole for dry air) and the hydrostatic equilibrium equation dp/dr=-\rho\,g(r) yields
<br />
\frac{d(p/p_0)}{dr} &= -\,\frac{\mu g(r)}{RT_0}\left(\frac{p}{p_0}\right)^{1/\gamma}<br />
Integration yields
<br />
\left(\frac{p}{p_0}\right)^{(\gamma-1)/\gamma} =<br />
-\,\frac{\gamma-1}{\gamma}\frac{\mu}{RT_0}\int g(r)dr + C<br />
Assuming a uniform density (a bad assumption) leads to
<br />
\left(\frac{p}{p_0}\right)^{(\gamma-1)/\gamma} =<br />
1+\frac{\gamma-1}{\gamma}\frac{\mu r_e g_0}{2RT_0}<br />
\left(1-\left(\frac{r}{r_e}\right)^2\right)<br />
At the center of the Earth this means a pressure of about 13.5 million atmospheres.
As Subductionzon noted, the assumption of a uniform density is not a very good one. A better assumption is that gravitational acceleration remains constant down to r/r
e=1/2 and then falls linearly to zero. This two-layer approach means that that 13.5 million atmosphere pressure will be achieved halfway down. The pressure at the center of the Earth increases to 55 million atmospheres with this more realistic assumption.
So, still ridiculously high, but not quite as high as 10
161 atmospheres.