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

Divergence in non-Newtonian fluid UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 23, 2016, 12:30
Default Divergence in non-Newtonian fluid UDF
  #1
New Member
 
mohsen
Join Date: Jun 2015
Posts: 25
Rep Power: 11
moabdi is on a distinguished road
Hi
I have written an UDF for a non-Newtonian fluid. first, i run the project with steady and constant viscosity for 10 iteration and after that i hooked the UDF but i faced with this divergence error:
# Divergence detected in AMG solver: epsilon -> Increasing relaxation sweeps!
# You may try the enhanced divergence recovery with (rpsetvar 'amg/protective-enhanced? #t)

turbulent viscosity limited to viscosity ratio of 1.000000e+20 in 249582 cells

reversed flow in 1614 faces on pressure-outlet 13.

Divergence detected in AMG solver: epsilon
Divergence detected in AMG solver: epsilon
Divergence detected in AMG solver: epsilon
Divergence detected in AMG solver: epsilon
Divergence detected in AMG solver: epsilon
Error at host: floating point exception

Error at Node 0: floating point exception

Error at Node 1: floating point exception

Error at Node 2: floating point exception

Error at Node 3: floating point exception

Error at Node 4: floating point exception

Error: floating point exception
Error Object: #f


UDF is:

#include "udf.h"


DEFINE_PROPERTY(cell_viscosity,c,t)
{
#if !RP_NODE
real SR=C_STRAIN_RATE_MAG(c,t);
real n=0.70;
real k=0.00103;
real PV=0.0001;
real YP=2.8728;
real YSR=0.018;
real EV;
real SS;

SS=k*exp(n*log(SR));
EV=(SS/SR)+k*(exp((1-n)*log(SR/YSR)));

return EV;
#endif
}


now, what should i do for fix that ERROR.
it's my pleasure if somebody could help me.

thanks
BEST REGARDS
moabdi 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
Physics of an incompressible fluid Jonas Holdeman Main CFD Forum 87 April 22, 2019 11:40
Drag Force UDF in Non-Newtonian (powerlaw) Fluid ali hemmati Fluent UDF and Scheme Programming 2 March 28, 2019 14:08
Fluid force in UDF linh nguyen Fluent UDF and Scheme Programming 0 May 21, 2014 09:02
Multiphase and Non Newtonian fluid wanna88 FLUENT 0 May 27, 2013 01:09
Divergence problem Smaras FLUENT 13 February 21, 2013 06:03


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