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

[Other] Location of faceCentres and cellCentres

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 10, 2017, 11:58
Default Location of faceCentres and cellCentres
  #1
Member
 
Join Date: Mar 2015
Posts: 36
Rep Power: 11
K.C. is on a distinguished road
Dear Foamers,

I have a simple question, but can not find the answer in the user or programmer guide.
How is the cellCentre determined in OF?

I thought the cellCentre-vector is determined by the centre of mass in the cell e.g.:

x_centre = Int(x*dV) / volume of cell
y_centre = Int(y*dV) / volume of cell
z_centre = Int(z*dV) / volume of cell

Only in this way the volume integration in finite volume method would be second order accurate, but i can not find the porof in the documentation.
Do you remember, where to find the proof or is the cell centre determined in a different way?

In addition, I would need to know, if faceCentre are determined in the same way. So are teh face centres the real centroid of the face Area:

x_centre = Int(x*dA) / area of face
y_centre = Int(y*dA) / area of face

Best thanks for any reply,
K.C.
K.C. 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



All times are GMT -4. The time now is 02:34.