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

comporessibleInterFoam BC p_rgh OF 2.0.1

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 8, 2016, 06:49
Default comporessibleInterFoam BC p_rgh OF 2.0.1
  #1
New Member
 
Stefan
Join Date: Oct 2015
Posts: 24
Rep Power: 11
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)

U
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;


p_rgh
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

Stefan
StefanW is offline   Reply With Quote

Old   March 8, 2016, 09:39
Default
  #2
Senior Member
 
Olivier
Join Date: Jun 2009
Location: France, grenoble
Posts: 272
Rep Power: 18
olivierG is on a distinguished road
hello,

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.

regards,
olivier
olivierG is offline   Reply With Quote

Old   March 8, 2016, 11:06
Thumbs up Thank You!
  #3
New Member
 
Stefan
Join Date: Oct 2015
Posts: 24
Rep Power: 11
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

THX
StefanW is offline   Reply With Quote

Reply

Tags
cavitation, compressible, compressibleinterfoam, multiphase, p_rgh


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 11:18
SpalartAllmaras wall function in OpenFOAM 2.0.1 moser_r OpenFOAM Running, Solving & CFD 4 September 18, 2013 18: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 12:25
Building OpenFOAM 2.0.1 on SLES 10 SP1 x86_64 Hrushi OpenFOAM Installation 19 April 13, 2012 09:17
OpenFoam 2.0.1 installation shailesh.nitk OpenFOAM Installation 4 October 4, 2011 09:50


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