I've seen similar problems all over physics.SE and other sites. Most of the time it is about non-compressible fluids, or not about the differential equations. The physical system of interest is comprised as follows:
A rigid container with a gas at temperature $T_1$, pressure $p_1$ and with volume $V_0$. This rigid container has one hole to the surrounding environment. The temperature $T_r$ and pressure $p_r$ of the surrounding environment is constant.
Given that $p_1$ is greater than $p_r$ at $t=0$, what is the change of $p_1$ with $t$?
I assume the following:
- We have an ideal gas
- It is an isothermal process (Is this even a good assumption?)
Here is a sketch:
My problem is, I can't even construct a differential equation for this system. I thought I could derive one by simply using the following two equations: The ideal gas law, $$ p_1V_0 = n R T_1, $$ and the volume flow rate through the orifice, which I assume is $$ \frac{dV}{dt} = K\Delta p = K ( p_r - p_1 ),$$ with $K$ as a constant which represents the geometry of the orifice.
Edit: I think I made an error here. The last equation is only applicable for incompressible fluids.
I tried to get a differential equation for $n$, the number of molecules in mole which are in the container, by substituting $V$ with $\frac{m}{\rho}$ and $m$ with $Mn$: $$ \frac{d}{dt}V = \frac{d}{dt} \frac{M n}{\rho}$$ But $\rho$ is also depend on $t$ so, there is nothing won here.
Am I on the right track? I do think I have to incorporate the Bernoulli's equation for compressible fluids, but than again, I do not know how.