|
[Sponsors] |
June 10, 2019, 07:58 |
UDF looping over nodes of a Face
|
#1 |
New Member
nguyenhoa
Join Date: Apr 2019
Posts: 9
Rep Power: 7 |
Hi everyone!
I have a question about macros looping over nodes of a face. I knew the function is F_NODE (f,t,n) where f is face, t is thread, and n is local node index number. my question is how can i point a node, which have a local index number is knew (n=0). For example, i have node A(x0,y0). How i can assign NODE A = F_NODE(f,t,0)? Best regards! |
|
June 10, 2019, 22:12 |
|
#2 | |
Senior Member
Join Date: Feb 2010
Posts: 164
Rep Power: 17 |
Quote:
|
||
June 10, 2019, 22:14 |
|
#3 |
New Member
nguyenhoa
Join Date: Apr 2019
Posts: 9
Rep Power: 7 |
||
June 11, 2019, 05:55 |
|
#4 | |
Senior Member
Join Date: Feb 2010
Posts: 164
Rep Power: 17 |
Quote:
Node *v; f_node_loop(f,tf,n) // n will change from 0 to NodeCount-1 of face f { v = F_NODE(f,tf,n); // v is the node corresponding to Node index n // now you can operate something for node v } |
||
June 11, 2019, 06:01 |
|
#5 | |
New Member
nguyenhoa
Join Date: Apr 2019
Posts: 9
Rep Power: 7 |
Quote:
Thanks! |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Fluent UDF wrong number of cells in parallel - correct in serial | dralexpe | Fluent UDF and Scheme Programming | 7 | May 17, 2018 09:26 |
face looping.. water hammer.. dynamic mesh | alian | FLUENT | 2 | November 21, 2015 08:36 |
UDF for Heat Exchanger model | francois louw | FLUENT | 2 | July 16, 2010 03:21 |
I want to use pressure of 1 face in udf that compiled on other face | iman_1844 | Fluent UDF and Scheme Programming | 3 | June 10, 2010 13:55 |
fluent add additional zones for the mesh file | SSL | FLUENT | 2 | January 26, 2008 12:55 |