You are on page 1of 11

9/30/2014 Boundarycondition problems (OpenFOAM) -- CFD Online Discussion Forums

http://www.cfd-online.com/Forums/openfoam-meshing-other/16466-boundary-condition-problems-openfoam.html 1/11
[Sponsors]
Home
News
Forums
Wiki
Links
Jobs
Books
Events
Tools
Feeds
About
Search
Home > Forums > OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ...
Boundary condition problems (OpenFOAM)
User Name User Name
Remember Me
Password Log in
REGISTER BLOGS COMMUNITY NEW POSTS UPDATED THREADS SEARCH
LINKBACK THREAD TOOLS DISPLAY MODES
March 14, 2009, 19:22 Boundary condition problems (OpenFOAM) #1
Milos
Guest

Posts: n/a
Hi everyone!
I managed to transfer a file from ProEngineer to Gambit and afterwards to a .msh file, which I transfered
again into an OpenFOAM format so I could run the simulation with OpenFOAM.
Everything seems all right, checkMesh says that the mesh is fine, but I'm constantly getting the following
error after starting the simulation:
9/30/2014 Boundarycondition problems (OpenFOAM) -- CFD Online Discussion Forums
http://www.cfd-online.com/Forums/openfoam-meshing-other/16466-boundary-condition-problems-openfoam.html 2/11
------------------------------------------- Create time
Create mesh for time = 0
Reading field p
keyword wall is undefined in dictionary "/home/milos/OpenFOAM/milos-1.5/run/test3/0/p::boundaryField"
file: /home/milos/OpenFOAM/milos-1.5/run/test3/0/p::boundaryField from line 25 to line 45.
From function dictionary::subDict(const word& keyword) const
in file db/dictionary/dictionary.C at line 271.
FOAM exiting
-------------------------------------------
My geometry is actually a pipe elbow with 3 blocks, inlet and an outlet. I guess it doesn't get much more
simple than that.
If anyone knows what does this error means, please let me know.
Thanks a lot!

March 15, 2009, 05:05 Re: Boundary condition problems (OpenFOAM) #2
Hrvoje Jasak
Guest

Posts: n/a
Please try the OpenFOAM forum - it will be easier to find help there:
http://openfoam.cfd-online.com/cgi-bin/forum/discus.cgi
Hrv

9/30/2014 Boundarycondition problems (OpenFOAM) -- CFD Online Discussion Forums
http://www.cfd-online.com/Forums/openfoam-meshing-other/16466-boundary-condition-problems-openfoam.html 3/11
March 15, 2009, 06:28 Re: Boundary condition problems (OpenFOAM) #3
Milos
Guest

Posts: n/a
Thnx Hrvoje, I suppose you're right.

June 7, 2010, 16:50 #4
wjarrah
New Member

Walid JARRAH
Join Date: Nov 2009
Location: INSA de Rouen
Posts: 14
Rep Power: 6

Hello everyone,
I'd like to know if the initial and boundary conditions, the turbulence model, solution methods and controls
are stored in the .cas file under fluent.
In other words, if I set all those parameters and save them in a .cas file using fluent (ascii mode), and then
convert the .cas file using fluent3DMeshToFoam tool, do I have to reset those parameters with openFoam,
or the converter does it automatically ?
Thank you in advance !

July 15, 2010, 10:27 #5
robyn
New Member

Robyn
Join Date: Jun 2010
Posts: 14
Rep Power: 6
Hello Milos,
I also had the same problem with OpenFoam when I first started.
The file will not read the boundary fields as they don't match the ones (inlet, outlet, wall etc) within the
.msh file. If you scroll to the very last portion of your .msh file there will be a list that looks similar to this:
2 fluid fluid
3 wall wall
9/30/2014 Boundarycondition problems (OpenFOAM) -- CFD Online Discussion Forums
http://www.cfd-online.com/Forums/openfoam-meshing-other/16466-boundary-condition-problems-openfoam.html 4/11
4 pressure-outlet outlet
5 velocity-inlet inlet
7 interior default- interior
Each of these settings must be the same in your boundary fields of the p, U etc. files located in the 0
directory.

