CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   Accessing flow properties at certain points inUDFs (http://www.cfd-online.com/Forums/fluent/35730-accessing-flow-properties-certain-points-inudfs.html)

nicolas February 14, 2005 12:26

Accessing flow properties at certain points inUDFs
 
Hi I need to obtain the velocity at a given point inside a udf. How can this be done? Thanks

ap February 14, 2005 15:32

Re: Accessing flow properties at certain points in
 
You may loop over the cells, find their centroid with C_CENTROID and localize with an if clause the point you need.

Regards, ap

nicolas February 14, 2005 21:42

Re: Accessing flow properties at certain points in
 
But how can I know if a certain point is contained in a cell? The C_CENTROID macro gives the coordinates of the centroid of the cell, but the point I have may not be exactly this, but still contained inside the cell. Isn't there a macro to determine if a point is inside a cell?


All times are GMT -4. The time now is 07:56.