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

divergence always happen while UDF was used

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 13, 2017, 05:44
Default divergence always happen while UDF was used
  #1
New Member
 
xiewenxiong
Join Date: Feb 2017
Posts: 3
Rep Power: 9
xiewenxiong is on a distinguished road
im working on the simulation about the navier slip boundary condition, and i used a UDF to make this boundary condition. i set the wall condition:

"shear condition"->"no slip"
"wall motion"->"moving wall"-> "X-velocity:udf wall_velocity_x"and the udf code is here:

#include "udf.h"

DEFINE_PROFILE(wall_velocity_x, thread, position)
{
face_t f;
Thread *t0;
cell_t c0;
double VC[ND_ND];
double lambda=100E-6;
double dudy;

begin_f_loop(f, thread)
{
t0 = THREAD_T0(thread); /* adjacent cell thread to f */

c0 = F_C0(f, thread);

dudy = C_DUDY(c0,t0);


VC[0]=-lambda*dudy;

VC[1]=0; /* stress vector's y componant*/



F_PROFILE(f, thread, position)=VC[0];

}

end_f_loop(f, thread)
}



why "divergence detected in AMG solverressure correction" always showed?
xiewenxiong is offline   Reply With Quote

Old   February 13, 2017, 05:52
Default
  #2
New Member
 
xiewenxiong
Join Date: Feb 2017
Posts: 3
Rep Power: 9
xiewenxiong is on a distinguished road
I think the meshing is ok, coz I tried using "no slip"and "stationary wall" condition to solve that question and it worked. but every time i used this udf with a large "lambda", it would divergent.
xiewenxiong is offline   Reply With Quote

Old   February 13, 2017, 20:16
Default
  #3
New Member
 
xiewenxiong
Join Date: Feb 2017
Posts: 3
Rep Power: 9
xiewenxiong is on a distinguished road
Any people has any idea? plz help...
xiewenxiong 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
Floating Point Exception Error nyox FLUENT 11 November 30, 2018 12:31
UDF srivastava and sundaresan friction model - divergence of the solutor Luca_Panariello Fluent Multiphase 1 January 18, 2017 10:07
Divergence in non-Newtonian fluid UDF moabdi FLUENT 0 June 23, 2016 11:30
UDF Compilation Error - Loading Library - COMMON Problem! Help! robtheslob Fluent UDF and Scheme Programming 8 July 24, 2015 00:53
UDF divergence of a vector cris FLUENT 3 September 4, 2014 18:06


All times are GMT -4. The time now is 14:54.