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

p_rgh in interfoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread 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: 323
Rep Power: 17
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: 16
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: 323
Rep Power: 17
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: 16
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: 16
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

Old   January 2, 2017, 02:12
Default P_rgh outlet boundary condition InterFoam
  #6
New Member
 
kale sanjay
Join Date: Apr 2016
Posts: 2
Rep Power: 0
kalesanjay001 is on a distinguished road
Hi all,

I am trying to simulate flow around cylinder which is partially submerged in water i.e. multiphase with water and air. Can anybody suggest p_rgh boundary condition for outlet. I tried 'fixedValue - uniform 0' but it is not converging maybe because it is multiphase.

thank you.
kalesanjay001 is offline   Reply With Quote

Old   January 3, 2017, 15:22
Default
  #7
Senior Member
 
Join Date: Mar 2014
Posts: 112
Rep Power: 12
mzzmrt is on a distinguished road
zeroGradient
mzzmrt is offline   Reply With Quote

Old   January 5, 2017, 01:15
Default
  #8
New Member
 
kale sanjay
Join Date: Apr 2016
Posts: 2
Rep Power: 0
kalesanjay001 is on a distinguished road
thank you mzzmrt for suggestion.
but unfortunately it is not working. Water level is increasing which is not desirable.
below figure shows the alpha of water in the simulation domain.

boundary conditions I used are as below
for velocity
inlet - type fixedValue ; value uniform (0.01 0 0);
outlet - type zeroGradient;
bottom - type slip;
up (atmosphere) - type fixedValue ; value uniform (0 0 0);
sides - slip;
cylinder - type fixedValue; value uniform 0;

for Pressure
inlet - type zeroGradient;
outlet - type zeroGradient;
bottom - type zeroGradient;
up (atmosphere) - type fixedValue ; value unifom 0;
sides - type zeroGradient;
cylinder - type zerogradient;

so is there any suggestion for boundary conditions?
thanks again.
kalesanjay001 is offline   Reply With Quote

Old   January 5, 2017, 05:06
Default
  #9
Member
 
Join Date: Mar 2014
Posts: 39
Rep Power: 12
Traction is on a distinguished road
Hi kalesanjay,

interFoam has some drawbacks relating to low velocity flows which lead to numerical problems. Just search the forums for artificial / parasitic or spurious currents to find some more information on this topic.
Traction is offline   Reply With Quote

Old   January 5, 2017, 05:29
Default
  #10
Senior Member
 
Join Date: Mar 2014
Posts: 112
Rep Power: 12
mzzmrt is on a distinguished road
As an addition to the comment of Traction, you can check tuturials for boundary conditions, for example;

https://github.com/OpenFOAM/OpenFOAM.../DTCHull/0.org

Computational domain must be large enough and the distance between the object and the outlet is important as well as the Co...
mzzmrt 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
Getting a concentration field around a bubble in InterFoam azman OpenFOAM Running, Solving & CFD 3 June 7, 2022 04:21
InterFoam stops after deltaT goes to 1e14 francesco_b OpenFOAM Running, Solving & CFD 9 July 25, 2020 06:36
Moving from simpleFoam to interFoam with alpha = 0 kjetil OpenFOAM Running, Solving & CFD 1 November 8, 2009 20: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 17:56.