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

Report exit mass flow rate of a species

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By voidcrow

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 2, 2024, 15:14
Smile Report exit mass flow rate of a species
  #1
New Member
 
Saksham Bhardwaj
Join Date: Oct 2023
Posts: 2
Rep Power: 0
Saku03 is on a distinguished road
Hello everyone, I'm simulating methane combustion in a furnace and I want mass flow rate of NOx (in g/s) at an outlet. I don't know how to report that.
Do I need to define a new function for that ?
Please help

Thank you
Saku03 is offline   Reply With Quote

Old   May 3, 2024, 13:33
Default
  #2
New Member
 
Join Date: Mar 2024
Posts: 9
Rep Power: 2
voidcrow is on a distinguished road
I managed to do something like that with an "on-demand" UDF, which I apply after the simulation converges. Here is an example.

Code:
DEFINE_ON_DEMAND(compute_flow_rates) {
    Domain *d = Get_Domain(1); 
    Thread *t; 
    face_t f; 

    t = Lookup_Thread(d, YOUR_OUTLET_FACE_INDEX);
   
    real mass_flow_species = 0.0; 
  
    begin_f_loop(f, t) {
        mass_flow_species += F_FLUX(f, t) * F_YI(f, t, YOUR_SPECIES_INDEX); 
    } end_f_loop(f, t)
    

    Message0("Flow rate (kg/s): %e\n", mass_flow_species); 
}
It loops over all face threads in the outlet and cumulatively sums the value of mass flow rate of the species you want. You need to replace "YOUR_OUTLET_FACE_INDEX" (with the index you find in outlet boundary conditions) and "YOUR_SPECIES_INDEX" (with the index of the species that you want).


There is probably a way to do this in the GUI but I am unaware of it.
Saku03 likes this.

Last edited by voidcrow; May 3, 2024 at 13:34. Reason: Fixed missing closing braces.
voidcrow is offline   Reply With Quote

Old   May 3, 2024, 15:56
Talking
  #3
New Member
 
Saksham Bhardwaj
Join Date: Oct 2023
Posts: 2
Rep Power: 0
Saku03 is on a distinguished road
That is great.
Thanks for your help
Saku03 is offline   Reply With Quote

Reply

Tags
combustion modeling, mass flow outlet, nox modeling


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
Ncrit for a glider Xfoil. How to use it. GPT4 answer AlanMattanó Main CFD Forum 0 April 10, 2023 13:16
Mass flow rate history over solution step- rhoSimpleFoam gian93 OpenFOAM Post-Processing 0 December 8, 2019 11:20
Pressure Outlet Targeted Mass Flow Rate LuckyTran FLUENT 1 November 23, 2016 11:40
Multiphase flow - incorrect velocity on inlet Mike_Tom CFX 6 September 29, 2016 02:27
how to report mass flow rate at line-surf suman kandula FLUENT 2 August 24, 2007 21:30


All times are GMT -4. The time now is 17:24.