mass source term udf
Hi!
I want to write an udf, that defines a mass source term for a mixture model in porous zone. how to write that udf?? do you have any written program like this??? I appreciate your help and suggestions. __________________ With regards, A.R.Zanganeh |
udf of mass source for convection diffusion equation
hi all
how can i add source term to convection diffusion equation? its possible or not? source= constant*velocity * concentration #include "udf.h" #define con 2000 DEFINE_SOURCE(mass_source,cell,thread,dS,eqn) { real source; source=-con*C_U(cell,thread)*C_YI(cell,thread,3); dS[eqn]=-con*C_U(cell,thread); return source; } can i add source term to convection diffusion equation by above udf? I appreciate your help and suggestions. __________________ With regards, A.R.Zanganeh |
All times are GMT -4. The time now is 21:46. |