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

64bit error compiling UDF : divergence detected

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 2, 2010, 08:04
Post 64bit error compiling UDF : divergence detected
  #1
New Member
 
Join Date: Nov 2010
Posts: 4
Rep Power: 16
UtoS_99 is on a distinguished road
Hello all,

I need your help to solve the error in FLUENT.

I simulated heat transfer of thermoelectric module compiling UDF(using C++) in FLUENT 12.0 and 32bit windows XP.
(This simulation exists NO fluid.) This simulation was succeed.

After that, I simulated the simulation again using "same" boundary condition and setup in FLUENT 12.1 and 64bit windows XP, but error message occured without one calculation!

This error message said that " Divergence detected in AMG solver : temperature" , that can't be possible because both conditions are completely same !

Maybe this problems don't have root in my compiler.
I'm using Windows VS 2008 Express Version and SDK v7.0, and I started FLUENT from command prompt of SDK. Therefore, the compiler is recognized.

Of course, I desperately seeked FAQs about this problem and tried to reduce URF and change Advanced Solution control etc.
However, this error can't be solved.

Please tell me the solutions of this error or FAQs discribed solutions.

Thanks in advance.
UtoS_99 is offline   Reply With Quote

Old   November 2, 2010, 10:38
Default
  #2
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 36
vinerm will become famous soon enough
It would be better if you show us the UDF. However, one thing that I doubt is if you are using F_T or fetching any such variable on a wall, it could the issue. Just try initializing your case before starting. It should do. Else, please paste the code
vinerm is offline   Reply With Quote

Old   November 2, 2010, 14:49
Default
  #3
New Member
 
Join Date: Nov 2010
Posts: 4
Rep Power: 16
UtoS_99 is on a distinguished road
Thanks vinerm!

When I change setup, I always do initializing, but it can't be solved.

I can't show you the URF, sorry.
Because I signed the nondisclosure contract with my collaborator.

But he explained this error didn't relate contents of the code, and the fact is demonstrated by him.

In addition, some other FLUENT user reported similar problem, despite URF is different.

What should I consider ?
UtoS_99 is offline   Reply With Quote

Old   November 2, 2010, 18:06
Default
  #4
New Member
 
Kristian Etienne Einarsrud
Join Date: Oct 2010
Location: Trondheim
Posts: 29
Rep Power: 16
KristianEtienne is on a distinguished road
Hi,

Is the simulation run using the serial or parallel solver? I have had similar issues when changing between these two (ran fine in serial, same error message in parallel). The issue was due a face loop which did not run over all the partitions. Just a thought..

Cheers!
KristianEtienne is offline   Reply With Quote

Old   November 3, 2010, 10:28
Default
  #5
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 36
vinerm will become famous soon enough
That's alright if you've an NDA. However, did you check your case without UDF when you moved from version 12.0 32bit to 12.1 64bit? First check that and then start looking into UDF and by printing some intermediate values you can check the level down to which your UDF is working. Say, there are six procedures in your UDF. Just check up to which procedure does it go before it gives error.

If you're using parallel solver, then you will have to use predicates.

And I have never worked on Windows, so, I am not sure, however, that should not be an issue.
vinerm is offline   Reply With Quote

Old   November 4, 2010, 06:37
Default
  #6
New Member
 
Join Date: Nov 2010
Posts: 4
Rep Power: 16
UtoS_99 is on a distinguished road
Thanks KristianEtienne and vinerm!

Simulation is always performed in serial solver.When I changed parallel solver, error message newly indicated "floating point exeption". Maybe I had better not change the solver.

Once I tried that simulation without compiling the URF and setup related the URF, so to speak, simply heat transfer. This simulation ran successful.
Therefore, it sure both of "64bit" and "URF" affect this error.

As everyone encourage to reduce the URF, and I tried that.
I changed 0.3~1(default) to 0.1~5 in all factors, but error isn't solved.
What parameter should I change? and what is value good ?
UtoS_99 is offline   Reply With Quote

Old   December 3, 2010, 12:40
Default
  #7
New Member
 
Join Date: Nov 2010
Posts: 4
Rep Power: 16
UtoS_99 is on a distinguished road
I finally solved this problem.

I hope you find it informative.

I set all user-scalar value to 0.01 (mainly "wall") in boundary condition, and it appeared when UDF was compiled and loaded.

This problem occured only 64bit fluent. I feel simulating in 64bit FLUENT must be avoided 0 in boundary condition as possible.

Thanks all members for advising me!!
UtoS_99 is offline   Reply With Quote

Old   March 29, 2011, 04:19
Default
  #8
New Member
 
Arun Ramachandran
Join Date: Mar 2011
Posts: 1
Rep Power: 0
Ramjul is on a distinguished road
i m also encounter the same problem...thank you for ur comment
Ramjul is offline   Reply With Quote

Reply

Tags
32bit, 64bit, divergence, error, fluent

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
UDF divergence of a vector cris FLUENT 3 September 4, 2014 19:06
Quarter Burner mesh with periosic condition SamCanuck FLUENT 2 August 31, 2011 12:34
Divergence detected when using parallel solver Phil FLUENT 3 May 9, 2008 09:17
user subroutine error CFDUSER CFX 2 December 9, 2006 07:31
user defined function cfduser CFX 0 April 29, 2006 11:58


All times are GMT -4. The time now is 11:48.