|
[Sponsors] |
May 2, 2024, 15:14 |
Report exit mass flow rate of a species
|
#1 |
New Member
Saksham Bhardwaj
Join Date: Oct 2023
Posts: 2
Rep Power: 0 |
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 |
|
May 3, 2024, 13:33 |
|
#2 |
New Member
Join Date: Mar 2024
Posts: 9
Rep Power: 2 |
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); } There is probably a way to do this in the GUI but I am unaware of it. Last edited by voidcrow; May 3, 2024 at 13:34. Reason: Fixed missing closing braces. |
|
May 3, 2024, 15:56 |
|
#3 |
New Member
Saksham Bhardwaj
Join Date: Oct 2023
Posts: 2
Rep Power: 0 |
That is great.
Thanks for your help |
|
Tags |
combustion modeling, mass flow outlet, nox modeling |
|
|
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 |