|
[Sponsors] |
April 15, 2005, 03:41 |
has someone use udf to add source term?
|
#1 |
Guest
Posts: n/a
|
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 ! |
|
April 15, 2005, 06:47 |
Re: has someone use udf to add source term?
|
#2 |
Guest
Posts: n/a
|
you should write five different source term for each species and hook it. P
|
|
April 15, 2005, 10:08 |
Re: has someone use udf to add source term?
|
#3 |
Guest
Posts: n/a
|
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 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Writing UDF for heat source term | Floyd | FLUENT | 11 | July 3, 2021 03:56 |
UDF Time-dependent term in source | Ronnfors | FLUENT | 0 | October 16, 2009 12:25 |
The source term of UDF | summer | FLUENT | 0 | August 24, 2006 18:44 |
UDF Source Term with dy/dx or dx/dy's. | Seckin | FLUENT | 0 | May 9, 2005 18:47 |
UDF Scalar Code: HT 1 | Greg Perkins | FLUENT | 8 | October 20, 2000 13:40 |