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

boundray conditions in OpenFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 8, 2011, 17:46
Default boundray conditions in OpenFoam
  #1
Member
 
yu
Join Date: Nov 2010
Posts: 39
Rep Power: 16
xiyuqiu is on a distinguished road
Hello all,

I have a mesh generated from netgen and is now converted into foam format using netgenNeutralToFoam command. I ran a checkMesh and got the following.

/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.7.0 |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 1.7.0-21131bcbd876
Exec : checkMesh
Date : Feb 08 2011
Time : 13:43:22
Host : tribe.cse.ucdavis.edu
PID : 25031
Case : /home/yuhou/my_foam_test_dir/test_runs/lam_pipe
nProcs : 1
SigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create polyMesh for time = 0

Time = 0

Mesh stats
points: 21203
faces: 213440
internal faces: 197952
cells: 102848
boundary patches: 4
point zones: 0
face zones: 0
cell zones: 0

Overall number of cells of each type:
hexahedra: 0
prisms: 0
wedges: 0
pyramids: 0
tet wedges: 0
tetrahedra: 102848
polyhedra: 0

Checking topology...
Boundary definition OK.
Point usage OK.
Upper triangular ordering OK.
Face vertices OK.
Number of regions: 1 (OK).

Checking patch topology for multiply connected surfaces ...
Patch Faces Points Surface topology
patch0 0 0 ok (empty)
patch1 14720 7408 ok (non-closed singly connected)
patch2 384 217 ok (non-closed singly connected)
patch3 384 217 ok (non-closed singly connected)

Checking geometry...
Overall domain bounding box (-15.2205 -12.5436 0) (7.77949 10.4564 224)
Mesh (non-empty, non-wedge) directions (1 1 1)
Mesh (non-empty) directions (1 1 1)
Boundary openness (6.97395e-16 4.61931e-17 2.7422e-19) OK.
Max cell openness = 3.15752e-16 OK.
Max aspect ratio = 8.26039 OK.
Minumum face area = 0.574487. Maximum face area = 5.89857. Face area magnitudes OK.
Min volume = 0.256933. Max volume = 2.45927. Total volume = 92844. Cell volumes OK.
Mesh non-orthogonality Max: 71.363 average: 31.0839
*Number of severely non-orthogonal faces: 14.
Non-orthogonality check OK.
<<Writing 14 non-orthogonal faces to set nonOrthoFaces
Face pyramids OK.
Max skewness = 0.759258 OK.

Mesh OK.

End

I tried to ran simpleFoam solver for this (this is just a pipe flow) but the code crashed. give
--> FOAM FATAL IO ERROR:
keyword patch0 is undefined in dictionary "/home/yuhou/my_foam_test_dir/test_runs/lam_pipe/0/p::boundaryField"

file: /home/yuhou/my_foam_test_dir/test_runs/lam_pipe/0/p::boundaryField from line 25 to line 46.

From function dictionary::subDict(const word& keyword) const
in file db/dictionary/dictionary.C at line 456.

FOAM exiting


I think it is because I don't have the boundary condition defined.
How can I defined the boundary conditions here? Or it has to be defined in netgen? thank you so much.
xiyuqiu is offline   Reply With Quote

Old   February 9, 2011, 15:19
Default
  #2
Member
 
Jason G.
Join Date: Sep 2009
Location: St. Louis, IL
Posts: 89
Rep Power: 17
JasonG is on a distinguished road
It appears "patch0" is defined in netgen, but doesn't contain anything.
JasonG is offline   Reply With Quote

Old   February 9, 2011, 15:40
Default
  #3
Member
 
yu
Join Date: Nov 2010
Posts: 39
Rep Power: 16
xiyuqiu is on a distinguished road
Thanks, Jason. I will going into the patch. Do you know other than define them by index of vertex, is there a better way? and what are the options. I found inlet, outlet, fixwall and such. What happen if I would like to define say a parabolic velocity profile at the inlet or something. Is there are good tutorial on this topic? thank you so much
xiyuqiu is offline   Reply With Quote

Old   February 9, 2011, 15:41
Default
  #4
Senior Member
 
aerothermal's Avatar
 
Guilherme da Silva
Join Date: Aug 2010
Location: Sao Paulo - Brazil
Posts: 120
Rep Power: 16
aerothermal is on a distinguished road
Send a message via Skype™ to aerothermal
yu,

define the names of our patches in constant/polyMesh/boundary file.
use the same name of the patches to assign your BC's in 0/ directory.
that should work for you.

guilherme
aerothermal is offline   Reply With Quote

Old   February 9, 2011, 15:44
Default
  #5
Member
 
yu
Join Date: Nov 2010
Posts: 39
Rep Power: 16
xiyuqiu is on a distinguished road
Thank you Guilherme. I will try it right away.
xiyuqiu 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
[CGNS] CGNS converters available mbeaudoin OpenFOAM Meshing & Mesh Conversion 137 December 14, 2018 05:20
[Gmsh] 2D Mesh Generation Tutorial for GMSH aeroslacker OpenFOAM Meshing & Mesh Conversion 12 January 19, 2012 04:52
Cross-compiling OpenFOAM 1.6 on Linux for Windows 32 and 64bits with Mingw-w64 wyldckat OpenFOAM Announcements from Other Sources 7 January 19, 2010 16:39
OpenFOAM Debian packaging current status problems and TODOs oseen OpenFOAM Installation 9 August 26, 2007 14:50
Setting a boundary conditions mer OpenFOAM Running, Solving & CFD 1 November 24, 2005 14:53


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