|
[Sponsors] |
May 18, 2009, 13:32 |
host_to_node data transfer
|
#1 |
New Member
Ellen
Join Date: Mar 2009
Posts: 11
Rep Power: 17 |
Hi,
I need to transfer a 2-d array from the host to nodes, but I didn't find any such examples in the udf manual. suppose my array is A[20][4], how should I write for this: host_to_node_real(A, 20,4)? could anyone please help me on this? Thank you so much. ellen |
|
May 19, 2009, 05:33 |
|
#2 |
Senior Member
Max
Join Date: Mar 2009
Posts: 133
Rep Power: 17 |
Hello Ellen,
i guess you have to split your multi-dimensional array into e.g. 4 1-d arrays of length 20 and use the common host-to-node macros. Each node will have to resemble the full array again. This is really nasty, thus if you find a more elegant way let me know. cheers |
|
May 19, 2009, 13:46 |
|
#3 |
Member
Join Date: Mar 2009
Location: Istanbul, Turkiye
Posts: 47
Rep Power: 17 |
Hi,
I think serial data transfer method using standard macros located inside a loop structure can be used. If you dont have a solution yet you can try this. regards |
|
May 19, 2009, 17:37 |
|
#4 |
New Member
Ellen
Join Date: Mar 2009
Posts: 11
Rep Power: 17 |
thank you for your reply, coglione. There seems to be no direct way for this transfer operation... I'll convert my 2d array as you suggested then.
thanks, ellen |
|
May 19, 2009, 17:41 |
|
#5 |
New Member
Ellen
Join Date: Mar 2009
Posts: 11
Rep Power: 17 |
I just saw your reply, gemini, thanks. but I'm not quite sure how to carry out your suggested method, could you elaborate more or give an example?
thank you. |
|
May 30, 2009, 12:34 |
|
#6 | |
Member
Join Date: Mar 2009
Location: Istanbul, Turkiye
Posts: 47
Rep Power: 17 |
Quote:
Hi ElllenW, I'm sorry, I don't have a ready example for you, however, you can start with the section titled as "7.5.8 Message Passing Macros" in UDF manual (/help/html/udf/node214.htm) in which low-level message passing macros are described and there is an example about data transfer between nodes and between node0 and host. I think that section will be helpful. Btw, if I reach any example about your case, I'll write here. Good luck |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Data Transfer - Polyflow to Fluent to Abaqus | Bob Carson | FLUENT | 0 | March 27, 2007 10:31 |
How to update polyPatchbs localPoints | liu | OpenFOAM Running, Solving & CFD | 6 | December 30, 2005 18:27 |
Star to Nastran/Patran Data Transfer | A.S. | Siemens | 0 | February 14, 2005 09:08 |
Transfer data in MPI | hall | Main CFD Forum | 0 | May 3, 2004 19:57 |
Data transfer | H. P. LIU | Main CFD Forum | 5 | May 19, 2003 11:47 |