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/)
-   -   mass source term udf (http://www.cfd-online.com/Forums/fluent-udf/121390-mass-source-term-udf.html)

A.R.Zanganeh July 27, 2013 06:08

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

A.R.Zanganeh July 31, 2013 02:43

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 00:14.