|
[Sponsors] |
July 18, 2012, 08:56 |
Calculation of the molar flow rate
|
#1 |
New Member
Join Date: Jul 2012
Posts: 6
Rep Power: 13 |
Hello everyone !
In my problem I have a cylindrical geometry with an inlet and an outlet with a mixture inside and I want to determinate the molar flow rate in the inlet and the outlet. The formula to calculate the molar flow rate is : Where C is the concentration of the specie, V the velocity of the flow and S the surface The Inlet ID is 23, the outlet is 24 and my mixture ID is 15. I've tried to code it but I've several issues : Here's my UDF for my inlet case: #include "udf.h" DEFINE_EXECUTE_AT_END(measure_molar_flow_rate_inl) { Domain *d; real molar_flow_rate_inl=0.; face_t f; Thread *t; d = Get_Domain(15); t= Lookup_Thread(d, 24); begin_f_loop(f,t) { molar_flow_rate_inl+=NV_MAG(A)*F_W(f,t)*"Concentra tion"; /* How to define the face concentration of a specific specie when my mixture contains several species and how I can define A in NV_MAG(A) ???*/ } end_f_loop(f,t) } printf("Molecular Flow Rate inlet: %g\n",molar_flow_rate_inl); Thank you for your future answers !!! |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to calculate phase flow rate? | sangramroy | FLUENT | 0 | January 11, 2012 13:02 |
Mass Flow Rate is not converging | destgir448 | CFX | 5 | December 11, 2010 05:55 |
Calculation of mass flow rate | msrinath80 | OpenFOAM Running, Solving & CFD | 0 | April 18, 2007 14:05 |
mass flow rate error | Masood | FLUENT | 0 | May 22, 2005 00:32 |