CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   UDF: different diffusivities for different uds (http://www.cfd-online.com/Forums/fluent/28503-udf-different-diffusivities-different-uds.html)

Elmar Riesmeier May 4, 2001 08:11

UDF: different diffusivities for different uds
 
Hi there,

I need to provide different diffusivities for different user defined scalars, but FLUENT only offers 1 udf to be used to specify a diffusion coefficient. Has anybody a suggestion how to create scalar-dependent diffusivities? Thanks for your help.

Elmar

Greg Perkins May 6, 2001 19:53

Re: UDF: different diffusivities for different uds
 
The index, last parameter, (see udf manual) specifies which uds the diffusivity is for. Thus write something like

if (k == 0)

return diff_for_uds_0 if (k == 1)

return diff_for_uds_1 etc...

So you can have different isotropic diffusivities for each scalar. Anisotropy . . . that's another matter.

Greg


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