CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (https://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   Pressure BCs in buoyantPimpleFoam (https://www.cfd-online.com/Forums/openfoam-pre-processing/138484-pressure-bcs-buoyantpimplefoam.html)

superian July 4, 2014 14:51

Pressure BCs in buoyantPimpleFoam
 
1 Attachment(s)
Hello FOAMers,

I am using buoyantPimpleFoam to simulate a air flow within a furnished room.
Attachment 32119
I have one inlet, one outlet, and some furniture some of which act as heat sources (computers,lights,occupants).

But I am confused when setting pressure boundary conditions at inlet,outlet and walls.

p_rgh:
Quote:

internalField uniform 1e5;

for the walls/furniture:
type zeroGradient;

for inlet:
type zeroGradient;

for outlet:
type fixedValue;
value 1e5;
p:
Quote:

internalField uniform 1e5;

everything else:
type calculated;
value $internalField;
U:
Quote:

inlet:
type fixedValue
value uniform (0 0 0);

outlet:
type zeroGradient;

everything else (0 0 0);
Do these make sense? If not can anyone explain to me how I should set these up?


Thanks in advance,

Ian

jherb July 5, 2014 18:52

Have a look at the tutorial of buoyantPimpleFoam:
https://github.com/OpenFOAM/OpenFOAM...Foam/hotRoom/0

For the pressures (p_rgh) on the walls you probably want something like fixedFluxPressure.

0 velocity for the inlet does not make sense, because then its a wall.

superian July 7, 2014 18:04

Thanks for the reply!

You are right! My inlet should have a value.
It is actually:

type fixedValue
value uniform (0.086 0 0)

Maybe you know more about fixedFluxPressure. From what I understand is that it will calculate pressure based on the mass flow rate normal to the surface. Is this correct?

Also, can this be used as a BC for p_rgh at my inlet as well?


All times are GMT -4. The time now is 02:00.