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

Barotropic Flow Analysis CFX

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 23, 2009, 01:51
Default Barotropic Flow Analysis CFX
  #1
New Member
 
Claudio
Join Date: Jul 2009
Posts: 9
Rep Power: 17
Claudio2010 is on a distinguished road
Hello,

I want to perform a barotropic flow analysis in CFX, but I don't know if this is possible.

I want the density to depend only on the pressure, to analyze the effects of compressibility. I want to use the mass conservation, momentum conservation, a viscosity law plus a relation between density and pressure, such as:

dp/drho = E / rho

in which E is a bulk modulus. How can this be done? I'm using CFX 12.0.

Thanks.
Claudio2010 is offline   Reply With Quote

Old   October 23, 2009, 06:08
Default
  #2
Senior Member
 
Matthias Voß
Join Date: Mar 2009
Location: Berlin, Germany
Posts: 449
Rep Power: 20
mvoss is on a distinguished road
hi,
just write an expression for the density of your material including the pressure p(p=pabs if p_ref.=0).
Sounds so easy, maybe i am missing smth. here. Am i?

neewbie
mvoss is offline   Reply With Quote

Old   October 23, 2009, 07:46
Default
  #3
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
You are correct neewbie, that should work. I have done it before to model compressibility in high pressure hydraulic systems and it works fine. It will mean you start getting acoustic waves and other compressible flow features which make convergence harder but as long as you are careful it works fine.
ghorrocks is offline   Reply With Quote

Old   October 23, 2009, 08:17
Default
  #4
Senior Member
 
Matthias Voß
Join Date: Mar 2009
Location: Berlin, Germany
Posts: 449
Rep Power: 20
mvoss is on a distinguished road
When dealing with hydraulic systems and compressibility how did you get rid of neg.pressures while evaluating enthalpy, entropy,.. and so one? that´s what you´re referring to when saying "being careful"??

neewbie
mvoss is offline   Reply With Quote

Old   October 23, 2009, 08:35
Default
  #5
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
If all you are doing is specifying a variable density (as a function of pressure as described above) then there is no enthalpy or entropy as you do not have an energy equation. The convergence difficulties simply come from compressible flow effects such as acoustic waves. The acoustic waves means another time scale has been introduced into the system which is usually orders of magnitude shorter than any other time scales, so you will probably need to use time steps much smaller than the equivalent incompressible simulation.
ghorrocks is offline   Reply With Quote

Old   October 23, 2009, 09:15
Default
  #6
Senior Member
 
Matthias Voß
Join Date: Mar 2009
Location: Berlin, Germany
Posts: 449
Rep Power: 20
mvoss is on a distinguished road
Could one specify a smaller scale only for the momentum eq.?

hmm.. maybe won´t work, because for continuity eq. you also need a small one because they´re coupled.
Tricky.
mvoss is offline   Reply With Quote

Old   October 23, 2009, 13:28
Default
  #7
New Member
 
Claudio
Join Date: Jul 2009
Posts: 9
Rep Power: 17
Claudio2010 is on a distinguished road
Thanks a lot for your replies.

I'm a new user. Could you help me with what would be the notation when I define the density. What I don't know is how to notate the derivative of rho with respect to p.

dp/drho = E/rho

So the expression should be:

rho = drho/dp * E

As you can see, rho is part of a differential equation. Am I on the right track here using that as my density expression for the barotropic flow?

I see that the differential equation could be solved for p:

p = E * ln(rho) + C1

where C1 is an integration constant.

But according to your advice, what I need is a expression for rho.

From the previous expression, I could do:

rho = exp ( (p-C1)/E )

Would defining the density like that work?

Thanks again!
Claudio2010 is offline   Reply With Quote

Old   October 24, 2009, 07:01
Default
  #8
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Quote:
hmm.. maybe won´t work, because for continuity eq. you also need a small one because they´re coupled.
Exactly. So forget it and just run small time steps to resolve the acoustic waves - well at least while the acoustic waves are doing something. If you use adaptive timestepping aiming for 3-5 coefficient loops per iteration then the solver will grow and shrink the time step as required all by itself.

Claudio I think you are heading in the wrong direction. Try this:

Look at eqn 2 here:
http://www.engineeringtoolbox.com/bu...ity-d_585.html

You then define a reference pressure, and a reference density at that reference pressure. Then you can recast the equation to give you density at any pressure using the reference density and reference pressure as the base.
ghorrocks is offline   Reply With Quote

Old   October 26, 2009, 10:34
Default
  #9
New Member
 
Claudio
Join Date: Jul 2009
Posts: 9
Rep Power: 17
Claudio2010 is on a distinguished road
Hi Glenn,

Equation 2 is exactly what I had in mind. What I don't understand is how to indicate to CFX that it needs to use that expression for the density. I'm using Ansys 12.0 and up to now have defined the density as constant in my simulations. In eq. 2, density is not "explicitly" defined, but rather defined as part of a differential equation. That is what I don't get. In this case, how should I define the density in CFX? In other words, where before I put a constant value, what do I write now?

On the other hand, solving that differential equation analitically is easy. I did that analysis to obtain the explicit expression for density to be plugged directly into the density definition in CFX. I believe that what you said about the reference pressure and density is the same as solving for the constant C1 in the expression in my previous post.

Thanks for you help. I hope my question was a little clearer now.
Claudio2010 is offline   Reply With Quote

Old   October 26, 2009, 18:00
Default
  #10
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
If you assume the bulk modulus is constant then the d(rho) and d(P) can be replaced with rho(reference)-rho and P(reference)-P. You can then rewrite in terms of rho and you're done. This is the easiest way to do it.
ghorrocks is offline   Reply With Quote

Reply


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
Flow Analysis tilting Pad thrust bearing using CFX julien CFX 5 April 9, 2014 09:38
Time domain analysis of Unsteady Flow Nikunj Raghuvanshi FLUENT 2 December 25, 2012 14:09
Flow meter Design CD adapco Group Marketing Siemens 3 June 21, 2011 09:33
turbulence model in CFX, seperated flow F. Bhuiyan CFX 3 August 10, 2009 00:28
CFX 2D ANALYSIS BOUNDARY CONDITION fat bug CFX 1 February 19, 2008 17:22


All times are GMT -4. The time now is 21:08.