|
[Sponsors] |
November 24, 2003, 05:54 |
Help please!!! Urgent!!!
|
#1 |
Guest
Posts: n/a
|
Hi, there!
I wrote one UDF, in which a "*.dat" file is called. This .dat file is the result of MATLAB/SIMULINK, I just saved it as one dat file. The original form of the variables in this dat file is "array". After I press the "solve-->initialise" in fluent, it shows the error message: Error: cx-set-real-entry: wta[2](float) Error Object: -1.#inf Hier I Would like to attach my UDF. #include "udf.h" double value[600]; DEFINE_PROFILE(coupling_velocity, thread, iv) /* iv---index of the velocity variables. */ { face_t f; real x[ND_ND]; FILE *stream; int i; real j; /*---------read the velocity input file--------*/ if ((stream = fopen("velocity.dat","r")) == NULL) { printf("Wrong in reading the velocity input file!\n"); } else for (i = 1; i < 599; i++) { j = fscanf(stream, "%1f\n", &value[i]); } fclose(stream); i = 0; begin_f_loop(f,thread) { i = i+1; F_CENTROID(x,f,thread); F_PROFILE(f,thread,iv) = value[i]; } end_f_loop(f,thread) } /*------------end of reading the velocity input file---------------*/ I have no idea about what is wrong with this UDF. Any advice would be very appreciated!!! Regards, Emma |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Urgent - Polyflow - particle tracking visualization -Urgent | shafaatht | ANSYS | 0 | October 13, 2010 05:56 |
Urgent, Urgent, a UDF problem, PLEASE HELP!!! | Max | FLUENT | 1 | September 24, 2010 21:30 |
Urgent...urgent...plss!!! | astronome | FLUENT | 0 | October 16, 2009 08:17 |
tmerge urgent urgent | jessica | FLUENT | 4 | July 15, 2006 14:37 |
very urgent pleasade:Cl and Cd values for airfoil | Liaquat | FLUENT | 2 | April 27, 2006 13:20 |