CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Pre-Processing (
-   -   spatial non uniform boundary conditions ( October 26, 2012 10:53

spatial non uniform boundary conditions
Hi all,

i'm looking for the proper way in order to assign spatially non-uniform boundary condition at the inflow side. For example, a parabolic velocity profile varying along z (vertical) axis.
The condition is steady in time.
Can anyone give me a suggestion about what is the best type of BCs to choose in order to do it?

Thanks all for the support.



ngj October 29, 2012 04:34

Hi Andrea,

In that case, I would suggest that you start by looking at swak4Foam, where you can specify e.g. algebraic expressions: .

If you search for swak4Foam on the forum, you will find many threads describing its usage.

Kind regards,

Niels October 29, 2012 13:42

Hi Niels,

thank you for your reply.
In fact, I'm taking a look to skaw4foam...but it's not clear to me if is possible to assign non uniform condition by points (and then the solver interpolates the velocity profile in the missing points) or just by algebrical expressions.
Can you answer to this question?

Thanks you so much for your support.



ngj October 29, 2012 15:41

Hi Andrea,

No, I have never used swak4Foam.

Good luck,


duongquaphim November 12, 2012 10:29

I think groovyBC is quite a good tool for this purpose ( I used that before and it works well.


All times are GMT -4. The time now is 14:15.