Simulation of Compressed Air Driven Piston

AI Thread Summary
The discussion focuses on creating a MATLAB simulation for a piston driven by compressed air, detailing initial parameters like pressure and volume. Key factors include the force to open a valve, valve duration, flow rate changes, and the dynamics of air expansion and piston movement. The participant seeks formulas for modeling these processes, including momentum conservation and flow through an orifice. They inquire about determining the discharge coefficient without experimental data and how to account for the geometry of the transfer pipe, especially with bends. The potential for back-propagation effects in the system is also raised, questioning its impact on the formulas used.
mmcc
Messages
2
Reaction score
0
I am writing a MATLAB script that generates a dynamic simulation of a piston being driven by compressed air. My starting values for pressure and volume are as follows:

P0 = 14000000; %nm-2 or 140 Bar
V0 = 0.005; %m3 or 500cc

The simulation needs to be quite detailed and must take into account the following factors:

1. Force required to open the valve (assume hammer type)
2. Duration valve will remain open
3. Flow rate from valve and change over time
4. Expansion into transfer port over time
5. Force imparted to piston
6. Account for inertia and friction to move piston
7. Expansion into cylinder over time
8. Velocity, mass and force of air over time

I am looking for the necessary formulas to achieve the above goals.
 
Engineering news on Phys.org
I suppose this is a lot to ask in one post, but I have made a start on this. I will run through the sequence of events and describe the formulas I have, or have identified so far.

The process begins with a hammer striking a valve to open the seal. This can be modeled as a collision over time and a series of forces (force of hammer, force of spring sealing valve and force of air pressure inside valve):

Force (change with time) = mass * acceleration (change with time)

Then simply conserve momentum over time:

Valve --- Kg m/s (change with time) ---> <--- Kg m/s (change with time)--- Hammer
Net force <--- Kg m/s (change with time) --->

Determining how long the valve will stay open is basic speed = distance /time. We can calculate the velocity using the conservation of momentum:

Force (Valve - change with time) + Force (Hammer - change with time) = Mass (Valve) + Mass (Hammer)
Mass / Force (change with time) = velocity (change with time)

We can then calculate the distance the valve seal will move and compare that with size/volume of the valve opening.

This then leads to air rushing into the valve and where the equation begin to become complex. I think I can model this as a flow through an orifice. As such, I have identified the following formulas (MATLAB comments):

Code:
% Density of air
%
% Assumed to be:
% 1. Sea level 
% 2. 15 °C
%
% d = p /Rs T
% where:
% d = air density (kg/m3)
% p = absolute pressure (nm-2) - 101325
% T = absolute temperature (K) - 288.15
% Rs = specific gas constant for dry air is 287.058 J/(kg·K)
%
% d = 101325 / (287.058 * 288.15)
% d = 1.2249781262066510570904764201612 kg/m3
%
% Air Velocity
%
% v = 278.27 * (Math.sqrt(static pressure / Atmospheric density)
% v = 278.27261838130327370844581361742 * (Math.sqrt(13999999 / 1.225)
% v = 940,724.26425592028024204853937945 m/s
%
%v = 278.27 * (Math.sqrt(13999999 / 1.225)
%
%
% Flow through Orifice
%
% Q = Cd A [2 #p /Ad] ^ 0.5
% where:
% q = Flow rate (m3/s)
% Cd = Discharge coefficient
% A = surface area of opening (m2)
% #p = Pressure difference (change with time)
% Ad = air density

My question at this point is, can I model this as a flow through an orifice? If so, how do I determine the 'Discharge Coefficient' without experimental data?

Then how do I deal with the geometry of the transfer pipe between the valve and cylinder? What if it had a 90 degree turn, rather than being just a straight tube?

Finally, I notice that effects can be back-propagated in this system. Does this change any of the formula in any way?
 
Hi all, I have a question. So from the derivation of the Isentropic process relationship PV^gamma = constant, there is a step dW = PdV, which can only be said for quasi-equilibrium (or reversible) processes. As such I believe PV^gamma = constant (and the family of equations) should not be applicable to just adiabatic processes? Ie, it should be applicable only for adiabatic + reversible = isentropic processes? However, I've seen couple of online notes/books, and...
Thread 'How can I find the cleanout for my building drain?'
I am a long distance truck driver, but I recently completed a plumbing program with Stratford Career Institute. In the chapter of my textbook Repairing DWV Systems, the author says that if there is a clog in the building drain, one can clear out the clog by using a snake augur or maybe some other type of tool into the cleanout for the building drain. The author said that the cleanout for the building drain is usually near the stack. I live in a duplex townhouse. Just out of curiosity, I...
I have an engine that uses a dry sump oiling system. The oil collection pan has three AN fittings to use for scavenging. Two of the fittings are approximately on the same level, the third is about 1/2 to 3/4 inch higher than the other two. The system ran for years with no problem using a three stage pump (one pressure and two scavenge stages). The two scavenge stages were connected at times to any two of the three AN fittings on the tank. Recently I tried an upgrade to a four stage pump...
Back
Top