CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

Temperature dependent Non-Newtonian viscosity UDF

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   April 14, 2013, 07:31
Default Temperature dependent Non-Newtonian viscosity UDF
New Member
Join Date: Dec 2012
Posts: 11
Rep Power: 12
cric92 is on a distinguished road
Hi, I am trying to write a UDF for Temperature dependent non Newtonian viscosity.. The following UDF works,

#include "udf.h"


real temp,mu,strain,Q,A,R,n,Y,alpha;
Q= 1e5;


return mu;

But however when I try to calculate the value of strain rate by the gradients of velocity using the following formula, instead of UDF command C_STRAIN_RATE_MAG(c,t), my solution diverges.

strain=(2/3)*(pow(C_DUDX(c,t),2)+pow(C_DVDY(c,t),2)+pow(C_DW DZ(c,t),2)+0.5*pow((C_DUDY(c,t)+C_DVDX(c,t),2)+0.5 *pow((C_DUDZ(c,t)+C_DWDX(c,t)),2)+0.5*pow((C_DWDY( c,t)+C_DVDZ(c,t)),2);


What might be the problem that is causing the solution to diverge???
cric92 is offline   Reply With Quote


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Calculation of the Governing Equations Mihail CFX 7 September 7, 2014 07:27
Please Help! Temperature profile UDF for 3D geometry subhankar_bhandari FLUENT 2 April 16, 2011 06:30
Help please! UDF for Temperature profile in 3D subhankar_bhandari Fluent UDF and Scheme Programming 2 August 16, 2010 09:37
how to write a 3D linear temperature of UDF venus FLUENT 1 October 28, 2008 03:46
udf variable for wall temperature Kiran FLUENT 0 July 31, 2008 09:31

All times are GMT -4. The time now is 20:03.