CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   Nodes positions + velocity and pressure values at the nodes (http://www.cfd-online.com/Forums/fluent/27564-nodes-positions-velocity-pressure-values-nodes.html)

Lily Kabanj March 12, 2000 21:16

Nodes positions + velocity and pressure values at the nodes
 
I would like some advice on how to extract the x,y,z position of nodes (or cell centres) and the pressure and velocities values at the nodes (or cell centres) from FLUENT(TM) 5.0 simulation, using udf or otherwise.

Many thanks in advance.

daniel March 13, 2000 20:21

Re: Nodes positions + velocity and pressure values at the nodes
 
Hi

If you have the Fluent 5 UDF User's Guide (Dec 1998), you'll find the functions you want. For instance to access the x, y and z coordinates of a cell the following function is avialable:

C_CENTROID(x,c,t)

argument tupes: real x[ND_ND}, cell_t c, Thread *t

return x(cell centroid)

x[0] for x position x[1] for y position x[2] for z position

how to use them? look at that manual

Regards

Daniel


All times are GMT -4. The time now is 15:46.