CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (http://www.cfd-online.com/Forums/fluent-udf/)
-   -   UDF for defining granular viscosity in mixture model (http://www.cfd-online.com/Forums/fluent-udf/74157-udf-defining-granular-viscosity-mixture-model.html)

priyanka.asp March 25, 2010 13:32

UDF for defining granular viscosity in mixture model
 
Hello all,

I am new to fluent and I want to use a UDF for defining the granualar viscosity of the secondary phase in the mixture model :
mu= -0.188 + 537.42*Volume fraction.

I had written the follwoing UDF.

#include "udf.h"
DEFINE_PROPERTY(solid_viscosity,cell, thread)
{
real mu;
real vf=C_T(cell,thread);
mu=-0.188+537.42*vf;
return mu;
}

This is correct? And how can I use this in my case. Can anyone help?

Thanks


All times are GMT -4. The time now is 06:39.