CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > ANSYS > FLUENT

Help please!!! Urgent!!!

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   November 24, 2003, 05:54
Default Help please!!! Urgent!!!
emma chen
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");



for (i = 1; i < 599; i++)


j = fscanf(stream, "%1f\n", &value[i]);



i = 0;



i = i+1;


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
  Reply With Quote


Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Urgent - Polyflow - particle tracking visualization -Urgent shafaatht ANSYS 0 October 13, 2010 04:56
Urgent, Urgent, a UDF problem, PLEASE HELP!!! Max FLUENT 1 September 24, 2010 20:30
Urgent...urgent...plss!!! astronome FLUENT 0 October 16, 2009 07:17
tmerge urgent urgent jessica FLUENT 4 July 15, 2006 13:37
very urgent pleasade:Cl and Cd values for airfoil Liaquat FLUENT 2 April 27, 2006 12:20

All times are GMT -4. The time now is 04:52.