CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   Different Terms in Different UDS (http://www.cfd-online.com/Forums/fluent/40421-different-terms-different-uds.html)

Carlos V. April 3, 2006 14:46

Different Terms in Different UDS
 
Hi Everybody

I'm programing two UDS (User - Defined Scalars) and I would like to know if it is possible to have two different Unsteady Terms as well as two different Advective and Diffusivity terms (one for each scalar)and how can I specify them, for the right scalar.

Really need help. With my best regards:

Carlos V.

Aidan April 4, 2006 05:50

Re: Different Terms in Different UDS
 
In those macros FLUENT passes a variable, i, to your udf. This integer represents the uds equation. The first uds is i = 0 and the second is i = 1 and so on. Include a logical expression for i in your marco to define the correct expression for each uds.

for example

if (i == 0)

uds-0 expresseion

else if (i == 1)

uds-1 expression

Carlos V. April 4, 2006 07:19

Re: Different Terms in Different UDS
 
Really must thank you Aidan, I think I got it!

With my best regards:

Carlos V.



All times are GMT -4. The time now is 19:41.