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

HELP: Divergence detected in AMG solver: pressure correction

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 17, 2017, 04:02
Default HELP: Divergence detected in AMG solver: pressure correction
  #1
New Member
 
Khiew Chee Keong
Join Date: Mar 2017
Location: Malaysia
Posts: 4
Rep Power: 9
ckkhiew1993 is on a distinguished road
Hi everyone! I am facing this problem once I click calculate in Fluent simulation.

I plan to use fully developed velocity profile at my inlet of straight pipe so I tried to use UDF and the code is:

#include "udf.h"
#include "math.h"
DEFINE_PROFILE(inlet_x_velocity, thread, index)
{
real x[ND_ND]; /* this will hold the position vector */
real y;
real z;
real a, n, d, Umax, Umean;
face_t f;
begin_f_loop(f, thread) /*loops over all faces in the thread passed in the DEFINE macro argument*/
{
F_CENTROID(x,f,thread);
y =x[1];
z =x[2];

n = 7;
d = 0.797; /* m */
Umean = 1; /* m/s */

Umax = Umean*(((n+1)*(2*n+1))/(2*pow(n,2)));
F_PROFILE(f, thread, index) = Umax*pow(1-sqrt(pow(y,2)+pow(z,2))/(d/2),(1/n));
}
end_f_loop(f, thread)
}

However, when I click calculate, it appears "Divergence detected in AMG solver: pressure correction". May I know how to solve this problem? Thank you so much.
ckkhiew1993 is offline   Reply With Quote

Reply

Tags
divergence detected, udf


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
Divergence detected in AMG solver: ads-0 Patrino FLUENT 6 May 12, 2022 04:11
Divergence detected in AMG solver: pressure correction emlejeen FLUENT 5 December 15, 2016 00:47
Error: Divergence detected in AMG solver: pressure correction wanna88 FLUENT 19 April 6, 2016 03:57
Divergence detected in AMG solver: pressure coupled n.jithin.1991 FLUENT 6 January 5, 2014 12:43
Divergence detected in AMG solver tiankongasd FLUENT 2 March 28, 2013 13:34


All times are GMT -4. The time now is 21:08.