CFD Online Logo CFD Online URL
Home > Forums > Main CFD Forum

How to determine the location of the cell center

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

LinkBack Thread Tools Display Modes
Old   October 11, 2009, 06:58
Default How to determine the location of the cell center
New Member
Zoltán Hercz
Join Date: Sep 2009
Posts: 17
Rep Power: 10
zmester is on a distinguished road

My code being developed uses .msh mesh files from gambit, Icem etc. My problem is how to determine the location of the cell grid points if all the faces are given. I think its favourable if

-the grid points are in the centroid, (variable value in centroid represents better the average value within the cell)

- and if face centers are on the lines connecting the neighbouring grid points. (more accurate interpolating)

But how to do that in case 3d unstructured grid, or in case of a 2d triangle cell? (its easy in case of a square cell). I found that its impossible to statisfy both, or the second one. What do you suggest to determine the loc. of grid points within the cells? Should i use the centroid? if i should, how to determine where is the centroid in case of a 3d cell?
(with numerical integration for each cell? Doesnt it require to much additional calculation?)
thank you
zmester is offline   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
FvMatrix coefficients shrina OpenFOAM Running, Solving & CFD 10 October 3, 2013 14:38
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug unoder OpenFOAM Installation 11 January 30, 2008 21:30
Determine the exact location of the vertex center? Anna Main CFD Forum 3 April 4, 2006 11:04
Trimmed cell and embedded refinement mesh conversion issues michele OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 2 July 15, 2005 04:15
Warning 097- AB Siemens 6 November 15, 2004 05:41

All times are GMT -4. The time now is 01:39.