Ansys Learning Forum › Forums › Discuss Simulation › Fluids › UDF: define grid motion – loop over surface nodes in what order? › Reply To: UDF: define grid motion – loop over surface nodes in what order?
March 5, 2021 at 12:57 pm
Subscriber
Hi Yasser,nA follow up question. For my problem I need to call two horizontal neighboring nodes, from your answer I understand the loop over surface nodes does not guarantee that.nSo it not necessarily run from N i to N i+1 ? nDo you know the range of variable v of the node loop? [0, N-1]? with N being total number of nodes?.I am just reading the manual for 'F_UDMI' but not sure I fully understand it.nhttps://www.afs.enea.it/project/neptunius/docs/fluent/html/udf/node103.htmnnDo you think this will work? Many thanks in Advance!!nLets say I have a horizontal beam cut out of the domain and mesh nodes on its surface.nTo identify the horizontal neighboring nodes I would loop over each node before moving them and store within a Store(N,3) matrixnStore[0]= Node ID; // CAN THIS BE DONE WITH F_UDMI?nStore[1]= NODE_X(v);nStore[2]= NODE_Y(v);nvoid function organize //organizes the store matrix according to Store[1] = Node_X position from small to largennFinally, I can call the nodes in order based on their location in the matrix and store ID value.nn
n
n