|
[Sponsors] |
February 27, 2004, 15:11 |
UDF error
|
#1 |
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 |
|
February 27, 2004, 15:51 |
Re: UDF error
|
#2 |
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 |
|
February 27, 2004, 18:17 |
Re: UDF error
|
#3 |
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 |
|
March 1, 2004, 04:31 |
Re: UDF error
|
#4 |
Guest
Posts: n/a
|
Hi, You should post your UDF lines. thomas
|
|
March 1, 2004, 12:04 |
Re: UDF error
|
#5 |
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 |
|
March 1, 2004, 13:12 |
Re: UDF error
|
#6 |
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 |
|
|
|
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 |