CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   help!udf compile error (https://www.cfd-online.com/Forums/fluent/36990-help-udf-compile-error.html)

Fred June 19, 2005 23:40

help!udf compile error
 
hello,every cfder.i've got a question to ask.

when i compile the udf,there is no error messages,but when i initial the fluid domain and iterate to compute.there exist the error messages:

Error: Floating point error: invalid number

what does it mean?who can give me some suggestion?

thank u very much!

Joey June 20, 2005 04:51

Re: help!udf compile error
 
Hi, I had the same experience with you. Maybe there is a number divided by "0". For exmaple: there is something like this :C_R(c,t)/C_U(c,t) in your UDF; when you initialized C_U(c,t)with zero,the programm will stop.You need to rewrite your UDF, maybe like this C_R(c,t)/(C_U(c,t)+0.0000000001). Hope it helps.

Joey

Fred June 20, 2005 07:49

Re: help!udf compile error
 
Thanks,

i'll get a try!

Fred June 20, 2005 20:38

Re: help!udf compile error
 
thank you,Joey.

your suggestion is really helpful.

Joey June 21, 2005 00:05

Re: help!udf compile error
 
If your UDF is long engouh, you will have to trace your code line by line. That's really a painful procedure. Good luck!


All times are GMT -4. The time now is 18:16.