
[Sponsors] 
August 24, 2005, 11:44 
Using ideal gas law to simulate pressure decline

#1 
Guest
Posts: n/a

Sponsored Links
My Fluent model of the tank is a realy simple 2D model. The tank is pressurised to a 100 Pa gauge pressure with the operating pressure set at 101325 Pa. This is done for steady state. When the pressure is uniform in the tank I start the transient solution. Due to air leakage the pressure in the tank will decline. However, the pressure decline and the mass flow rate out of the tank is not consistent with each other. The pressure decline is about 40 percent larger than what it should be according to the ideal gas law. For example, the tank volume is 1 cubic meter, the temperature 295 Kelvin and the pressure decline from one time step (0.002 sec) to the next is 0.56 Pa. At the same time the mass flow rate out of the tank is 4.72 e6 kg. This change in mass inside the tank should only result in a pressure drop of 0.4 Pa. I wonder if anyone has encountered this type of problem? I have tried very short time steps, a large number of iterations, different numerical solvers, turbulence and laminar models, coupled and segregated solvers and so on. But all choices give the same results, that is a discrepancy of about 40 percent between pressure drop and the pressure drop calculated by hand according to the ideal gas law. 

Sponsored Links 
August 24, 2005, 12:44 
Re: Using ideal gas law to simulate pressure decli

#2 
Guest
Posts: n/a

A couple things... when you calculate what the pressure drop should be, are you getting the new temperature in the tank (since you're using ideal gas law and all...). Also, I'm not sure how you calculated the pressure drop in fluent, but I'm thinking you should be doing a massweighted average (since there will be less mass near the leak than at the other end of the tank). One thing you could try would be to open the valve for a certain amount of time and monitor how much flow has left and the mass weighted average of total pressure. Then close the valve and allow it to reach a steady state condition (this way with the fluid not moving, your static pressure = total pressure).
Hope something here was useful. Goodluck, Jason 

August 24, 2005, 14:09 
Re: Using ideal gas law to simulate pressure decli

#3 
Guest
Posts: n/a

Make sure you are measuring the pressure in the right area. near the exit, the static pressure will be lower due to the dynamic head. Far away, say near the top of the tank, the dynamic pressure should be insignificant. If the pressure drop is still inconsistant, check the mass holdup of the tank and make sure it is consistant with the mass released. An error in the pressure would indicate that Fluent is not conserving mass.
Robin 

August 25, 2005, 08:41 
Re: Using ideal gas law to simulate pressure decli

#4 
Guest
Posts: n/a

Jason and Robin,
Thank you for your replies. I have checked the change in density in the "tank" and hand calculated the corresponding change in pressure. The simulations that I am performing are of very small air leakage rates and the air velocity is less that 0.1 m/s anywhere in the "tank". After stopping the air flow out of the tank and simulating for another 0.01 seconds there are no air movements in the tank. The change in density when air is leaking out during 0.02 seconds is â€" 4.8 e5 kg/cubic meters. This is equivalent of a pressure change of â€" 4.06 Pa. However, the change according to Fluent is â€" 5.69 Pa. That is, the pressure drop is about 40 percent larger than it should be. Is this due to some kind of round of error in Fluent, when simulating such small quantities? If you can think of anything else that I am doing wrong, please tell me. Best regards Björn 

August 25, 2005, 09:25 
Re: Using ideal gas law to simulate pressure decli

#5 
Guest
Posts: n/a

Where are you measuring your pressure, or how are you calculating the pressure in Fluent at the different time steps?
Ideal Gas Law is P=rho*R*T... a .001% change in temp (which is only .00295K) can create a .001% change in P (which for 101425Pa is ~1Pa, which is about how much your pressure if off). Check the temperature changes in your tank as well to make sure you're using the right values when calculating the pressure drop. It's possible that there is round off error. Gambit always works in absolute quantities, so when you break it down to the difference between two computations, this could make the error look much larger. Being off 1.6Pa with an absolute pressure of 101425 is only an error for the calculation of about 1.5% which is possible. Higher order discretization schemes, and improved mesh may help lower this error. Thanks, Jason 

September 5, 2005, 04:03 
Re: Using ideal gas law to simulate pressure decli

#6 
Guest
Posts: n/a

You are using a 2D model right,but the mass flow rate calculations needs area, if you have not changed the reference depth Fluent take it to be 1.0 M


Thread Tools  
Display Modes  


Similar Threads  
Thread  Thread Starter  Forum  Replies  Last Post 
problems simulation ideal gas, divergence in AMG S  Ralf Schmidt  FLUENT  11  October 1, 2005 13:21 
ideal gas law in turbulent flow  Achim  Siemens  0  March 26, 2003 15:38 
Gas pressure question  Dan Moskal  Main CFD Forum  0  October 24, 2002 22:02 
Total pressure in real gas (compressible flow)  Bart Prast  Main CFD Forum  3  November 14, 2000 11:44 
Hydrostatic pressure in 2phase flow modeling (long)  DS & HB  Main CFD Forum  0  January 8, 2000 16:00 
Sponsored Links 