|
[Sponsors] |
June 13, 2017, 07:47 |
Water hammer effect
|
#1 |
New Member
Hamid Masoud
Join Date: Jun 2017
Posts: 10
Rep Power: 9 |
Hello,
i want to simulate the water hammer effect and have a laminar flow with a slightly compressible fluid. The steady simulation has a total pressure inlet of 1800 bar and atmospheric pressure at outlet (static pressure: relative pressure 0 bar) and water as fluid. For the transient simulation i want to load the results of the steady simulation into my transient simulation as initial values and set the new conditions and boundarys for the transient one. I change the outlet to a velocity outlet and set 0 (m/s) to simulate a sudden valve closure. The inlet remains a total pressure inlet. I would like to make water compressible. Shall i set the density as a function of pressure and how can i make that. I can only set values and no functions? Must i turn on the total energy model and why? When i turn it on, it says that i must initialize the temperature in domain initialization (Initialization-Domain Initialization-Initial conition-Temperaure-Temperature) but i cannot initialize the temperaure. Can anyone help me? |
|
June 13, 2017, 20:13 |
|
#2 | ||||||
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,872
Rep Power: 144 |
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
|
|||||||
June 15, 2017, 17:09 |
|
#3 |
New Member
Hamid Masoud
Join Date: Jun 2017
Posts: 10
Rep Power: 9 |
Hey thanks for the fast response.
How can I make the outlet as a wall? In Fluent I can select the outlet as a wall but in CFX it is different. My great problem is the function for the density. Where can I insert/ create a function. Or must i create the function under "expressions" And is the total pressure of 1800bar at inlet correct? I don't have any value for velocity at inlet. Thanks |
|
June 15, 2017, 19:12 |
|
#4 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,872
Rep Power: 144 |
In CFX you define the boundary as a wall in CFX-Pre.
Density: In the materials tab. Yes, you will need to create an expression. Inlet pressure: If inlet pressure is what you know, then use that. If you do not know the velocity you cannot define that as a boundary condition. |
|
June 19, 2017, 10:34 |
Density
|
#5 |
New Member
Hamid Masoud
Join Date: Jun 2017
Posts: 10
Rep Power: 9 |
How can i express the density function? It depends on pressure respectively the axial direction of my pipe.
The function of density is density=(bulk modulus/Speed of sound^2). Where can i set the bulk modulus or Speed of Sound?! And if Speed of Sound is a constant value, bulk modulus must vary, however i read that bulk modulus is constant and for compressible flows. How can i express the pressure dependency? |
|
June 19, 2017, 11:20 |
|
#6 |
Member
Peter
Join Date: Sep 2011
Location: Germany
Posts: 39
Rep Power: 15 |
So if you consider compressibility you have a density change based on the current pressure d(rho)/dp=rho/K. To consider the change in density you define (as Glenn already mentioned) a density function based on a reference density, the pressure and the bulk modulus or the speed of sound. (Since speed of sound and and the bulk modulus are linked with the reference density you can only specify one).
Use the Search: How to make the water slightly compressible in CFX? and Chaundry- Applied Hydraulic Transients is also a good place to start |
|
June 29, 2017, 05:12 |
|
#7 |
New Member
Hamid Masoud
Join Date: Jun 2017
Posts: 10
Rep Power: 9 |
Thanks, but if i make water slightly compressible, i have to choose a heat transfer model. I have chosen Isothermal with a water temperature of 25 °C. Can i avoid to choose a heat transfer model? Moreover, i have set 6 seconds for total time and 1e-5 as time step. After almost one day my simulation has not even completed and i have accumulated time step of 5000. How can i fasten my simulation?
|
|
June 29, 2017, 19:33 |
|
#8 | |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,872
Rep Power: 144 |
If you have chosen isothermal then the simulation will not model heat transfer.
Quote:
You need to: First: Use sensitivity studies to determine the mesh size, time step size and convergence criteria you need in your case to get an accurate simulation. Second: Once you have determined the simulation settings required to get the accuracy you require, look at your computing resources and work out whether you have the necessary memory and CPU time to achieve the task Third: If you don't have enough time or memory then get more computers and licenses so you can do a distributed parallel run Fourth: If you can't get enough resources to do it, then simplify the simulation problem and return to step 1. Fifth: If you can't simplify it then declare the problem is not solveable with current resources. |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Mass imbalance problem in multiphase water and steam CFX case | Antech | CFX | 1 | October 26, 2020 05:03 |
Getting the pressure waves in Fluent for a water hammer problem | teopetre | FLUENT | 2 | August 6, 2013 20:24 |
CCL, FORTRAN and water hammer | pingub | CFX | 3 | May 13, 2010 20:15 |
has anyone simulated water hammer | sandeep | FLUENT | 0 | September 4, 2003 11:06 |
uptodate water distribution network | fredius,magige,tanzanian,(e.a) | Main CFD Forum | 0 | January 27, 2002 08:10 |