|
[Sponsors] |
March 8, 2016, 06:49 |
comporessibleInterFoam BC p_rgh OF 2.0.1
|
#1 |
New Member
Stefan
Join Date: Oct 2015
Posts: 24
Rep Power: 11 |
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 |
|
March 8, 2016, 09:39 |
|
#2 |
Senior Member
Olivier
Join Date: Jun 2009
Location: France, grenoble
Posts: 272
Rep Power: 18 |
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 |
|
March 8, 2016, 11:06 |
Thank You!
|
#3 |
New Member
Stefan
Join Date: Oct 2015
Posts: 24
Rep Power: 11 |
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 |
|
Tags |
cavitation, compressible, compressibleinterfoam, multiphase, p_rgh |
|
|
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 |