Pneumatic Cylinder Discharge Equations

Click For Summary
SUMMARY

The discussion focuses on modeling the discharge of gas from a pneumatic cylinder using Simulink/Simscape, specifically transitioning from ideal gas equations to real gas equations using Van der Waals equations. The user has successfully matched stock models for ideal gas discharge but encounters discrepancies when applying real gas equations. The two primary equations being utilized are the Equation of State and the Change of Internal Energy, which are effective for ideal gases but require adjustments for real gas behavior.

PREREQUISITES
  • Familiarity with Simulink/Simscape for modeling physical systems
  • Understanding of gas laws, specifically the Ideal Gas Law and Van der Waals equations
  • Knowledge of thermodynamics, particularly internal energy changes
  • Basic calculus for integrating and iterating equations
NEXT STEPS
  • Research the application of real gas models in Simulink/Simscape
  • Explore advanced thermodynamic equations for real gas behavior
  • Learn about numerical methods for solving differential equations in gas dynamics
  • Investigate the differences between AMESim and Simscape modeling approaches
USEFUL FOR

Engineers, researchers, and students involved in fluid dynamics, thermodynamics, and simulation modeling, particularly those working with pneumatic systems and gas discharge processes.

QQ2013
Messages
1
Reaction score
0
Hi all,

First post here and I hope that somebody can help.

I'm using Simulink/Simscape to model discharge of gas from a constant volume, pneumatic, pressurised cylinder. No heat exchange with surroundings yet. I have got the equations matching the stock models from AMESim and Simscape for ideal gas discharge, but the aim is to model real gas discharge. Currently I'm keeping it simple and using Van der Waals equations.

The required function is required to calculate the following:
INPUT
mass flow dm
all state variables m, p, V, T etc.

OUTPUT
pressure change dp
temp change dT

It will then integrate and iterate.

CURRENT ATTEMPT
I need two equations to solve for two variables. Currently these are:
1) Equation of State (Ideal gas OR Van der Waals)
pV = nRT => V*dp = R(T*dn + n*dT)​
(or VdW equivalent)​

2) Change of Internal Energy
du = Cv*dT + [T(dp/dT) - p]dv​
(u, v are specific U, V; derivative is partial wrt v)​

= p*V*dm/m^2​

(from du = p*A*dx)​


These equations work for ideal gas but not quite for real. I can provide graphs if necessary. Can anybody suggest why there's a discrepancy? Have I assumed something which isn't quite true? Or is what I'm comparing it to incorrect (AMESim)?

Thanks,
QQ
 
Last edited:
Physics news on Phys.org
Up for you. I'm very interested in this topic. :)
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
Replies
1
Views
2K
Replies
14
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 39 ·
2
Replies
39
Views
4K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 18 ·
Replies
18
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K