|
[Sponsors] |
August 21, 2012, 09:47 |
UDF Parallel problem
|
#1 |
New Member
Jong Hwan Park
Join Date: Oct 2011
Posts: 12
Rep Power: 14 |
Hello! Guys!
Thanks to you, I was able to complete the UDF. Is not a problem in the serial condition, but an error occurs in the parallel condition. If you know Please advise me. Thanks for your help everytime. FLUENT 14, 64bit ------------------------------------------------------------------- #include "udf.h" #include "dpm.h" DEFINE_EXECUTE_AT_END(MonkeyMagic) { CX_Cell_Id *c; cell_t ct; Thread *t; real x[3] = {0.0, 0.0, 0.0}; real W_Velocity; int N,i; FILE *output,*points; Domain *d = Get_Domain(1); points = fopen("points.txt","r"); output = fopen("results.out","a"); fscanf(points,"%d \n",&N); for ( i=0;i<N;i++ ) { fscanf(points,"%e%e%e\n",&x[0],&x[1],&x[2]); SV_locate_point(x,c); ct = c->ct.c; t = c->ct.t; C_CENTROID(x, ct, t); W_Velocity=C_W(ct,t); fprintf(output, "%.6f\n",W_Velocity); } fclose(output); fclose(points); } ----------------------------------------------------------- |
|
Tags |
parallel |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
problem loading UDF library in parallel cluster | Veera Gutti | FLUENT | 8 | July 26, 2016 07:24 |
Parallel UDF problem | Lindsay | FLUENT | 4 | June 20, 2016 09:37 |
Parallel interDyMFoam cellLevel problem | tgvosk | OpenFOAM Running, Solving & CFD | 5 | February 19, 2014 02:24 |
UDF parallel | Lucy | Fluent UDF and Scheme Programming | 3 | May 28, 2013 13:14 |
parallel mode - small problem? | co2 | FLUENT | 2 | June 1, 2004 23:47 |