|
[Sponsors] |
Rewriting a simple UDF for parallel processing |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 31, 2022, 04:36 |
Rewriting a simple UDF for parallel processing
|
#1 |
New Member
|
How can I rewrite this UDF for parallel processing? This UDF stores velocities of outlet faces in a UDM.
#include"udf.h" double u[70]; /* velocity matrix at outlet*/ DEFINE_EXECUTE_AT_END(outlet_store) { face_t f; int IDo=6; /*outlet ID*/ int n=0; Domain *domain=Get_Domain(1); Thread *thread=Lookup_Thread(domain,IDo); begin_f_loop(f,thread) { F_UDMI(f,thread,0)=F_U(f,thread); u[n]=F_UDMI(f,thread,0); printf("u: %g\n", u[n]); printf("n: %d\n", n); printf("UDM: %g\n", F_UDMI(f,thread,0)); n+=1; } end_f_loop(f,thread) } |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
simple UDF doesn't read input from external file. interprets/compiles without errors | ahmad_xjtu | Fluent UDF and Scheme Programming | 5 | March 23, 2018 03:03 |
WILLING TO PAY/ FREELANCER REQUIRED / small UDF coding force loads over body / 6DOF | acasas | CFD Freelancers | 1 | January 23, 2015 08:26 |
help for a simple UDF | Greg | FLUENT | 2 | April 14, 2008 11:53 |
UDF for post processing | mvee | FLUENT | 0 | May 23, 2007 13:13 |
UDF in batch processing | tucker | FLUENT | 0 | January 26, 2006 17:39 |