pressure boundary condition in openFoam
i am working on 2D multi elemet airfoil. i use simpleFoam,and k-epsilon turbulence model.
i have a question about the boundary condition and fvsolution:
1- can any one tell me, the pressure that we set for pressure boundary condition at inlet is absolute for gauge pressure?
2- what is difference between pReffValue and pRefCell in fvSolution in openFoam?
thanks for any one who can help me :)
1. I'm not familiar with the term gave pressure but what I can tell you that might help you is that the absolute pressure in an incompressible fluid simulation is not important. The fluid properties do not depend on it (as opposed to compressible flow). So whether you set the inlet to 0 Pa, 10 Pa, or 1e5 Pa will not influence your velocity field, nor will it influence your pressure gradients. It will not even influence the colors you see in paraFoam, just the value related to them.
2. pReffValue (e.g. 0 Pa) is the value of the pressure you set in pRefCell (e.g. cell 1000). These values are used when you only set Neumann boundary conditions for the pressure field. If you set a pressure at the inlet or outlet however, you just need to provide a value for these parameters but they will not be used.
Hope this helps...
thanks a lot, i mean gauge pressure, sorry for bad English :)
the value for pressure and rhoInf
when i want solve incompressible turbulent flow around airfoil using simpleFoam solver in openFoam,
i need to initialize pressure at 0 folder, my question is that the value that i should set for pressure at outlet is absolute(10e5 pa) or gauge(0 pa)?
what about initializing pressure for solving compressible turbulent flow around airfoil?
another question i have is about the value for "rhoInf" in "forceCoeffs" function at controlDict folder, we should set it to 1 or 1000 ?
i am confused, please help me understand them,thanks a lot:)
For initializing the pressure, you have a few options but the easiest is a uniform value equal to the fixedValue at the inlet or outlet. I usually take an outlet pressure of 0 Pa. Depending on the flow, this could be a bad initial estimate and the solver will crash shortly after starting the simulation. If this is the case, you might want to try to run potentialFoam first.
Related to the compressible flow, I haven't worked with it so I can't help you from experience. However, my guess is that the pressure and the density should be the absolute values that you expect. Setting the initial conditions should be similar to the incompressible case (but in terms of absolute values).
rhoInf is about 1.25 if you have air
|All times are GMT -4. The time now is 18:24.|