|
[Sponsors] |
January 28, 2008, 10:32 |
parallelized UDF
|
#1 |
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 |
|
|
|
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 |