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

has someone use udf to add source term?

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   April 15, 2005, 02: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, 05: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, 09: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

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Writing UDF for heat source term Floyd FLUENT 9 October 15, 2010 07:50
UDF Time-dependent term in source Ronnfors FLUENT 0 October 16, 2009 11:25
The source term of UDF summer FLUENT 0 August 24, 2006 17:44
UDF Source Term with dy/dx or dx/dy's. Seckin FLUENT 0 May 9, 2005 17:47
UDF Scalar Code: HT 1 Greg Perkins FLUENT 8 October 20, 2000 12:40


All times are GMT -4. The time now is 02:29.