SimpleFoam setting with total pressure at inlet
I'm running a simulation of an airplane and I usually use the solver for compressible, rhoSimplecFoam.
Now I'm setting the simulation for incompressibile solver simpleFoam. In the incompressibile solvers the pressure definition change, I have to define p/rho. So I set the problem using the same condition of the compressibile problem, dividing the pressure with the density. Is it correct to define the total pressure condition in the same way as reported? Thanks in advance, Dmaz pressure: internalField uniform 97956/1.16; inlet { type totalPressure; p0 uniform 99127.7/1.16; gamma 1.4; U U; phi phi; value $internalField; } outflow { type fixedValue; value $internalField; } velocity internalField uniform (5 0 0); inlet { type pressureInletVelocity; value uniform (44.85 0 0); } outlet { type pressureInletOutletVelocity; inletValue $internalField; value $internalField; } |
Hi Damz,
As far as I know, this is not correct. Are you getting the results as expected? You can refer to any Incompressible simpleFoam tutorial. The absolute pressure value does not matter in Incompressible solver. The general guideline is that you can set the reference pressure (p/rho) as zero and see the relative pressure change in your computational domain. |
Hi all,
I understand that the reference pressure is irrelevant in an incompressible solver such as simpleFoam. However how do I prescribe the correct density? As far as I know, the only control I have is over the kinematic viscosity (nu) defined inside constant/transportProperties, but nu is a function of both pressure and temperature, so how do I independently specify the density and viscosity? thanks! |
All times are GMT -4. The time now is 18:54. |