CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   Energy SOurce(HELP) (https://www.cfd-online.com/Forums/fluent/44754-energy-source-help.html)

Sangeeta May 20, 2007 13:54

Energy SOurce(HELP)
 
I want to add an energy source term in fluid domain at some particular co-ordinate. i have been writing a udf for it but i am facing problems. Geometry is axisymmetric. and height 150 and width 25. i want to commpute source term only at z=42.

i have wriiten a UDF with if statements as follows: if (x[1]==42) { ds[eqn]=.......; source=.......; } else { source = 0; } return source;

but if does not get into the if statements. i dont know y. Plz help soon.

Thanks


Prasad Dudhgaonkar May 22, 2007 16:12

Re: Energy SOurce(HELP)
 
Are you sure, you want to incorporate an energy source at a particular "point" in domain? Given the axisymmetric approch, it will not be possible to do it unless the point lies on the axis itself. I suggest you to try 3D approach.

Prasad


All times are GMT -4. The time now is 15:59.