CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   define surface or line source from FLUENT (https://www.cfd-online.com/Forums/fluent/84448-define-surface-line-source-fluent.html)

solefire January 30, 2011 05:23

define surface or line source from FLUENT
 
Dear every one,

I am wondering is there any eaiser way to define a surface source from fluent,

or i can only use UDF, while this is not working what i wrote below, could some one give me a hint or example... many thanks

(y=0.3, 0<x<1, 0<z<1):



....loop
C_CENTROID(xc,c,t);

if(fabs(xc[1]-0.3)<=1e-02 && xc[0]>0.0 && xc[0]<1.0 && xc[2]>0.0 && xc[2]<=1.0)


{DO sth....}

...loop


All times are GMT -4. The time now is 07:04.