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

Non Newtonian fluid

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 3, 2015, 08:14
Default Non Newtonian fluid
  #1
New Member
 
Iman Sengupta
Join Date: May 2015
Location: India
Posts: 14
Rep Power: 10
Iman Sengupta is on a distinguished road
I want to simulate flow of a non Newtonian power law fluid. I got this code from a thread in cfd-online.com. But This code was showing some error and I modified it. But still the code is showing parse error and not running. Please help me out of it.

#include "udf.h"

DEFINE_PROPERTY(user_power_law,c,t)

{

real visc_dyn_min=0.001;
real visc_dyn_max=100;

real index_n=0.6;

real k=1.7;

real mu_app;

real mu_temp;

real N_ITER=0;

mu_temp=k*pow(C_STRAIN_RATE_MAG(c,t),index_n-1);

if (N_ITER<1)

{

mu_app=k;

}

else if((N_ITER>=1)&&(mu_temp>visc_dyn_min)&&(mu_temp<v isc_dyn_max))
{
mu_app=mu_temp;
}
else if ((N_ITER>=1)&&(mu_temp>=visc_dyn_max))
{

mu_app=visc_dyn_max;
}
else if ((N_ITER>=1)&&(mu_temp<=visc_dyn_min))

{
mu_app=visc_dyn_min;
}

return mu_app;

}
Iman Sengupta 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
Setting rotating frame of referece. RPFigueiredo CFX 3 October 28, 2014 04:59
CFX non newtonian power law fluid Mehmet SORGUN CFX 4 October 13, 2013 10:25
Fluid Dynamics Eng - PAX Mixer - San Rafael, CA Gary Jong FLUENT 0 February 25, 2008 20:46
My Revised "Time Vs Energy" Article For Review Abhi Main CFD Forum 2 July 9, 2002 09:08
Terrible Mistake In Fluid Dynamics History Abhi Main CFD Forum 12 July 8, 2002 09:11


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