CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   user-defined-function problem (http://www.cfd-online.com/Forums/fluent/29046-user-defined-function-problem.html)

kevin November 6, 2001 09:04

user-defined-function problem
 
i have many problem recently,about fluent's user-defined-function , for example : new subroutines are written to calculate the chemical reaction for this simulation , i used fluent's macro [DEFINE_UDS_FLUX(name ,face,thread,i)],but manual isn't explain kind of i vlave ,is zero or anynumber or anyword ~????


fawzy November 6, 2001 17:18

Re: user-defined-function problem
 
hi

DEFINE_UDS_FLUX (name, f, t, i)

i is integer : is the name of the UDF specified by you: i = 0 is associated with udf scalar-0


Greg Perkins November 7, 2001 22:24

Re: user-defined-function problem
 
This function is for defining the convective flux in the sclaar transport equation. For most cases you won't need to change from the default method and thus you normally won't need to use it.

For chemical reactions etc., the source term udf is most likely the best way to add sources of chemical species, energy and mass to the conservation equations.

If you want more info on this routine reply.

Greg


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