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

UDF to obtain total mass of species

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 21, 2015, 22:15
Default UDF to obtain total mass of species
  #1
New Member
 
Michael
Join Date: May 2014
Posts: 2
Rep Power: 0
Michael.Z is on a distinguished road
Hello all,

I am looking for a way to obtain the total mass of species A within a domain in a transient setup at every time step. There are two species in that domain and a source term for species A. I was thinking about DEFINE_EXECUTE_AT_END and loop over all cells to get the mass fractions and the cell volumes. What I am not sure about is how to obtain a single value by adding up these values from all cells and store that in a file at every time step.
If you have a better idea for solving that please let me know (e.g. maybe there is a way to monitor the mass source term in a domain).
For better understanding: the mass source is variable and changes from cell to cell depending on the mass fraction of species A which is of course changing over time. Any ideas or help are welcome.

THX
Michael.Z is offline   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
Accessing the species mass fraction for particles data in UDF mac_09 FLUENT 17 August 9, 2017 21:15
Surface Integrals of Species Mass Flow to Wall Incorrect koad FLUENT 4 January 12, 2016 17:38
PB: Saving mass fraction of species on two points with an udf biget.a FLUENT 2 July 23, 2009 04:06
UDF solution variable for time-averaged mass frac? A. S. FLUENT 0 May 14, 2007 17:44
mass fraction of species Ahmed FLUENT 0 April 18, 2007 12:57


All times are GMT -4. The time now is 15:42.