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

UDF error

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 27, 2004, 15:11
Default UDF error
  #1
ap
Guest
 
Posts: n/a
I'm writing a UDF to implement a scalar transport equation. If I enable the source term, FLUENT does one iteration, then, during the second, it gives this error:

Error: > (greater-than): invalid argument [2]: wrong type [not a number] Error Object: nan

If I disable the source term, this doesn't happen.

What does this mean?

Thanks in advance

ap
  Reply With Quote

Old   February 27, 2004, 15:51
Default Re: UDF error
  #2
Jun
Guest
 
Posts: n/a
I guess the solution is divergent due to the source term. You can see the scalar contour after just one iteration and see what happens. Have fun.

Jun
  Reply With Quote

Old   February 27, 2004, 18:17
Default Re: UDF error
  #3
ap
Guest
 
Posts: n/a
Thanks a lot.

You're right, solution is divergent.

To calculate the source term, I need stress tensor components, but I don't know how to obtain them from FLUENT, so I'm calculating them with a code I wrote for this purpose. Maybe the problem is in that part of the code.

Is there a function in FLUENT to obtain stress tensor components?

Hi

ap
  Reply With Quote

Old   March 1, 2004, 04:31
Default Re: UDF error
  #4
thomas
Guest
 
Posts: n/a
Hi, You should post your UDF lines. thomas
  Reply With Quote

Old   March 1, 2004, 12:04
Default Re: UDF error
  #5
Jun
Guest
 
Posts: n/a
Probably you need to contact Fluent support people to make sure if you can access the stress tensor components directly. On the other hand, calculating them from those gradient vectors seems viable. There are some tips which may help. Start your own calculation from a convergent flow field. Put some limit on the variable you are calculating. And most importantly, good luck.

Jun
  Reply With Quote

Old   March 1, 2004, 13:12
Default Re: UDF error
  #6
ap
Guest
 
Posts: n/a
Really thank to all for your help.

Trying to make the code work, I found a little bug, which probably was the cause of divergence. Now I'm doing some test to see if it works.

Hi and thanks again

ap
  Reply With Quote

Reply


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
Problem with UDF compiling for kTkLW model Wantami FLUENT 0 July 18, 2011 05:11
ParaView for OF-1.6-ext Chrisi1984 OpenFOAM Installation 0 December 31, 2010 06:42
Accessing phi from a fvPatchField at same patch johndeas OpenFOAM 1 September 13, 2010 20:23
Installation OF1.5-dev ttdtud OpenFOAM Installation 46 May 5, 2009 02:32
Problem with compile the setParabolicInlet ivanyao OpenFOAM Running, Solving & CFD 6 September 5, 2008 20:50


All times are GMT -4. The time now is 14:20.