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

p_rgh in interfoam

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

Reply
 
LinkBack Thread Tools Display Modes
Old   October 6, 2010, 06:42
Default p_rgh in interfoam
  #1
ata
Senior Member
 
ata's Avatar
 
ata kamyabi
Join Date: Aug 2009
Location: Kerman
Posts: 322
Rep Power: 9
ata is on a distinguished road
Hi FOAMers
What is the advantage of combining P and rho*g*h in one term "p_rgh" in OpenFOAM 1.7.0 comparing to OpenFOAM 1.6?
Best regards

Ata
ata is offline   Reply With Quote

Old   October 6, 2010, 11:56
Default
  #2
Member
 
Lars Kiewidt
Join Date: Sep 2009
Location: Germany
Posts: 54
Rep Power: 7
LarsPT is on a distinguished road
Have a look at Rusche's Ph.D. Thesis (pp. 155/156). The dynamic pressure is used because it simplifies the specification of the boundary conditions. For example you can use p_rgh=0 at an outlet and you dont't have to deal with the hydrostatic pressure. I think the release notes of OpenFOAM-1.7 say something about this, too.

Best regards,

Lars
LarsPT is offline   Reply With Quote

Old   October 6, 2010, 15:09
Default p_rgh in interfoam
  #3
ata
Senior Member
 
ata's Avatar
 
ata kamyabi
Join Date: Aug 2009
Location: Kerman
Posts: 322
Rep Power: 9
ata is on a distinguished road
Hi Lars
Thank you very much
Best regards
ata is offline   Reply With Quote

Old   April 17, 2012, 07:10
Question tank draining with interFOAM
  #4
New Member
 
Sam-CFD's Avatar
 
Sam Mathew
Join Date: Apr 2010
Location: India
Posts: 19
Rep Power: 7
Sam-CFD is on a distinguished road
Hi,

I was trying a simple tank draining problem and was trying to specify the right boundary conditions. I am implementing my case in 2.1.0 and it is basically a tank with water filled up to a specific height with a small outlet port at the bottom center of the tank.

At the top I gave the same boundary conditions as in the Dam_break case.

I am having difficulty with specifying appropriate boundary conditions for the outlet port. I have been basically playing around with values for alpha, p_rgh and U.

1. For p_rgh = 0 (as suggested above):
The water does not flow out of the domain. The other parameters were U = (0,0,0), zeroGradient and alpha = {InletOutlet}, 0.

2. For p_rgh - zeroGradient:
The flow is going out but still the results are quite strange. While keeping alpha = {InletOutlet} and U - zeroGradient, the water suddenly jumps up and after a few time steps, it starts draining. It seems as if, the solver detects a high pressure at the outlet port and causes flow to occur from higher to lower pressure, but then realizes actually there is gravity acting against and then the liquid flows out.

The reason I gave p_rgh to be zeroGradient is because I understood that it is the dynamic pressure and the dynamic pressure at the outlet cannot be zero but rather the normal gradient should be zero.

I would be thankful for any help since I am not able to grasp yet the right implementation. In other solvers (like FLUENT, CFX), I would just specify the static pressure to be zero at the outlet with the possibility for reverse flow of air into the domain.
Sam-CFD is offline   Reply With Quote

Old   April 17, 2012, 23:29
Post p_rgh and initial velocity specification
  #5
New Member
 
Sam-CFD's Avatar
 
Sam Mathew
Join Date: Apr 2010
Location: India
Posts: 19
Rep Power: 7
Sam-CFD is on a distinguished road
Hi,

I was finally able to solve the problem using the second formulation but with a finer mesh. <This was finally recognized as a mistake. Please refer here for the right approach.>

I have another question with regard to the p_rgh formulation in OpenFOAM.

If I want to specify some initial velocity in the fluid (e.g., due to rigid body motion of the tank), do I only need to specify it as the internal field in the U file or also the p_rgh file?

Regards,

Sam

Last edited by Sam-CFD; April 23, 2012 at 00:54.
Sam-CFD is offline   Reply With Quote

Reply

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
InterFoam stops after deltaT goes to 1e14 francesco_b OpenFOAM Running, Solving & CFD 8 July 31, 2013 02:29
Getting a concentration field around a bubble in InterFoam azman OpenFOAM Running, Solving & CFD 2 January 7, 2013 14:47
Moving from simpleFoam to interFoam with alpha = 0 kjetil OpenFOAM Running, Solving & CFD 1 November 8, 2009 21:04
Steady state version of interFoam anger OpenFOAM Running, Solving & CFD 1 October 1, 2009 12:49
Open Channel Flow using InterFoam type solver sxhdhi OpenFOAM Running, Solving & CFD 3 May 5, 2009 21:58


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