CFD Online Discussion Forums

CFD Online Discussion Forums (
-   FLUENT (
-   -   time dependent energy source term (

kevinz December 12, 2011 17:45

time dependent energy source term
I need to add an energy source term in a flow region. The source term is time dependent. I tried the following UDF, but it's not working. Anyone kindly offer some help?

/************************************************** ***/
/*To be defined source term is S=A*sin(2*PI*F*t)*/

#include "udf.h"
#define A 11
#define F 1000
#define PI 3.1415926

real source;
real current_time=CURRENT_TIME;


return source;

All times are GMT -4. The time now is 20:43.