|
[Sponsors] |
February 13, 2017, 05:44 |
divergence always happen while UDF was used
|
#1 |
New Member
xiewenxiong
Join Date: Feb 2017
Posts: 3
Rep Power: 9 |
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? |
|
February 13, 2017, 05:52 |
|
#2 |
New Member
xiewenxiong
Join Date: Feb 2017
Posts: 3
Rep Power: 9 |
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.
|
|
February 13, 2017, 20:16 |
|
#3 |
New Member
xiewenxiong
Join Date: Feb 2017
Posts: 3
Rep Power: 9 |
Any people has any idea? plz help...
|
|
|
|
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 |