boundary condition problems (openfoam) -- cfd online discussion forums

11
9/30/2014 Boundary condition 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:

Upload: anush-jk

Post on 26-Dec-2015

62 views

Category:

Documents


0 download

DESCRIPTION

CFD

TRANSCRIPT

Page 1: Boundary Condition Problems (OpenFOAM) -- CFD Online Discussion Forums

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

http://www.cfd-online.com/Forums/openfoam-meshing-other/16466-boundary-condition-problems-openfoam.html 1/11

[Sponsors]

HomeNewsForumsWikiLinksJobsBooksEventsToolsFeedsAboutSearch

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

MilosGuest Posts: n/a

Hi everyone!

I managed to transfer a file from ProEngineer to Gambit and afterwards to a .msh file, which I transferedagain 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 followingerror after starting the simulation:

Page 2: Boundary Condition Problems (OpenFOAM) -- CFD Online Discussion Forums

9/30/2014 Boundary condition 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 moresimple 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 JasakGuest 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

Page 3: Boundary Condition Problems (OpenFOAM) -- CFD Online Discussion Forums

9/30/2014 Boundary condition 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

MilosGuest Posts: n/a

Thnx Hrvoje, I suppose you're right.

June 7, 2010, 16:50 #4

wjarrahNew Member Walid JARRAHJoin Date: Nov 2009Location: INSA de RouenPosts: 14Rep Power: 6

Hello everyone,

I'd like to know if the initial and boundary conditions, the turbulence model, solution methods and controlsare 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 thenconvert 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

robynNew Member RobynJoin Date: Jun 2010Posts: 14Rep 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 fluid3 wall wall

Page 4: Boundary Condition Problems (OpenFOAM) -- CFD Online Discussion Forums

9/30/2014 Boundary condition 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 outlet5 velocity-inlet inlet7 interior default- interior

Each of these settings must be the same in your boundary fields of the p, U etc. files located in the 0directory.

November 17, 2010, 11:02 #6

mvossSenior Member Matthias VoßJoin Date: Mar 2009Location: Berlin, GermanyPosts: 410Rep Power: 10

hiyou can either change the entries in the msh.-file or just adjust the polymesh\"boundary" after runningfluentMeshToFoam.

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

xbookNew Member THJoin Date: Jun 2011Posts: 6Rep Power: 5

Similar problem here (I think). I'd really love to be able to transfer my boundaries, because my geometry isreally complex and it's very tedious to define the boundary conditions after converting in OpenFoam. I getthis when I try to convert my .msh file with fluent3DMeshToFoam:

Dimension of grid: 3Number of points: 46892PointGroup: 1 start: 0 end: 46891. Reading points...done.Number of faces: 329574FaceGroup: 2 start: 0 end: 88129. Reading uniform faces...done.

Page 5: Boundary Condition Problems (OpenFOAM) -- CFD Online Discussion Forums

9/30/2014 Boundary condition 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: 140305CellGroup: 10 start: 0 end: 140304 type: 1Zone: 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!

Page 6: Boundary Condition Problems (OpenFOAM) -- CFD Online Discussion Forums

9/30/2014 Boundary condition 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 RobynJoin Date: Jun 2010Posts: 14Rep Power: 6

I wrote it down in my note (which is not currently in my possession) but it has something to do with themesh you created. It needs to match within the bashrc file I believe. Can you post the last few bottom linesof the .msh file? The error occurs when the file names of the faces do not match with one another. How areyou creating your .msh?

~R

July 1, 2011, 03:51 #9

xbookNew Member THJoin Date: Jun 2011Posts: 6Rep Power: 5

Hello, thanks for the answer! Yes, I was already thinking that the problem must be somewhere in thatdirection. But I don't know exactly which files need to be adjusted in which way. The software that createsthe .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) ())

Page 7: Boundary Condition Problems (OpenFOAM) -- CFD Online Discussion Forums

9/30/2014 Boundary condition 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

xbookNew Member THJoin Date: Jun 2011Posts: 6Rep Power: 5

Ok, looks like I solved the problem though I don't quite fully understand it. He somehow wanted a boundary10, 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) ())

Page 8: Boundary Condition Problems (OpenFOAM) -- CFD Online Discussion Forums

9/30/2014 Boundary condition 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 aroundwith the .msh files I import?

July 8, 2011, 19:33 #11

StephyNew Member Join Date: Jul 2011Posts: 23Rep 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) andhopefully find an answer.I have a problem after importing my mesh.neu from Gambit. As it is imported from Gambit, it does not need aBlockMeshDict to work (as far as I noticed, but I might be wrong). So then, I have a problem when it comesto match this mesh with the files in the "0" folder, the boundary conditions like 'p' or 'U'. How should I fillthem to make them correspond to my mesh and make my simulation work ? I have not really any wall andwall type defined as I did the Boundary Conditions in Gambit.

OpenFoam says, for "icoFoam" for example:Create timeCreate mesh for time=0Reading TransportPropertiesReading field p

Page 9: Boundary Condition Problems (OpenFOAM) -- CFD Online Discussion Forums

9/30/2014 Boundary condition 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

xbookNew Member THJoin Date: Jun 2011Posts: 6Rep Power: 5

Check the boundary file in constant/polyMesh, it contains the imported mesh's boundary names. Then go tothe /0 folder and open the files there. Below "boundary field" you have to replace the default boundarynames 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_thaker2007Member JigneshJoin Date: Aug 2011Location: IndiaPosts: 68Rep Power: 5

How can i define the boundary condition for velocity and pressure at interface of air-water two phasepipe flow in OpenFOAM? I am trying to solve the problem of two-phase air water mixture in OpenFOAM. Air is coming from theperforated pipe which has number of holes on its periphery and then mix with water. Actually in gambiti gave interface boundary condition at perforated holes. but when i convert in to openFOAM i amfinding difficulty to define the proper boundary condition for velocity and pressure at this interfacebetween air and water in 0 directory.I drew the geometry in Gambit which is attached here for the reference.

Page 10: Boundary Condition Problems (OpenFOAM) -- CFD Online Discussion Forums

9/30/2014 Boundary condition 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 myproblem.

Attached Images

mixer.jpg (35.2 KB, 5 views)

« Previous Thread | Next Thread »

Posting Rules

You may not post new threadsYou may not post repliesYou may not post attachmentsYou may not edit your posts

BB code is OnSmilies are On[IMG] code is OnHTML code is OffTrackbacks are OnPingbacks are OnRefbacks 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

Page 11: Boundary Condition Problems (OpenFOAM) -- CFD Online Discussion Forums

9/30/2014 Boundary condition 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 andTODOs

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