CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   has someone use udf to add source term? (https://www.cfd-online.com/Forums/fluent/36388-has-someone-use-udf-add-source-term.html)

yinyue April 15, 2005 02:41

has someone use udf to add source term?
 
hi, i want to use udf DEFINE_SOURCE to add species mass fraction source produced by my procedure.my procedure's result is mol production rate of 5 species. how could i link it in the DEFINE_SOURCE? should i write DEFINE_SOURCE five times for each species, or just one time and hook it in each specy? what should be the returning value for each species function? production rate or mass fraction. has someone some example for that problem?can you send me a example?

thank you !

P April 15, 2005 05:47

Re: has someone use udf to add source term?
 
you should write five different source term for each species and hook it. P

Ale April 15, 2005 09:08

Re: has someone use udf to add source term?
 
You have to define a source term for each species. In the boundary conditions - fluid panel you will link each species to its source term.

A source term is a production rate (i.e., in the case of mass fractions, it has the following units: s^-1).

You have however to multiply your source term by the fluid density, so that at the end the units will be: kg m^-3 s^-1.

I hope this helps.

Regards,

Ale


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