AxisCat
- 42
- 10
Wow! That looks like what I was trying to arrive at. I will need to dissect this and try and understand all the bits and pieces. Especially the calculus which is a big weakness of mine. I have a couple of busy days coming up but I hope I can reach back out to everyone after I get some time in working on it.erobz said:View attachment 330554
Here is what I'm coming up with for the EOM ( assumes uniform properties distributed across any particular section - that approximately the case for turbulent flow )
$$ \rho \left( l \frac{A}{A_p} + z \right)\ddot z + P_t(z) + \rho g \left( H + z\right) + \frac{1}{2} \rho \dot z ^2 = P_{atm} + \frac{1}{2} \rho \left( \frac{A}{A_p} \right)^2 \dot z^2 + \Delta P_L(Q) $$
Then from continuity you have:
$$ Q = -A \dot z \implies \dot Q = -A \ddot z $$
So you can sub that in and get a first order nonlinear equation mostly in terms of ##Q## and its derivative. There is still a ##z## buried in the pressure function to contend with, but with regards to a numerical solution its not an issue. Just note that:
$$ z = z_o + \int \dot z dt = z_o -\frac{1}{A}\int Q dt $$
The pressure function in the tank ##P_t(z)## is a thermodynamics problem, I'd go with adiabatic expansion of an ideal gas, but I would defer to @Chestermiller for the theory on that.
Also, I left the loss function ##\Delta P_L(Q)## general for now. You should be able to get away with either what you(or I) polynomial curve fit, or the power law fit Chester suggests. If you want to include the loss characteristics of other components, it's not too late for that.
## l ## is the length of all the plumbing from the tank to the exit.
Anyhow, you put ##z## where you want it initially, specify the initial condition in the gas, set the volumetric flow to zero and start the clock using standard numerical integration techniques.
The derivation was long winded, so if I've bungled it, and or anyone wants to examine it...let me know.
Nice work my friend!
Axis