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

Water Hammer simulation in Open Foam

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

Like Tree1Likes
  • 1 Post By nimasam

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 11, 2013, 03:06
Default Water Hammer simulation in Open Foam
  #1
New Member
 
simin
Join Date: Apr 2012
Posts: 13
Rep Power: 13
simin_ds is on a distinguished road
Hi every one

I am going to simulate water hammer phenomenon in a pipe using open foam as a simple case. but I have problem to set the boundary conditions. has any one simulated this phenomenon before. I need to know the settings which is required.

thanks in advance.
Simin
simin_ds is offline   Reply With Quote

Old   February 11, 2013, 16:33
Default
  #2
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,266
Blog Entries: 1
Rep Power: 24
nimasam is on a distinguished road
Hello Dear simin
your question is too much general, you said:
Quote:
I have problem to set the boundary conditions
whats your problem?
forexample do you know the velocity at inlet? if yes, then put your velocity fixedValue
or for wall is it no slip condition? then velocity would be zero and etc
so i think its better you make it clear where is the problem
However, if you want to find appropriate setting for your simulation, i suggest you to search in articles, then for those configuration, you can find similar BC at OpenFOAM
anil.istanbullu likes this.
__________________
My Personal Website (http://nimasamkhaniani.ir/)
Telegram channel (https://t.me/cfd_foam)
nimasam is offline   Reply With Quote

Old   February 11, 2013, 16:51
Default
  #3
New Member
 
simin
Join Date: Apr 2012
Posts: 13
Rep Power: 13
simin_ds is on a distinguished road
Hi nima

thank you for your reply.
I do not have problem for boundary conditions but in order to simulate the problem the density variation using the module of elasticity,K=dP/drho/rho, should be set to show the pressure change and compresibility. I simulate water hammer by fluent before using udf, but in open foam i do not know where I can set this change.
Hope I could explain my question clear.
simin_ds is offline   Reply With Quote

Old   February 11, 2013, 17:05
Default
  #4
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,266
Blog Entries: 1
Rep Power: 24
nimasam is on a distinguished road
first of All, as it a pressure shock, compressible flow u should use a compressible isothermal solver, which solver did you choose?
__________________
My Personal Website (http://nimasamkhaniani.ir/)
Telegram channel (https://t.me/cfd_foam)
nimasam is offline   Reply With Quote

Old   February 13, 2013, 06:42
Default
  #5
Senior Member
 
Paulo Vatavuk
Join Date: Mar 2009
Location: Campinas, Brasil
Posts: 196
Rep Power: 17
vatavuk is on a distinguished road
Hi Simin,
In the section 3.4 of the Programmers Guide you will find a tutorial of a water hammer simulation. The files of this tutorial can be found in the folder .../tutorials/compressible/sonicLiquidFoam.

I tried this tutorial some time ago and modified it to get the transient flow in a pipe resulting from the sudden opening of a valve. The pressure decrease was correct according to the Joukowski theory but instead of a sharp decrease of pressure there was a smooth profile that suggests there was strong false diffusion in the results. Were you able to get good results with fluent?

Best Regards,
Paulo
vatavuk is offline   Reply With Quote

Old   July 5, 2013, 05:44
Default
  #6
New Member
 
simin
Join Date: Apr 2012
Posts: 13
Rep Power: 13
simin_ds is on a distinguished road
hi vatavuk

thank you for conducting me. yes I got good results with fluent. I think for Open foam you should select smaller delta t to get the good results I had this problem with fluent but after selecting smaller delta T I got very good results.
simin_ds is offline   Reply With Quote

Old   July 9, 2013, 04:03
Default
  #7
Senior Member
 
Christian Lucas
Join Date: Aug 2009
Location: Braunschweig, Germany
Posts: 202
Rep Power: 17
Chris Lucas is on a distinguished road
Hi,

if you need compressible water properties in openfoam have a look at

http://www.cfd-online.com/Forums/ope...roperties.html

Kind regards,
Christian
Chris Lucas is offline   Reply With Quote

Old   July 12, 2013, 11:25
Default Column separation/rejoining triggered water hammer
  #8
jgv
New Member
 
Jose Vasconcelos
Join Date: Jul 2013
Posts: 1
Rep Power: 0
jgv is on a distinguished road
Interesting discussion above. I am a novice user in OpenFOAM, and I am interested in knowing whether someone has been able to simulate episodes of water hammer involving the formation of cavitation pockets followed by the collapse of these pockets (column rejoining). It is a well-studied phenomena, but most references to this appear in unsteady 1D flow pipe solvers. Thank you in advance for the reply.
jgv is offline   Reply With Quote

Old   July 13, 2013, 09:39
Default
  #9
Senior Member
 
Paulo Vatavuk
Join Date: Mar 2009
Location: Campinas, Brasil
Posts: 196
Rep Power: 17
vatavuk is on a distinguished road
Hi Jose,
And welcome to the forum!
I have an impression that water hammer simulation with CFD is still in the beginning, it seems it hasn’t been established yet that that CFD can perform reliable simulations for more simple one phase flows.
Best Regards,
Paulo
vatavuk is offline   Reply With Quote

Old   January 7, 2014, 02:00
Default
  #10
New Member
 
mohamed abdelrahman
Join Date: Feb 2013
Posts: 3
Rep Power: 13
mhd.abdo is on a distinguished road
Interesting discussion..
may i didn't professional english
am also going to simulate water hammer in pipe line using ansys cfx
i start with single pipe modle i make inlet as opning and outlet as mass flow rate and wall no slip wall .. for fluid islect just water as constant pro...
and ididn't know is this is ok or not also for the time step is there any way to calculate it ...
ineed the guideline for that or any helpfull refreances plz ....
mhd.abdo is offline   Reply With Quote

Old   April 16, 2015, 02:12
Default water hammer
  #11
New Member
 
saeede
Join Date: Apr 2015
Posts: 2
Rep Power: 0
samirtala is on a distinguished road
How can I simulate water hammer in pipes
samirtala is offline   Reply With Quote

Old   April 17, 2015, 16:48
Default
  #12
New Member
 
mohamed abdelrahman
Join Date: Feb 2013
Posts: 3
Rep Power: 13
mhd.abdo is on a distinguished road
Dear samirtala
It's very easy to do that if u use ansys program
but need frist to describe model and the boundary conditions
mhd.abdo is offline   Reply With Quote

Old   February 20, 2016, 17:03
Default A request for help!
  #13
New Member
 
ali
Join Date: Feb 2016
Posts: 1
Rep Power: 0
AliMostafa is on a distinguished road
Quote:
Originally Posted by simin_ds View Post
Hi nima

thank you for your reply.
I do not have problem for boundary conditions but in order to simulate the problem the density variation using the module of elasticity,K=dP/drho/rho, should be set to show the pressure change and compresibility. I simulate water hammer by fluent before using udf, but in open foam i do not know where I can set this change.
Hope I could explain my question clear.
Hi Simin
I was searching for water hammer simulation in fluent and saw your post on CFD Forum. You said "I simulate water hammer by fluent before using udf".
How you simulated water hammer by fluent? Have you any manual or manuscript? I really appreciated if you help me.
Thank you very much.
AliMostafa is offline   Reply With Quote

Old   June 23, 2016, 15:16
Default a request for a help
  #14
New Member
 
rahul garg
Join Date: Jun 2016
Location: roorkee
Posts: 1
Rep Power: 0
rahulgarg is on a distinguished road
how can i simulate a simple water hammer problem in a pipe with the help of HAMMER software.
rahulgarg is offline   Reply With Quote

Old   March 9, 2018, 14:15
Default
  #15
New Member
 
Ramin
Join Date: Jan 2018
Posts: 2
Rep Power: 0
Ramin HN is on a distinguished road
Hi Simin,
I want to simulate water hammer by FLUENT.Could you say how I can do it...
I realy dont have enough time.
Thanks.
Ramin HN is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
wmake compiling new solver mksca OpenFOAM Programming & Development 14 June 22, 2018 07:29
question about simulation of falling water film mengyue1 FLUENT 2 March 30, 2014 11:16
Water subcooled boiling Attesz CFX 7 January 5, 2013 04:32
friction forces icoFoam ofslcm OpenFOAM 3 April 7, 2012 11:57
openfoam 1.6 on debian etch romant OpenFOAM Installation 9 May 6, 2010 03:26


All times are GMT -4. The time now is 06:33.