November 17, 2010, 11:02 #6
mvoss
Senior Member

Matthias Vo
Join Date: Mar 2009
Location: Berlin, Germany
Posts: 410
Rep Power: 10
hi
you can either change the entries in the msh.-file or just adjust the polymesh\"boundary" after running
fluentMeshToFoam.
i go with setting everything to wall whilst meshing and change it afterwards.
neewbie
P.S.: and .. yes... change to OF-Forum is a good idea.

June 30, 2011, 10:15 #7
xbook
New Member

TH
Join Date: Jun 2011
Posts: 6
Rep Power: 5
Similar problem here (I think). I'd really love to be able to transfer my boundaries, because my geometry is
really complex and it's very tedious to define the boundary conditions after converting in OpenFoam. I get
this when I try to convert my .msh file with fluent3DMeshToFoam:
Dimension of grid: 3
Number of points: 46892
PointGroup: 1 start: 0 end: 46891. Reading points...done.
Number of faces: 329574
FaceGroup: 2 start: 0 end: 88129. Reading uniform faces...done.
9/30/2014 Boundarycondition problems (OpenFOAM) -- CFD Online Discussion Forums
http://www.cfd-online.com/Forums/openfoam-meshing-other/16466-boundary-condition-problems-openfoam.html 5/11
FaceGroup: 3 start: 88130 end: 319775. Reading uniform faces...done.
FaceGroup: 4 start: 319776 end: 321655. Reading uniform faces...done.
FaceGroup: 5 start: 321656 end: 323515. Reading uniform faces...done.
FaceGroup: 6 start: 323516 end: 325533. Reading uniform faces...done.
FaceGroup: 7 start: 325534 end: 327413. Reading uniform faces...done.
FaceGroup: 8 start: 327414 end: 328465. Reading uniform faces...done.
FaceGroup: 9 start: 328466 end: 329573. Reading uniform faces...done.
Number of cells: 140305
CellGroup: 10 start: 0 end: 140304 type: 1
Zone: 2 name: from-mask-1-to-background-wall type: wall. Reading zone data...done.
Zone: 3 name: mask-1-interior type: interior. Reading zone data...done.
Zone: 4 name: from-mask-1-to-xmin-wall type: wall. Reading zone data...done.
Zone: 5 name: from-mask-1-to-xmax-wall type: wall. Reading zone data...done.
Zone: 6 name: from-mask-1-to-ymin-wall type: wall. Reading zone data...done.
Zone: 7 name: from-mask-1-to-ymax-wall type: wall. Reading zone data...done.
Zone: 8 name: from-mask-1-to-zmin-wall type: wall. Reading zone data...done.
Zone: 9 name: from-mask-1-to-zmax-wall type: wall. Reading zone data...done.
FINISHED LEXING
--> FOAM FATAL ERROR:
10 not found in table. Valid entries: 8(2 3 4 5 6 7 8 9)
From function HashTable<T, Key, Hash>: perator[](const Key&)
in file /home/opencfd/OpenFOAM/OpenFOAM-1.7.x/src/OpenFOAM/lnInclude/HashTableI.H at line 110.
FOAM exiting
Any hints? What could I be doing wrong?

June 30, 2011, 12:53 #8
robyn
Hello xbook!
9/30/2014 Boundarycondition problems (OpenFOAM) -- CFD Online Discussion Forums
http://www.cfd-online.com/Forums/openfoam-meshing-other/16466-boundary-condition-problems-openfoam.html 6/11
New Member

Robyn
Join Date: Jun 2010
Posts: 14
Rep Power: 6
I wrote it down in my note (which is not currently in my possession) but it has something to do with the
mesh you created. It needs to match within the bashrc file I believe. Can you post the last few bottom lines
of the .msh file? The error occurs when the file names of the faces do not match with one another. How are
you creating your .msh?
~R

July 1, 2011, 03:51 #9
xbook
New Member

