CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   setting uds diffusivity (http://www.cfd-online.com/Forums/fluent/32846-setting-uds-diffusivity.html)

Andrew Garrard January 14, 2004 11:41

setting uds diffusivity
 
I am also trying to simply set the diffusivity for three uds's. Has anybody any idea why, when solved, the diffusion coefficient for uds 0 and 2 has the same value that is set for uds1?

DEFINE_DIFFUSIVITY(uds_diffus, c, t, i) { if (i = 0) {return 28;} if (i = 1) {return 2;} else {return 1e-9;} }

Andrew Garrard January 15, 2004 06:44

Re: setting uds diffusivity
 
Don't worry, I got what it was after a nights sleep. I used an assingn statemnet instead of a conditonal one. = / ==.


All times are GMT -4. The time now is 03:32.