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

error: "Divergence detected in AMG solver: temperature"

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 23, 2014, 09:50
Default error: "Divergence detected in AMG solver: temperature"
  #1
New Member
 
milad
Join Date: Nov 2014
Posts: 2
Rep Power: 0
mil68 is on a distinguished road
hi all, im working on a 3D transient project with UDF and imgetting this error,
Divergence detected in AMG solver: temperature
and with some changes in afew time steps i get my continuty divergent
may its bcoz of my UDF?
why is that?
mil68 is offline   Reply With Quote

Old   December 1, 2014, 12:11
Default
  #2
Sun
Senior Member
 
Sun's Avatar
 
Join Date: Nov 2010
Posts: 103
Rep Power: 16
Sun is on a distinguished road
Usually "Divergent dete..." error occurs due to the coarse or highly skewed mesh as well as large time step. You can check these two first and then post your UDF here to see if something is wrong with that.
cheers!
Sun is offline   Reply With Quote

Old   December 3, 2014, 05:29
Default
  #3
New Member
 
milad
Join Date: Nov 2014
Posts: 2
Rep Power: 0
mil68 is on a distinguished road
tnx buddy
mil68 is offline   Reply With Quote

Old   December 22, 2014, 04:14
Default
  #4
New Member
 
rishitosh's Avatar
 
Rishitosh Ranjan
Join Date: Dec 2012
Location: Trichirapalli, Tamilnadu, India
Posts: 22
Rep Power: 14
rishitosh is on a distinguished road
hello,
I m working on a 2D conduction problem with UDF and i m getting same error,
"Divergence detected in AMG solver: temperature"
just bcoz of my UDF!!
why is that?

Dis is my udf being used for boundary condition:

#include "udf.h"
#include "metric.h"
#include "math.h"

#define pie 3.14 /*pie value*/
#define Ttran 560 /*trasitional temperature*/
#define e 2.71828 /*value of e*/
#define A 0.70 /*absorptivity*/
#define P 600 /*peak power of laser*/

DEFINE_PROFILE(ht_flx_tp_srf, t, i)
{
real x[ND_ND];
real I, T, qc, hc;
real em = 0.4;
real Tamb = 300;
real r = 200e-6;
face_t f;
begin_f_loop(f, t)
{
F_CENTROID(x, f, t);
I = A*(P / (2 * pie*pow(r, 2)))*pow(e, -(pow(x[0], 2) / (2 * pow(r, 2)))); /*due to this line I m getting dis error*/
T = F_T(f, t);
hc = (24.1e-4)*em*pow(T, 1.61);
qc = hc*(T - Tamb);
F_PROFILE(f, t, i) = I-qc;
}
end_f_loop(f, t)
}



plz take me out of this prblm...

Thank you..

with reegards.
rishitosh is offline   Reply With Quote

Old   December 22, 2014, 09:34
Default
  #5
Sun
Senior Member
 
Sun's Avatar
 
Join Date: Nov 2010
Posts: 103
Rep Power: 16
Sun is on a distinguished road
I am not sure and but worth a shot...rename the "e" to something else or simply use the value itself instead of an argument.
Sun is offline   Reply With Quote

Old   December 22, 2014, 11:44
Default
  #6
Member
 
Join Date: Jul 2013
Posts: 80
Rep Power: 13
upeksa is on a distinguished road
Use monitors to check the values of your profile. In that of cases, there are not any errors in the code itself, but it passes unrealistic values to the solver of Fluent, which may take into a divergence of the solution.
In your example, imagine that you are giving to your case a wall heat flux of 10^20 W/m2. That will lead into an error for sure.
Check the values and use monitors or messages in the TUI.
And use M_PI instead of #define pie 3.14: it is poor programming.
Cheers
upeksa is offline   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
[openSmoke] libOpenSMOKE Tobi OpenFOAM Community Contributions 562 January 25, 2023 10:21
Error: Divergence detected in AMG solver: x-momentum/ epsilon/ temperature bubuchacha FLUENT 6 February 26, 2013 04:30
" Divergence detected in AMG solver: temperature" Suman FLUENT 4 September 11, 2009 10:31
AMG solver _divergence detected Shamoon FLUENT 6 March 11, 2009 08:59
Error: divergence detected in AMG solver Yash FLUENT 2 December 2, 2008 11:12


All times are GMT -4. The time now is 17:40.