CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ...

Boundary condition problems (OpenFOAM)

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   March 14, 2009, 19:22
Default 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:

------------------------------------------- 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!

  Reply With Quote

Old   March 15, 2009, 05:05
Default 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
  Reply With Quote

Old   March 15, 2009, 06:28
Default Re: Boundary condition problems (OpenFOAM)
  #3
Milos
Guest
 
Posts: n/a
Thnx Hrvoje, I suppose you're right.
  Reply With Quote

Old   June 7, 2010, 16:50
Default
  #4
New Member
 
Walid JARRAH
Join Date: Nov 2009
Location: INSA de Rouen
Posts: 14
Rep Power: 7
wjarrah is on a distinguished road
Send a message via MSN to wjarrah Send a message via Skype™ to wjarrah
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 !
wjarrah is offline   Reply With Quote

Old   July 15, 2010, 10:27
Default
  #5
New Member
 
Robyn
Join Date: Jun 2010
Posts: 14
Rep Power: 7
robyn is on a distinguished road
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
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.
robyn is offline   Reply With Quote

Old   November 17, 2010, 12:02
Default
  #6
Senior Member
 
Matthias Voß
Join Date: Mar 2009
Location: Berlin, Germany
Posts: 446
Rep Power: 11
mvoss is on a distinguished road
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.
mvoss is offline   Reply With Quote

Old   June 30, 2011, 10:15
Default
  #7
New Member
 
TH
Join Date: Jun 2011
Posts: 6
Rep Power: 6
xbook is on a distinguished road
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.
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?
xbook is offline   Reply With Quote

Old   June 30, 2011, 12:53
Default
  #8
New Member
 
Robyn
Join Date: Jun 2010
Posts: 14
Rep Power: 7
robyn is on a distinguished road
Hello xbook!

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
robyn is offline   Reply With Quote

Old   July 1, 2011, 03:51
Default
  #9
New Member
 
TH
Join Date: Jun 2011
Posts: 6
Rep Power: 6
xbook is on a distinguished road
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) ())

(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) ())
xbook is offline   Reply With Quote

Old   July 1, 2011, 09:00
Default
  #10
New Member
 
TH
Join Date: Jun 2011
Posts: 6
Rep Power: 6
xbook is on a distinguished road
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) ())

(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?
xbook is offline   Reply With Quote

Old   July 8, 2011, 19:33
Default
  #11
New Member
 
Join Date: Jul 2011
Posts: 23
Rep Power: 6
Stephy is on a distinguished road
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

--> 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 !!
Stephy is offline   Reply With Quote

Old   July 11, 2011, 04:08
Default
  #12
New Member
 
TH
Join Date: Jun 2011
Posts: 6
Rep Power: 6
xbook is on a distinguished road
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.
xbook is offline   Reply With Quote

Old   June 10, 2014, 16:35
Default Boundary conditions of pressure and velocityfor air-water two phase pipe flow problem
  #13
Member
 
Jignesh
Join Date: Aug 2011
Location: India
Posts: 68
Rep Power: 5
jignesh_thaker2007 is on a distinguished road
Send a message via Yahoo to jignesh_thaker2007
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.

Please some tell me what is the proper boundary condition of velocity and pressure at interface for my problem.
Attached Images
File Type: jpg mixer.jpg (35.2 KB, 13 views)
jignesh_thaker2007 is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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


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
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 02:46.