loop over all nodes for a given face zone
For the current release, fluent does not provide a macro to loop all the nodes for a given face zone. You could use begin_f_loop(f, tf) plus f_node_loop(f,tf,n) to achieve that. But each node will be visited multiple times if you do that. You can use the resolution provided here to achieve that without visiting nodes multiple times. begin_f_loop (f, tf) { f_node_loop (f, tf, n) SET_V_FLAGS (F_NODE (f, tf, n), TAG_FLAG); } end_f_loop (f, tf) begin_f_loop (f, tf) { f_node_loop (f, tf, n) { if (NODE_FLAG (v = F_NODE (f, tf, n), TAG_FLAG)) { CLEAR_V_FLAGS (v, TAG_FLAG); /* Your code */ } } } end_f_loop (f, tf) |
||
![]()
|