CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Programming & Development (
-   -   What does "AdjustPhi" do? (

EmadTandis April 23, 2011 07:24

What does "AdjustPhi" do?
Hello everybody
In some solver we have "AdjustPhi(Phi,U,p)" that Adjust flux to obey continuty. I want to know what does it mean ?

marupio April 26, 2011 12:33

Going by memory here, I believe adjustPhi looks at all the boundary patches of the mesh, adding the mass flux. Some boundaries are adjustable, such as a pressure boundary condition. If the mass balance doesn't equal zero, it will modify the flux at the adjustable boundary conditions, and fail if it can't achieve a mass balance of zero. I also recall something to do with some sort of setPressure boolean (I forget its exact name). If setPressure is true, it will do all this, if it is false, it doesn't bother attempting this.

EmadTandis April 29, 2011 06:00

Do you mean this function just act on "mass flux of boundary conditions that does not fix"? and does not act on quantities of internal field?

marupio April 29, 2011 09:24

Yes, it doesn't touch the internal field. Just boundary patches that can be adjusted, such as zero gradient.

All times are GMT -4. The time now is 16:40.