CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Meshing Format & General Technical

How to use the socalled bcellShapeb tools

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

LinkBack Thread Tools Display Modes
Old   January 5, 2005, 23:03
Default I can not find a step-by-step
Luckyluke (Luckyluke)
Posts: n/a
I can not find a step-by-step instruction for the using of 'cellShape' in the file 'UserGuide.pdf'. I want to use non-hex
mesh in my simulation(triangular for 2D or tet for 3D). How should I write my dictionary file and which utility may be called?

Please help me. I want to become familar with the great OpenFOAM!
  Reply With Quote

Old   January 6, 2005, 02:10
Default Not quite sure what you are t
Hrvoje Jasak (Hjasak)
Posts: n/a
Not quite sure what you are trying to do: the code does not care about the cell shape at run-time, so the only problem you may have is getting the mesh into foam.

If none of the converters will do the job for you, you may need to write one yourself and here is some guidance:
- all meshes is foam (well, almost) are 3-D. If you want a "2-D" mesh of triagnles, you should create a flat 1-layer cell mesh of triangular prisms.
- the mesh is defined by 4 files:
points: (x y z) point locations
faces: for each face, an order list of point labels. There is an immportant ordering rule for this (read the manual)
cells: for each cell, a list of faces
boundary: list of boundary patches (see ordering rules and manual for explanation

There is also a nice hepler constructor in polyMesh that allows you to create a mesh using cell shapes for cases like yours instead of calculating the faces and their ordering yourselves. You will need the following info:
points: as above
cells: list of cell shapes in terms of vertices, something like hex(55 23 84 77 11 14 16 71)
boundary: list of boundary faces for each patch.

I am pretty certain that cell shape definitions are in the manual (at least they were there a while back) - if there is a problem please let me know. Incidentally, I have written a detailed instruction on writing mesh converters a couple of years ago, so this should be in the manual as welll...

Please study the code in existing converters and read the relevant comments in polyMesh.H and createPolyMesh.C

Good luck,

  Reply With Quote


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
FSI tools Benjamon Main CFD Forum 0 June 2, 2008 06:40
CFD tools Dmitri Main CFD Forum 1 June 7, 2006 06:01
EFD tools CAD user Main CFD Forum 1 November 14, 2003 16:07
CFD tools Stephane Citherlet Main CFD Forum 3 January 16, 2003 03:12

All times are GMT -4. The time now is 15:06.