CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Pre-Processing (
-   -   How to create BCs? (

joerg May 13, 2010 00:58

How to create BCs?
Beginner's question:
I have created the STL- geom and imported it by using snappyHexMesh.
sHM worked well, but how do I get the boundary conditions to OpenFoam?

=> I used DISCRETIZER, but that didn't work very well.

bjornthe May 17, 2010 10:28

If you use discretizer-setup.
After you created the snappyHexMesh. Reload that mesh and then choos a solver (simpleFoam etc).
Now you can create BC:s.


gwierink May 18, 2010 04:37

Hi Jörg,


how do I get the boundary conditions to OpenFoam?
You should be able to find a list of faces etc in constant/polyMesh/boundary. Then, using these names, you can define the BC's in 0/U 0/p etc.

bjornthe May 18, 2010 04:45

You can have a look:

last video shows an example of applying BC:s


gwierink May 19, 2010 02:34

Hi Björn,

Discretizer looks nice! Thanks for the effort!

joerg May 21, 2010 01:06

Got it!
Thank you Björn and gwierink (what ever that means)!!!
Morning has broken and sim got runnin'.

Thanks for discretizer! Nice tool - but manual is needed!

(Steps were: Geom in Pro/E=> STL with Pro/E => Editing STL manually (separating inlet/outlet faces) => creating mesh under DISCRETIZER with snappyHexmesh => creating BCs with DISCRETIZER => starting and viewing sim)


gwierink May 21, 2010 02:34

Hi Jörg,

Good to hear things are running!


gwierink (what ever that means)!!!
That means my username, my first name is Gijs for short. Don't tease me with that, I was born with it ... ;)

bjornthe May 21, 2010 11:43

I'm setting up an external aero case as a tutorial.

All times are GMT -4. The time now is 12:18.