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

UDF Parallel problem

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   August 21, 2012, 09:47
Default UDF Parallel problem
  #1
New Member
 
Jong Hwan Park
Join Date: Oct 2011
Posts: 12
Rep Power: 14
startup0820 is on a distinguished road
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);

}


-----------------------------------------------------------
startup0820 is offline   Reply With Quote

 

Tags
parallel


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
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


All times are GMT -4. The time now is 14:45.