TH
Join Date: Jun 2011
Posts: 6
Rep Power: 5
Hello, thanks for the answer! Yes, I was already thinking that the problem must be somewhere in that
direction. But I don't know exactly which files need to be adjusted in which way. The software that creates
the .msh file is Simpleware's ScanIP ( www.simpleware.com ). The bottom lines in the .msh file:
(0 " Cells declaration: (0 first-index last-index cell-type-ignored-zero) ")
(12 (0 1 22411 0))
(0 " Cells: (zone-ix first-index last-index cell-type-active element-type-tetrahedral) ")
(0 " Zone: Mask 1 ")
(0 " zone-name: mask-1-fluid ")
(12 (a 1 22411 1 2))
(0 " Zone definitions: (zone-ix zone-type zone-name domain-id-one) ")
(0 " Zone: From Mask 1 to Background ")
(45 (2 wall from-mask-1-to-background-wall 1) ())
(0 " Zone: Mask 1 ")
(45 (3 interior mask-1-interior 1) ())
(0 " Zone: From Mask 1 to XMIN ")
(45 (4 wall from-mask-1-to-xmin-wall 1) ())
(0 " Zone: From Mask 1 to XMAX ")
(45 (5 wall from-mask-1-to-xmax-wall 1) ())
(0 " Zone: From Mask 1 to YMIN ")
(45 (6 wall from-mask-1-to-ymin-wall 1) ())
9/30/2014 Boundarycondition problems (OpenFOAM) -- CFD Online Discussion Forums
http://www.cfd-online.com/Forums/openfoam-meshing-other/16466-boundary-condition-problems-openfoam.html 7/11
(0 " Zone: From Mask 1 to YMAX ")
(45 (7 wall from-mask-1-to-ymax-wall 1) ())
(0 " Zone: From Mask 1 to ZMIN ")
(45 (8 wall from-mask-1-to-zmin-wall 1) ())
(0 " Zone: From Mask 1 to ZMAX ")
(45 (9 wall from-mask-1-to-zmax-wall 1) ())

July 1, 2011, 09:00 #10
xbook
New Member

TH
Join Date: Jun 2011
Posts: 6
Rep Power: 5
Ok, looks like I solved the problem though I don't quite fully understand it. He somehow wanted a boundary
10, so I just duplicated the last line in the mesh file and edited it to a 10 and it worked:
(0 " Cells declaration: (0 first-index last-index cell-type-ignored-zero) ")
(12 (0 1 22411 0))
(0 " Cells: (zone-ix first-index last-index cell-type-active element-type-tetrahedral) ")
(0 " Zone: Mask 1 ")
(0 " zone-name: mask-1-fluid ")
(12 (a 1 22411 1 2))
(0 " Zone definitions: (zone-ix zone-type zone-name domain-id-one) ")
(0 " Zone: From Mask 1 to Background ")
(45 (2 wall from-mask-1-to-background-wall 1) ())
(0 " Zone: Mask 1 ")
(45 (3 interior mask-1-interior 1) ())
(0 " Zone: From Mask 1 to XMIN ")
(45 (4 wall from-mask-1-to-xmin-wall 1) ())
(0 " Zone: From Mask 1 to XMAX ")
(45 (5 wall from-mask-1-to-xmax-wall 1) ())
9/30/2014 Boundarycondition problems (OpenFOAM) -- CFD Online Discussion Forums
http://www.cfd-online.com/Forums/openfoam-meshing-other/16466-boundary-condition-problems-openfoam.html 8/11
(0 " Zone: From Mask 1 to YMIN ")
(45 (6 wall from-mask-1-to-ymin-wall 1) ())
(0 " Zone: From Mask 1 to YMAX ")
(45 (7 wall from-mask-1-to-ymax-wall 1) ())
(0 " Zone: From Mask 1 to ZMIN ")
(45 (8 wall from-mask-1-to-zmin-wall 1) ())
(0 " Zone: From Mask 1 to ZMAX ")
(45 (9 wall from-mask-1-to-zmax-wall 1) ())
(45 (10 wall from-mask-1-to-zmax-wall 1) ())
Where in openFoam do I edit the number of boundary conditions he expects so I don't have to mess around
with the .msh files I import?

