CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

comporessibleInterFoam BC p_rgh OF 2.0.1

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

LinkBack Thread Tools Search this Thread Display Modes
Old   March 8, 2016, 05:49
Default comporessibleInterFoam BC p_rgh OF 2.0.1
New Member
Join Date: Oct 2015
Posts: 24
Rep Power: 10
StefanW is on a distinguished road
Dear Foamers,

I want to do a compressible multiphase simulation (air, water) of an horizontal pipe with the solver compressibleInterFoam. Starting the simulation the pipe is full of water. At a certain timestep the air streams in and pushes the water out.

I use the following BC (got them from my predecessor)

internalField (0 0 0)

inlet: type timeVaryingUniformFixedValue;
fileName "inletwater.txt"; increases to (4 0 0 )

wall: type fixedValue;
value uniform (0 0 0);

outlet: type zeroGradient;

internalField uniform 0

inlet: type buoyantPressure;
value uniform 0;

wall type buoyantPressure;
value uniform 0;

outlet: type totalPressure;
p0 uniform 20532; //pressure difference due to the
height difference from cut outlet to original outlet
U U;
phi phi;
rho rho;
psi none;
gamma 1;
value uniform 0;

I got worried about these BC....

Would be nice if somebody could give me a hint if they are generaly in a good manner?

and in particular I am wondering according the pressure at the outlet.
Do I have just to define the overpressure (like it is done) or do I have to define the total pressure?? I read al lot to p=rho*g*h+p_rgh but i dont get it completly, cause with this solver I got no chance to specify p.
My goal is to tell OF a pressure at the outlet of 1*atm+ 20532Pa

I read somewhere that compressibleInterFoam allows cavitating of water. Is that true? (But I dont give some information according the temprature??) Therefore I should define the total preassure to get to the right pressure level??? I heard about the function of pmin but then the results will be wrong if the preasure if automaticly "corrected"?

Thanks a lot for your help or some hints you can give

StefanW is offline   Reply With Quote

Old   March 8, 2016, 08:39
Senior Member
Join Date: Jun 2009
Location: France, grenoble
Posts: 272
Rep Power: 17
olivierG is on a distinguished road

compressibleInterFoam need absolute pressure, so with 0 Pa you will get in trouble: If you need 1atm + 2e4 Pa, then set 1.2e5 Pa at outlet.

Cavitation is done with interPhaseChangeFoam, not compressibleInterFoam.

olivierG is offline   Reply With Quote

Old   March 8, 2016, 10:06
Thumbs up Thank You!
New Member
Join Date: Oct 2015
Posts: 24
Rep Power: 10
StefanW is on a distinguished road
Hello Oliver,

thanks a lot for your quick answer! That helps a lot.

So the results wiht "unphysical" areas of air (Alpha-Values)
(there should be water) are probably based on numerical errors...

I try to run it with the real pressure ...lets see whats comming up

StefanW is offline   Reply With Quote


cavitation, compressible, compressibleinterfoam, multiphase, p_rgh

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
Calculation of mass flow rate in OpenFOAM 2.0.1 rawe666 OpenFOAM Running, Solving & CFD 15 November 21, 2017 10:18
SpalartAllmaras wall function in OpenFOAM 2.0.1 moser_r OpenFOAM Running, Solving & CFD 4 September 18, 2013 17:37
Same SimpleFOAM Case converges with openFOAM 2.1 but diverges with openFOAM 2.0.1 alsdia OpenFOAM Running, Solving & CFD 3 October 22, 2012 11:25
Building OpenFOAM 2.0.1 on SLES 10 SP1 x86_64 Hrushi OpenFOAM Installation 19 April 13, 2012 08:17
OpenFoam 2.0.1 installation shailesh.nitk OpenFOAM Installation 4 October 4, 2011 08:50

All times are GMT -4. The time now is 07:51.