|
[Sponsors] |
July 3, 2015, 08:14 |
Non Newtonian fluid
|
#1 |
New Member
Iman Sengupta
Join Date: May 2015
Location: India
Posts: 14
Rep Power: 11 |
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; } |
|
|
|
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 |