How to include strain rate in UDF


How to use strain rate in UDF.... for example,

viscosity in Herschel-Bulkley model...

Include "mem.h" in your UDF

Call macro:

C_STRAIN_RATE_MAG(c,t)

for a cell in a cell thread.

Thats all folks.





Show Form
Comments
 
hello

I'm spanish so, sorry for my English

Will it be the same for Eulerian model?

I have the following:

#include "udf.h"#

DEFINE PROPERTY (shear_Vis_Lun_modified,c,t)
{
real shear_vis_lun;
shear_vis_lun= 11224*pow(C_STRAIN_RATE_MAG(c,t), (0.323-1):
return shear....
}
JAVIER, Wed Apr 15, 2015
 
hello

I'm spanish so, sorry for my English

Will it be the same for Eulerian model?

I have the following:

#include "udf.h"#

DEFINE PROPERTY (shear_Vis_Lun_modified,c,t)
{
real shear_vis_lun;
shear_vis_lun= 11224*pow(C_STRAIN_RATE_MAG(c,t), (0.323-1):
return shear....
}
JAVIER, Wed Apr 15, 2015