|
[Sponsors] |
October 6, 2010, 07:42 |
p_rgh in interfoam
|
#1 |
Senior Member
ata kamyabi
Join Date: Aug 2009
Location: Kerman
Posts: 323
Rep Power: 18 |
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 |
|
October 6, 2010, 12:56 |
|
#2 |
Member
Lars Kiewidt
Join Date: Sep 2009
Location: Germany
Posts: 54
Rep Power: 17 |
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 |
|
October 6, 2010, 16:09 |
p_rgh in interfoam
|
#3 |
Senior Member
ata kamyabi
Join Date: Aug 2009
Location: Kerman
Posts: 323
Rep Power: 18 |
Hi Lars
Thank you very much Best regards |
|
April 17, 2012, 08:10 |
tank draining with interFOAM
|
#4 |
New Member
Sam Mathew
Join Date: Apr 2010
Location: India
Posts: 19
Rep Power: 16 |
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. |
|
April 18, 2012, 00:29 |
p_rgh and initial velocity specification
|
#5 |
New Member
Sam Mathew
Join Date: Apr 2010
Location: India
Posts: 19
Rep Power: 16 |
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 01:54. |
|
January 2, 2017, 03:12 |
P_rgh outlet boundary condition InterFoam
|
#6 |
New Member
kale sanjay
Join Date: Apr 2016
Posts: 2
Rep Power: 0 |
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. |
|
January 3, 2017, 16:22 |
|
#7 |
Senior Member
Join Date: Mar 2014
Posts: 112
Rep Power: 12 |
zeroGradient
|
|
January 5, 2017, 02:15 |
|
#8 |
New Member
kale sanjay
Join Date: Apr 2016
Posts: 2
Rep Power: 0 |
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. |
|
January 5, 2017, 06:06 |
|
#9 |
Member
Join Date: Mar 2014
Posts: 39
Rep Power: 12 |
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. |
|
January 5, 2017, 06:29 |
|
#10 |
Senior Member
Join Date: Mar 2014
Posts: 112
Rep Power: 12 |
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... |
|
|
|
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 05:21 |
InterFoam stops after deltaT goes to 1e14 | francesco_b | OpenFOAM Running, Solving & CFD | 9 | July 25, 2020 07:36 |
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 13:49 |
Open Channel Flow using InterFoam type solver | sxhdhi | OpenFOAM Running, Solving & CFD | 3 | May 5, 2009 22:58 |