CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

big question

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   March 12, 2012, 04:41
Red face big question
  #1
Senior Member
 
Safia
Join Date: Oct 2010
Location: Australia
Posts: 161
Rep Power: 15
happy is on a distinguished road
Hi all,,
I'm using the below solution of bouyancy pressure B.C. in gas cases
#763576 - I have a problem involving buoyant flow of an ideal gas under atmospheric conditions so that the height at a pressure boundary varies over a significant distance. When I set the pressure at the boundary, how can I specify it so that I don't see any spurious flows due to an inconsistent specification of the opening pressure?

Family:CFXProduct:CFX-SolverVersion:11.0Area:GeneralSubarea:N/A
Answer:

Specifying the pressure at a boundary for a buoyant problem where the height in the gravity potential field varies significantly requires care, particularly for an ideal gas.

For an ideal gas, the pressure and density are related via the expression for the change in the hydrostatic pressure with height:

dP/dy = -rho*g (assuming that the height variable is y and that gravity acts in the -y direction).

It may be simplest to set the reference pressure for the domain to 0 and set the buoyancy reference density to zero as well.

For an ideal gas, the density is given by PM/RT. Eliminating pressure using the ideal gas law and integrating for isothermal flow from some reference height L where the pressure is Pref and the density is rhoL gives:

rho = rhoL*exp(Mg*(L-y)/R/T)

and:

P = Pref*exp(Mg*(L-y)/R/T)

The conditions for this type of a pressure boundary should be set up so that the conditions of the dependent variables approach that of the known ambient fluid.

A sample definition file for flow in a large 2D square box, with a height/width dimension of 300 m is attached.

The fluid is set to be Air Ideal Gas. The pressure at the top of the box (y = L = 300 m) is set at 1 atm.

The domain reference pressure is set to 0 and the buoyancy reference density to 0 as well. Gravity acts in the ży direction.

At the outlet opening, the pressure is set to:

P = rho*RT/M = rhoL*RT/M*exp(mg*(L-y)/R/T) = (1.0 [atm]*exp(M*g(L-y)/R/T)

The temperature in this simulation is constant at 300 K.

For an inlet velocity of 1 m/s, the streamlines and static pressure look reasonable. The streamlines go more or less straight across except where there is a disturbance due to flow around an internal wall.
The online help suggests setting the buoyancy reference density to the average value prevailing in the domain. When you have a pressure boundary where the height and hydrostatic pressure varies, I would ignore the recommendation from the online help and choosea reference density that simplifies setting the hydrostatic pressure at the pressure boundary. I believe setting the reference density to zero allows one to calculate the pressure and density variation with height in the simplest manner.

So can anyone tell me if I want the pressure function in temperature how i can make the excepression. I tried to use T as variable but the cfx give me an error that I divided on zero. How ever, the temperature is greater than zero. is there is any workaround solve the problem?
Regards
happy is offline   Reply With Quote

 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
question about uds tanven FLUENT 2 July 5, 2015 11:22
Question Re Engineering Data Source imnull ANSYS 0 March 5, 2012 13:51
internal field question - PitzDaily Case atareen64 OpenFOAM Running, Solving & CFD 2 January 26, 2011 15:26
Question about Table applicaiton. universez OpenFOAM Running, Solving & CFD 0 January 12, 2010 20:31
Do small boats slow big boats? Richard Scott Main CFD Forum 13 August 3, 2004 03:51


All times are GMT -4. The time now is 20:26.