CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   UDF Error message (https://www.cfd-online.com/Forums/fluent/39544-udf-error-message.html)

Tania February 7, 2006 06:18

UDF Error message
 
Hi,

I wrote an udf to modify the turbulent viscosity for the k-e model. I compiled the udf and everything seemed fine. However, when I tried to run the case using the udf, I got the following error message :

" Floating point error: invalid number "

Any suggestions to solve the problem.

thanks


RoM February 7, 2006 07:48

Re: UDF Error message
 
As a first step you could program the standard formualtion for mu_t an see if to get the same results as fluent before trying to implement own models. Maybe this will help to find errors in the udf. Maybe you udf tries to access values which are not available during the first iteration. Run the case without udf for some iterations and hook the udf later.

RoM

kharicha February 7, 2006 07:50

Re: UDF Error message
 
It seems that you have a division by zero....

It comes probably from epsilon which should never be equal to zero, so I suggest you replace epsilon by (epsilon + a very small number)....

please try

Tania February 7, 2006 08:28

Re: UDF Error message
 
Thanks a lot for the answers.

I 've tried to run few iterations without the udf before I switch it on but still I got the same error message.

I checked the UdF there is no division by zero.......

RoM February 8, 2006 01:16

Re: UDF Error message
 
Can you post you source?

RoM

Arvind Phate February 17, 2006 06:20

Re: UDF Error message
 
Hi Tania,

Be careful sometimes if you have not followed the units properly in your UDF then also this error comes.I will suggest check units properly. Bye

Arvind Phate


All times are GMT -4. The time now is 10:51.