CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (http://www.cfd-online.com/Forums/fluent-udf/)
-   -   UDS source term problem (http://www.cfd-online.com/Forums/fluent-udf/84241-uds-source-term-problem.html)

tompa January 24, 2011 09:15

UDS source term problem
 
i have two uds for scalar n0 and n1

now i want to add a source term "gradient (gradient n1)" in n0's equation

but i only find that gradient n1=C_UDSI_G(c,t,1)

how about "gradient (gradient n1)" ?

gearboy January 24, 2011 22:48

Quote:

Originally Posted by tompa (Post 291899)
i have two uds for scalar n0 and n1

now i want to add a source term "gradient (gradient n1)" in n0's equation

but i only find that gradient n1=C_UDSI_G(c,t,1)

how about "gradient (gradient n1)" ?

Set another additional UDS2 and let UDS2=C_UDSI_G(c,t,1), Then C_UDSI_G(c,t,2) is what you want.

tompa January 26, 2011 03:22

thanks for your anwser. There's another quastion about the error about type of variables.

C_UDSI(c,t,2) can't be equal to C_UDSI_G(c,t,1) seems like

that C_UDSI(c,t,2) is a scalar but C_UDSI_G(c,t,1) is a vector?


All times are GMT -4. The time now is 23:26.