CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   regarding c_centroid macro (https://www.cfd-online.com/Forums/fluent/40997-regarding-c_centroid-macro.html)

Siddharth Khowala May 16, 2006 13:18

regarding c_centroid macro
 
hi, i was facing some problems using this macro ,in my UDF i wanted to define shear stress at two walls in a 2d flow using c_centroid ,I had used a 2d plate of dimensions 10*5 with mesh =(10,5),now when applying the c_centroid to the lower or upper wall the coordinates returned are (0.5,0) and (0.5,5) .The first coordinate in each seems to be ok,the second coordinate is troubling me ,I guess it should be (0.5,0.5) and (0.5,4.5) hence i am getting erroneous results,Any help would be highly appreciated ,the code can also be mailed,PLz provide ur email address if ur are willing to look into the code

regards


All times are GMT -4. The time now is 19:18.