CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Is this correct formula for centre of quad?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 5, 2005, 06:08
Default Is this correct formula for centre of quad?
  #1
Quarkz
Guest
 
Posts: n/a
Hi,

I'm trying to use structured grid on FVM with cell centered values. Hence given the coordinates of the quadrilateral, I need to find the cell centered coordinates.

I search thru the internet and one of them listed the formula as

coord (x1,y1) .... (x4,y4),

center x = (x1+x2+x3+x4)/4 center y = (y1+y2+y3+y4)/4.

Is this the correct formula?

Thanks alot!
  Reply With Quote

Old   July 5, 2005, 13:36
Default Re: Is this correct formula for centre of quad?
  #2
ganesh
Guest
 
Posts: n/a
Dear Quarkz,

If you are using the formulae for centroid of the quadrilateral, then you are absolutely right

Regards,

Ganesh
  Reply With Quote

Old   July 6, 2005, 00:53
Default Re: Is this correct formula for centre of quad?
  #3
Praveen
Guest
 
Posts: n/a
The centroid in a finite volume method is the area/volume averaged point. In general, it is not equal to the the arithmetic average of the vertices (except for a triangle). To find the centroid for an arbitrary polygon, see

http://astronomy.swin.edu.au/~pbourk...etry/polyarea/

  Reply With Quote

Old   July 6, 2005, 01:01
Default Re: Is this correct formula for centre of quad?
  #4
Praveen
Guest
 
Posts: n/a
The arithmetic average formula for the centroid is also valid for a quadrilateral.

http://mathworld.wolfram.com/Quadrilateral.html
  Reply With Quote

Old   July 6, 2005, 01:10
Default Re: Is this correct formula for centre of quad?
  #5
Quarkz
Guest
 
Posts: n/a
hi,

in that case, what is the difference between the two? if the 1st formula is not the centroid, what is it?

Can someone confirm that the 2nd formula is the correct one to find the center of a quadrilateral for a cell centre FVM?

thanks alot!
  Reply With Quote

Old   July 6, 2005, 03:23
Default Re: Is this correct formula for centre of quad?
  #6
zxaar
Guest
 
Posts: n/a
chill friend what you are doing works very well with FVM meshes, i am using the same approach in solver and had not got any problem till now.
  Reply With Quote

Old   July 6, 2005, 04:48
Default Re: Is this correct formula for centre of quad?
  #7
release
Guest
 
Posts: n/a
>The arithmetic average formula for the centroid is also valid for a quadrilateral.

Ouf !

;-)
  Reply With Quote

Old   July 7, 2005, 00:57
Default Re: Is this correct formula for centre of quad?
  #8
Praveen
Guest
 
Posts: n/a
For a cell-centered finite volume scheme, it is important to ensure that you are using the correct definition of centroid, especially for second order schemes where a linear reconstruction is used. It does not matter for a first order scheme. Remember that the cell-averaged value is a second order approximation to the value at the centroid,

u(x<sub>c</sub>) = u<sub>ave</sub> + O(h<sup>2</sup>)

but if you take any other point in the cell, then the cell averaged value is only a first order approximation

u(x) = u<sub>ave</sub> + O(h)

The formula for the centroid given in

http://astronomy.swin.edu.au/~pbourk...etry/polyarea/

is a general formula valid for any polygon. It should reduce to the arithmetic average formula for a triangle and quadrilateral.
  Reply With Quote

Old   August 24, 2018, 13:40
Smile The link is available on this address now.
  #9
New Member
 
Sangu
Join Date: Oct 2012
Posts: 1
Rep Power: 0
sangeethsimon is on a distinguished road
Hi,

The link to the centroid of a polygon that you posted has expired. The latest link is available here: https://www.seas.upenn.edu/~sys502/e...20Centroid.pdf
sangeethsimon 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 07:20
janafThermo: How to read formula? or at least: How to use hPolynomialThermo? bgoeppner OpenFOAM 0 February 22, 2010 16:17
Parallel computing quad core Prad Main CFD Forum 13 February 9, 2009 15:28
Questions about CPU's: quad core, dual core, etc. Tim FLUENT 0 February 26, 2007 15:02
Benetton Formula 1 CD adapco Group Marketing Siemens 13 February 7, 2002 10:33


All times are GMT -4. The time now is 05:11.