CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Why is fixedFluxPressure more stable ? (https://www.cfd-online.com/Forums/openfoam/246364-why-fixedfluxpressure-more-stable.html)

hr_nt November 29, 2022 01:26

Why is fixedFluxPressure more stable ?
 
I recently an few multiphase scenarios using interFoam and found that fixedFluxPressure is more stable for the simulation than zeroGradient. What might be the issue for this ?

vatavuk December 2, 2022 18:17

Hi HR,

At the 11th OpenFOAM Workshop there was a Training Course with the title "Learning how to use free surface flows in OpenFOAM 3.0" by Victoria Korchagova. This course is the only material that I found that explains this boundary condition. Is it for OF version 3, but I think that it also applies to newer versions. You can download the course material in this page:
https://openfoam-extend.sourceforge....s/courses.html

Yann December 5, 2022 03:48

The OpenFOAM user guide also mention it, despite not giving much details:

Quote:

5.2.3.3 Fixed flux pressure

In the above example, it can be seen that all the wall boundaries use a boundary condition named fixedFluxPressure. This boundary condition is used for pressure in situations where zeroGradient is generally used, but where body forces such as gravity and surface tension are present in the solution equations. The condition adjusts the gradient accordingly.
https://doc.cfd.direct/openfoam/user...v10/boundaries

There are also on old thread here discussing it: https://www.cfd-online.com/Forums/op...xpressure.html

My personal experience with buoyantSimpleFoam is that I get a flowrate through the walls when using zeroGradient and it does not happen with fixedFluxPressure.

Yann

hjasak December 10, 2022 09:09

Hi,

This is because when you’re solving for p, zero gradient isn’t the correct boundary condition. Consider additional forces, such as gravity: if you zero gradient the pressure, such terms will give you flux through a wall.

Fixed flux pressure compensates for it to achieve zero flux: you get a pressure gradient on the wall to balance all other flux contributions.

Hrv


All times are GMT -4. The time now is 06:03.