|
[Sponsors] |
[Technical] How to use the socalled bcellShapeb tools |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 5, 2005, 23:03 |
How to use the socalled bcellShapeb tools
|
#1 |
Guest
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! |
|
January 6, 2005, 02:10 |
Not quite sure what you are t
|
#2 |
Guest
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, Hrv |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
BladeGen: Need explanation about some of the tools | amirhnp | ANSYS | 1 | April 29, 2015 01:19 |
[Gmsh] Looking for tetrahedral mesh generation tools | wc34071209 | OpenFOAM Meshing & Mesh Conversion | 0 | November 10, 2014 11:51 |
Floating objects in water flow: which tools and how much effort ? | TomGratte1 | Main CFD Forum | 0 | December 29, 2013 11:43 |
New Tools Section | pete | Site News & Announcements | 0 | April 9, 2011 19:32 |
CFX11 + Fortran compiler ? | Mohan | CFX | 20 | March 30, 2011 19:56 |