CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   I / O problem??? (http://www.cfd-online.com/Forums/fluent/29166-i-o-problem.html)

kevin December 15, 2001 12:10

I / O problem???
 
thanks , i have one problem about input and output data .

DEFINE_SOURCE(anode_mass,cell,thread,ds,eqn) { real x[ND_ND]; real source,I,L; cell_t c; FILE *file; file = fopen("current.dat","w");

C_CENTROID(x,cell,thread);

L=x[1];

I=3e+07*pow(L,6); source=-I*100; ds[eqn]=-100; fprintf(file,"%d %e \n",c,source); return source; fclose(file); } FLUNET's solver get me that have one error message

Error: error: udf compiler: unable to open udfconfig.h for write Error Object: () please help me to check and modify the problem ?



All times are GMT -4. The time now is 22:05.