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

UDF error

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

Reply
 
LinkBack Thread Tools Display Modes
Old   February 27, 2004, 16: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, 16: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, 19: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, 05: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, 13: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, 14: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

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
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 07: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 11:33.