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

How to make the water slightly compressible in CFX?

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By womo

Reply
 
LinkBack Thread Tools Display Modes
Old   July 3, 2011, 04:05
Default How to make the water slightly compressible in CFX?
  #1
New Member
 
John
Join Date: Mar 2011
Posts: 7
Rep Power: 6
womo is on a distinguished road
Dear all,

I am doing a simulation of flow in porous media and came into a problem. Someone suggest me to make the water slightly compressible. I worked on it for several days but still can not make it. Could anyone help me on it? What settings I need to do to make the water slightly compressible in CFX? Many thanks for your help.

Regards
John
wmplcfd likes this.
womo is offline   Reply With Quote

Old   July 3, 2011, 07:00
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 10,949
Rep Power: 85
ghorrocks has a spectacular aura aboutghorrocks has a spectacular aura aboutghorrocks has a spectacular aura about
Why do you think slightly compressible water will help? Is it likely that the density change is going to be significant? If not then I guarantee it will not help. Your problem is just obtaining convergence.

But compressible water is easy. Get the bulk modulus from google or somewhere, and define density as a function of pressure. I have done it many times and it works fine. And this is not a simplification, you are actually adding more physics to your model so your model will get more accurate - if compressibility is important.
ghorrocks is offline   Reply With Quote

Old   July 3, 2011, 09:51
Default
  #3
New Member
 
John
Join Date: Mar 2011
Posts: 7
Rep Power: 6
womo is on a distinguished road
Dear ghorrocks,

Thank you so much for your reply. I set the "Heat Transfer" of fluid model to "Total Energy" and defined the water density as "( 997 / (1 - (Absolute Pressure - 101325 [Pa] ) / 2.04e9 [Pa] )) [kg m^-3]". Moreover, a minimum absolute pressure of 1000Pa and a maximum one of 1e6 Pa are set in "Table Generation". However, the model can not work at all. No information is given, even no error code. Could you please help me to figure out the problem in compressibilty setting or is there any other experience of it? Thank you for your kind help.

Regards
John
womo is offline   Reply With Quote

Old   July 3, 2011, 19:03
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 10,949
Rep Power: 85
ghorrocks has a spectacular aura aboutghorrocks has a spectacular aura aboutghorrocks has a spectacular aura about
Do not use Total energy, just the default isothermal is fine.

Please post your out file to help us diagnose the problem.

But as I said previously, if you are doing this because you have convergence problems this will not help. It is more likely to make it worse.
ghorrocks is offline   Reply With Quote

Old   July 3, 2011, 22:22
Default
  #5
New Member
 
John
Join Date: Mar 2011
Posts: 7
Rep Power: 6
womo is on a distinguished road
Hi ghorrocks,

I turn the total energy to isothermal as your suggestion, but a new problem comes out as bellow:

+--------------------------------------------------------------------+
| ****** Notice ****** |
| While evaluating Static Enthalpy, |
| Absolute Pressure |
| went outside of its lower limit. Its minimum value was |
| -4.3028E+10. The bounds error was handled by clipping. |
| If this situation persists, consider increasing the table range. |
+--------------------------------------------------------------------+

+--------------------------------------------------------------------+
| ERROR #001100279 has occurred in subroutine ErrAction. |
| Message: |
| Stopped in routine ENFORCE_BOUNDS |
| |
| |
| |
| |
| |
+--------------------------------------------------------------------+

I am doing a model of water flowing over a porous medium, with mesh deformation in the water domain. The model can run without mesh deformation in water domain, but can not work with the mesh deformation. Others have suggested to make the water slightly compressible to solve the problem.
womo is offline   Reply With Quote

Old   July 4, 2011, 06:26
Default
  #6
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 10,949
Rep Power: 85
ghorrocks has a spectacular aura aboutghorrocks has a spectacular aura aboutghorrocks has a spectacular aura about
Like I have said, adding compressibility will make convergence worse, not better.

If you have convergence problems forget about compressibility and deal with the convergence problem. Do you intend to run this model incompressible? If you run it incompressible what happens?
ghorrocks is offline   Reply With Quote

Old   July 4, 2011, 08:29
Default
  #7
New Member
 
John
Join Date: Mar 2011
Posts: 7
Rep Power: 6
womo is on a distinguished road
I have run the incompressible model. It can run without mesh deformation of water domain, but can not work with mesh deformation. That's why I would like to try the compressible model. How can I make the porous domain work together with the moving mesh water domain?
womo is offline   Reply With Quote

Old   July 4, 2011, 09:08
Default
  #8
Senior Member
 
Join Date: Apr 2009
Posts: 516
Rep Power: 12
stumpy is on a distinguished road
Please describe more details of the case. Total Energy with compressible water is the correct approach to resolve acoustic waves in water (e.g. water hammer), but it's not clear that this is what you want to do. If your timescale is small enough to resolve acoustic waves generated by a moving boundary then this might be a valid approach.
stumpy is offline   Reply With Quote

Reply

Tags
compressible flow, porous media

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pros and Cons for CFX, CFdesign, COMSOL Val Main CFD Forum 3 June 10, 2011 02:20
Water pump OpenFOAM 15 ANSYS CFX 110 comparation waynezw0618 OpenFOAM Running, Solving & CFD 39 March 5, 2009 13:57
FOAM installation error gcc amp g hanks OpenFOAM Installation 9 January 26, 2006 15:14
CFX 4.4 installation problem Pandu Sattvika CFX 1 December 1, 2001 05:07
File export from CFX 5.3 Sinjae Hyun CFX 1 July 12, 2000 09:20


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