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

species source term reaction

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 25, 2005, 19:54
Default species source term reaction
  #1
Andrew
Guest
 
Posts: n/a
Hi, Does anybody know how to work out the equivalent source term, in the conservation of species equation, that models a surface reaction. I can not define a surface reaction because I want to model a permeable wall ie. blood flow through the wall with a surface reaction occuring. So I think I can define a source term, in a cell thread above an interior face, which is equivalent to a surface reaction if the interior face was a wall.

Cheers,

Andrew
  Reply With Quote

Old   May 26, 2005, 11:14
Default Re: species source term reaction
  #2
Allan Walsh
Guest
 
Posts: n/a
Not sure if this is what you need, but there is a variable C_STORAGE(cell,thread,species) that tracks species exchange (in kg/s) for each cell. In theory, you could calculate the magnitude (and sign) of this term for the species of interest.

I use these terms for species exchange with a particulate phase. But, it does take a fair amount of work to make sure other variables, like mass and energy balances, are not comprimised. If you don't have a few weeks of time to play with this, I would recommend using built in Fluent surface reaction, if it doesn't do exactly what you want.
  Reply With Quote

Old   May 26, 2005, 21:12
Default Re: species source term reaction
  #3
Andrew
Guest
 
Posts: n/a
Hi Allan,

Thanks for your reply. Do you have more information about C_STORAGE, I can not find any information about it in the UDF manual. There is a variable C_STORAGE_R but I understand this would just return the mass fraction of species in the cells adjacent to the wall.

Andrew.
  Reply With Quote

Old   May 27, 2005, 12:35
Default Re: species source term reaction
  #4
Allan Walsh
Guest
 
Posts: n/a
You are right - I should have typed in the variable name C_STORAGE_R(c,t,species). In my application this works for any cell in any thread, and the units are kg/s.

The variable for mass fraction of a species is C_YI(c,t,species), which again seems to work for any cell in any thread. (The species ID number of course can be determined from the list of species in your mixture with the first being 0).

At one time there was a list of user posted UDF's on the FTP section of this site (cfd-online). Some of this code had useful stuff not available in the UDF manual. I haven't looked lately to see if it is still here.

  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
transient source term strakakl OpenFOAM 38 November 19, 2013 01:18
DxFoam reader update hjasak OpenFOAM Post-Processing 69 April 24, 2008 01:24
UDF's - linearizing a negative source term Steve Howell FLUENT 1 March 18, 2001 16:21
UDF Scalar Code: HT 1 Greg Perkins FLUENT 8 October 20, 2000 12:40
UDFs for Scalar Eqn - Fluid/Solid HT Greg Perkins FLUENT 0 October 13, 2000 23:03


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