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 |
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. |