CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

has someone use udf to add source term?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 15, 2005, 03:41
Default has someone use udf to add source term?
  #1
yinyue
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 !
  Reply With Quote

Old   April 15, 2005, 06:47
Default Re: has someone use udf to add source term?
  #2
P
Guest
 
Posts: n/a
you should write five different source term for each species and hook it. P
  Reply With Quote

Old   April 15, 2005, 10:08
Default Re: has someone use udf to add source term?
  #3
Ale
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
  Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


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