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

Location of faceCentres and cellCentres

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

Reply
 
LinkBack Thread Tools Display Modes
Old   November 10, 2017, 11:58
Default Location of faceCentres and cellCentres
  #1
New Member
 
Join Date: Mar 2015
Posts: 16
Rep Power: 4
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

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



All times are GMT -4. The time now is 23:08.