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

parallelized UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 28, 2008, 10:32
Default parallelized UDF
  #1
manu
Guest
 
Posts: n/a
I've written a UDF that works well on a serial solve. Now I want to parallelize it. I have some doubts about what part (host or nodes) must performe which part of my UDF. Could you give me some advice on that topic please? My UDF is structured as follow:

DEFINE_PROFILE(pressure_realiment,t,i){ 1. Define the variables: - fp (for writing txt. file) - "target" variables (thread, ...) - accessing variables (such as F_P(f,t)) - variables used for initialization of loops and for computations (averaged values, output pressure value)

2. Loop for computing a mass averaging: begin_f_loop(f,t){}

3. Writing my results in a txt file : fp = fopen("outputfile.txt","a"); fprintf(fp, ...)

4. Implement the profile: begin_f_loop(f,t) { F_PROFILE(f,t,i) = ... }end_f_loop(f,t)

Can someone tell me which part must be included in which if-loop (I mean: if HOST, if !HOST, if !NODE, ...) Tank you very much
  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
Dynamic Mesh UDF Qureshi FLUENT 7 March 23, 2017 08:37
UDF parallel error: chip-exec: function not found????? shankara.2 Fluent UDF and Scheme Programming 1 January 16, 2012 23:14
Please check out my parallelized udf code aleisia Fluent UDF and Scheme Programming 0 June 10, 2011 17:16
Please check out my parallelized udf aleisia Fluent UDF and Scheme Programming 0 June 9, 2011 17:57
UDF, UDF, UDF, UDF Luc SEMINEL Main CFD Forum 0 November 25, 2002 05:01


All times are GMT -4. The time now is 20:25.