CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[Commercial meshers] Boundary condition problems (OpenFOAM)

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread 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, 17:50
Default
  #4
New Member
 
Walid JARRAH
Join Date: Nov 2009
Location: INSA de Rouen
Posts: 14
Rep Power: 17
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, 11:27
Default
  #5
New Member
 
Robyn
Join Date: Jun 2010
Posts: 14
Rep Power: 16
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: 449
Rep Power: 20
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, 11:15
Default
  #7
New Member
 
TH
Join Date: Jun 2011
Posts: 6
Rep Power: 15
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, 13:53
Default
  #8
New Member
 
Robyn
Join Date: Jun 2010
Posts: 14
Rep Power: 16
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, 04:51
Default
  #9
New Member
 
TH
Join Date: Jun 2011
Posts: 6
Rep Power: 15
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, 10:00
Default
  #10
New Member
 
TH
Join Date: Jun 2011
Posts: 6
Rep Power: 15
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, 20:33
Default
  #11
New Member
 
Join Date: Jul 2011
Posts: 23
Rep Power: 15
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, 05:08
Default
  #12
New Member
 
TH
Join Date: Jun 2011
Posts: 6
Rep Power: 15
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, 17: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: 15
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, 40 views)
jignesh_thaker2007 is offline   Reply With Quote

Old   October 13, 2016, 20:58
Default Meshing around Blade - leading to Boundary problems
  #14
New Member
 
Harshal Akolekar
Join Date: Aug 2016
Location: Melbourne
Posts: 25
Rep Power: 10
hakolekar is on a distinguished road
Hi everyone,

I am trying to import a mesh for a blade from an ascii format into OpenFoam using plot3dToFoam

Next, I follow it up with autoPatch 35 -overwrite.

The autoPatch command creates 2 unnecessary boundary patches of 1 face each (which are overlapping), wblade2.jpg

blade4.jpghich don't fit into any boundary, and which I don't want. (please see attached pictures)

Is there any way of getting rid of these extra patches?

If I ignore these patches from the boundary file and then run simpleFoam - simpleFoam runs successfully. On opening Paraview to view the solution, Paraview crashes after pressing the 'Apply' button and there is an error

FOAM FATAL Error:
0 not in Table. Valid entries are:
3258
{ (3258 numbers are present in this bracket)
}

Does anyone have any idea about this matter?
Thank you.
Regards,
Harshal
hakolekar is offline   Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Wind turbine simulation Saturn CFX 60 July 17, 2024 06:45
CFD analaysis of Pelton turbine amodpanthee CFX 31 April 19, 2018 19:02
several fields modified by single boundary condition schröder OpenFOAM Programming & Development 3 April 21, 2015 06:09
How to set outflow boundary condition in openfoam gejiabin OpenFOAM Running, Solving & CFD 4 March 11, 2014 08:16
RPM in Wind Turbine Pankaj CFX 9 November 23, 2009 05:05


All times are GMT -4. The time now is 16:13.