CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   cell in 2D (https://www.cfd-online.com/Forums/fluent/44266-cell-2d.html)

Sangeeta March 27, 2007 11:50

cell in 2D
 
I want to know the number of cells, area of each cell and the length of each cell(if quad mesh) in 2D geometry. Is there any macro or any other way to get the above. Please let me know.

Thanks in advance.

Rizwan March 28, 2007 15:11

Re: cell in 2D
 
when u chek the grid, i guess u can find all the abouve parameters, ryt? if u need to write a udf, then i guess F_AREA(face,face_thread) macro givs u area of each face.

but finding length of each cell, i hope this is cumbersome even using udf's. as u need to 1. loop through each cell thread, 2. then through each cell then loop through nodes and 3. find the coordinates of each node 4. then try to find the distance between them (analytical geom relationship) or finding the position vector w.r.t 1 cell nodes to others then find the maginitude of such a postion vector.

hope this helps

Regards

Rizwan


All times are GMT -4. The time now is 21:33.