CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   Changing turbulent viscosity (http://www.cfd-online.com/Forums/fluent/32724-changing-turbulent-viscosity.html)

ap December 16, 2003 17:25

Changing turbulent viscosity
 
I'm trying to change turbulent viscosity of the gas phase in the Eulerian model using UDF.

I'm using a DEFINE_ADJUST to do that, but I get an error message when I compile my code.

The compiler tells me:

(172) : error C2106: '=' : left operand must be l-value

where line 172 is

C_MU_T(cell, pt[GAS_PHASE_INDEX]) = my_visc;

The error doesn't happen if I try to read the turbulent viscosity value.

It seems like I can't change it's value.

Any advice is really appreciated.

Hi :)

ap


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