CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

host_to_node data transfer

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 18, 2009, 13:32
Default host_to_node data transfer
  #1
New Member
 
Ellen
Join Date: Mar 2009
Posts: 11
Rep Power: 17
EllenW is on a distinguished road
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
EllenW is offline   Reply With Quote

Old   May 19, 2009, 05:33
Default
  #2
Senior Member
 
Max
Join Date: Mar 2009
Posts: 133
Rep Power: 17
coglione is on a distinguished road
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
coglione is offline   Reply With Quote

Old   May 19, 2009, 13:46
Default
  #3
Member
 
Join Date: Mar 2009
Location: Istanbul, Turkiye
Posts: 47
Rep Power: 17
gemini is on a distinguished road
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
gemini is offline   Reply With Quote

Old   May 19, 2009, 17:37
Default
  #4
New Member
 
Ellen
Join Date: Mar 2009
Posts: 11
Rep Power: 17
EllenW is on a distinguished road
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
EllenW is offline   Reply With Quote

Old   May 19, 2009, 17:41
Default
  #5
New Member
 
Ellen
Join Date: Mar 2009
Posts: 11
Rep Power: 17
EllenW is on a distinguished road
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.
EllenW is offline   Reply With Quote

Old   May 30, 2009, 12:34
Default
  #6
Member
 
Join Date: Mar 2009
Location: Istanbul, Turkiye
Posts: 47
Rep Power: 17
gemini is on a distinguished road
Quote:
Originally Posted by EllenW View Post
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.

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
gemini is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 08:04.