Simulation of Compressed Air Driven Piston

Click For Summary
SUMMARY

This discussion focuses on creating a dynamic simulation of a piston driven by compressed air using MATLAB. The initial parameters include a pressure of 14,000,000 nm-2 (140 Bar) and a volume of 0.005 m3 (500cc). Key factors for the simulation include the force required to open the valve, flow rates, and the effects of inertia and friction on the piston. The user seeks formulas for modeling the flow through an orifice and asks about determining the discharge coefficient without experimental data, as well as the impact of pipe geometry on the simulation.

PREREQUISITES
  • MATLAB programming skills
  • Understanding of fluid dynamics principles
  • Knowledge of gas laws and thermodynamics
  • Familiarity with orifice flow equations
NEXT STEPS
  • Research MATLAB functions for simulating dynamic systems
  • Learn about calculating discharge coefficients for orifices
  • Study the effects of pipe geometry on flow dynamics
  • Explore advanced fluid dynamics concepts such as compressible flow
USEFUL FOR

Engineers, physicists, and MATLAB users involved in fluid dynamics simulations, particularly those focusing on pneumatic systems and piston mechanisms.

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?
 

Similar threads

  • · Replies 45 ·
2
Replies
45
Views
7K
Replies
8
Views
2K
Replies
4
Views
6K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 20 ·
Replies
20
Views
7K
  • · Replies 10 ·
Replies
10
Views
7K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 14 ·
Replies
14
Views
3K
Replies
14
Views
5K