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

Help please!!! Urgent!!!

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 24, 2003, 05:54
Default Help please!!! Urgent!!!
  #1
emma chen
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
  Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
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 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


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