|October 17, 2012, 12:11||
Calculating the centre of a surface
Join Date: Sep 2012
Posts: 77Rep Power: 6
I need to find centroid of multiple boundaries to implement in equation in UDF. I want Fluent to calculate the coordinates (x,z) of the centroid. I have written a code for area weighted centroid. I am getting an error. Can someone tell me what am I doing wrong?
( I think its with the A(). I need to calculate area in xz planes. Is it right?)
/* Calculating the centroid of the Boundary*/
a = (p*A)+a;
d = A + d;
Last edited by victoryv; October 17, 2012 at 16:59.
|October 17, 2012, 19:27||
Join Date: Apr 2010
Posts: 311Rep Power: 9
instead of "A"
|Thread||Thread Starter||Forum||Replies||Last Post|
|Problem with Gmsh||nishant_hull||Open Source Meshers: Gmsh, Netgen, CGNS, ...||23||August 5, 2015 02:09|
|Calculating the Wall Shear Stress Gradient over surface||123catty456||Main CFD Forum||1||October 1, 2012 22:27|
|killed "snappyHexMesh"||parkh32||OpenFOAM Pre-Processing||2||April 8, 2012 17:12|
|mass flow rate on the Iso-clip surface & interior||Sunil Gupta||FLUENT||0||April 22, 2008 09:29|
|user surface in post||xinzhangabc||CFX||0||February 24, 2005 07:29|