Find answers, ask questions, and connect with our <br>community around the world.

Home Forums OpenFOAM Forum Lesson 23 – Internal Flow

• Lesson 23 – Internal Flow

Posted by on December 16, 2023 at 3:47 pm

While looking at the video, one key question came to my mind is what is the difference between zeroGradient (non-transmissive BC) and uniform (0) (Transmissive BC). You displayed the BC in internal flow case tutorial but have not explained well, Cant we use the zeroGradient at the outlet instead of using uniform 0 boundary condition (BC)? what if we use uniform 0 condition (p=0) at the inlet and zeroGradient BC type at the outlet? What significance could this trade off have in such settings?

• BarÄ±ÅŸ Bicer

Moderator
January 5, 2024 at 2:01 pm

Hi Sulman,

First of all thank you for your nice question and happy new year. I am sorry the late response since I was in long holiday.

Lets go step by step:

1. This is incompressible solver and in incompressible solvers of OpenFOAM, we are using kinematic pressure instead of absolute pressure. Therefore, we are not interested in the exact pressure value for an incompressible flow in a channel, but only pressure difference.

2. zeroGradient means that the gradient of respective quantity is zero, meaning that the actual value is constant. Ususally, pressure is taken to be zeroGradient at an inlet, because the pressure is assumed to be constant there, whereas we will set the pressure to be 0 at the outlet.

3. In OpenFOAM you can use generally Dirichlet vs Neumann BCs. Moreover, at the inlet usually a velocity value is defined as fixed uniform value in OpenFOAM where pressure is assumed to be constant and assingned Neumann BCs which is zeroGradient.

4. Last thing is that why we assing 0 for pressure is related to NS equations that only the alteration of the pressure is presented, e.g. dp/dx, which means that only for pressure differences are being solved. In postprocessing is it just easier to handle the pressure distribution about zero

I hope that it is clear for you now.

Best.

Baris