July 8, 2011, 19:33 #11
Stephy
New Member

Join Date: Jul 2011
Posts: 23
Rep Power: 5
Hello all,
As I have ne answer from the OF forum, I come here to post my problem (very similar as those here) and
hopefully find an answer.
I have a problem after importing my mesh.neu from Gambit. As it is imported from Gambit, it does not need a
BlockMeshDict to work (as far as I noticed, but I might be wrong). So then, I have a problem when it comes
to match this mesh with the files in the "0" folder, the boundary conditions like 'p' or 'U'. How should I fill
them to make them correspond to my mesh and make my simulation work ? I have not really any wall and
wall type defined as I did the Boundary Conditions in Gambit.
OpenFoam says, for "icoFoam" for example:
Create time
Create mesh for time=0
Reading TransportProperties
Reading field p
9/30/2014 Boundarycondition problems (OpenFOAM) -- CFD Online Discussion Forums
http://www.cfd-online.com/Forums/openfoam-meshing-other/16466-boundary-condition-problems-openfoam.html 9/11
--> FOAM FATAL IO ERROR:
keyword wall is undefined in dictionary ".../0/p::boundaryField"
file: /home/.../0/p::boundaryField from line 25 to line 35.
From function dictionary::subDict(const word& keyword) const
in file db/dictionary/dictionary.C at line 461.
FOAM exiting
Could someone help me and tell me how to make it work ?
thank you very much !!

July 11, 2011, 04:08 #12
xbook
New Member

TH
Join Date: Jun 2011
Posts: 6
Rep Power: 5
Check the boundary file in constant/polyMesh, it contains the imported mesh's boundary names. Then go to
the /0 folder and open the files there. Below "boundary field" you have to replace the default boundary
names with your boundary names (and choose its type) with an editor.

June 10, 2014, 16:35 Boundary conditions of pressure and velocityfor air-water two phase pipe flow problem #13
jignesh_thaker2007
Member

Jignesh
Join Date: Aug 2011
Location: India
Posts: 68
Rep Power: 5
How can i define the boundary condition for velocity and pressure at interface of air-water two phase
pipe flow in OpenFOAM?
I am trying to solve the problem of two-phase air water mixture in OpenFOAM. Air is coming from the
perforated pipe which has number of holes on its periphery and then mix with water. Actually in gambit
i gave interface boundary condition at perforated holes. but when i convert in to openFOAM i am
finding difficulty to define the proper boundary condition for velocity and pressure at this interface
between air and water in 0 directory.
I drew the geometry in Gambit which is attached here for the reference.
9/30/2014 Boundarycondition problems (OpenFOAM) -- CFD Online Discussion Forums
http://www.cfd-online.com/Forums/openfoam-meshing-other/16466-boundary-condition-problems-openfoam.html 10/11
Please some tell me what is the proper boundary condition of velocity and pressure at interface for my
problem.
Attached Images
mixer.jpg (35.2 KB, 5 views)

Previous Thread | Next Thread
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Rules
Similar Threads
Thread Thread Starter Forum Replies Last Post
inlet velocity boundary condition murali CFX 5 August 3, 2012 08:56
Boundary condition problems Rose2011 OpenFOAM 2 July 1, 2011 12:00
vorticity boundary condition bearcharge Main CFD Forum 0 May 14, 2010 11:32
9/30/2014 Boundarycondition problems (OpenFOAM) -- CFD Online Discussion Forums
http://www.cfd-online.com/Forums/openfoam-meshing-other/16466-boundary-condition-problems-openfoam.html 11/11
OpenFOAM Debian packaging current status problems and
TODOs
oseen OpenFOAM Installation 9 August 26, 2007 13:50
Problems implementing a boundary condition ogloth OpenFOAM Running, Solving & CFD 3 July 17, 2007 15:36
All times are GMT -4. The time now is 07:17.
Contact Us - CFD Online - Top

CFD Online

You might also like