|
[Sponsors] |
May 12, 2010, 15:59 |
How to get the spacial poisiton
|
#1 |
Senior Member
Ben K
Join Date: Feb 2010
Location: Ottawa, Canada
Posts: 140
Rep Power: 19 |
Is there an easy way to get the spacial position of a node?
For example, on a 2D mesh that's 1m x 1m, I need to multiply a diffusivity by its distance between the current location on the mesh and from the origin (ie. x=0,y=0,z=0). So I need something like: Code:
forAll(diffusivity, i) { diffusivityNew[i] = diffusivity*distance_x[i]*distance_y[i]; } |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
monitoring spacial variation of a quantity | James | FLUENT | 1 | January 10, 2008 10:45 |
udf with spacial and time variables | hongxiao | FLUENT | 6 | March 17, 2005 23:46 |
creat a spacial plane | llunchun | Phoenics | 4 | December 18, 2002 04:02 |