CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   udf-plz help (https://www.cfd-online.com/Forums/fluent-udf/88069-udf-plz-help.html)

m.reza May 7, 2011 09:06

udf-plz help
 
hi
In my udf, A is introduced such:
A= T*(2*C_K(cell, thread)/3-2*nu_t*S11)*C_T_G(cell,thread)[0]+T*(-2*nu_t*S12)*C_T_G(cell,thread)[1];
(I think A is a vector)
so,how can I apply gradiant of A in my program?
because C_A_G(c,t,i) didn't define in user guide.
thank you for your help

johnwinter May 19, 2011 07:42

Hi,
Define A is vector, then i think you can use C_A_G
for example define
NV_V(A,=, C_T_G(cell, thread)
ND_VEC(A_X=C_T_G(cell, thread)[0]*xx, A_Y=C_T_G(cell, thread)[1]*xx,A_Z=C_T_G(cell, thread)[2])*xx);

where 'xx' is any quanity

now you can use A as a vector so, you can use C_A_G. This what i think, Expert can give better answer.
you can try it.


All times are GMT -4. The time now is 17:50.