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

Calculation of the molar flow rate

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   July 18, 2012, 08:56
Question Calculation of the molar flow rate
  #1
New Member
 
Join Date: Jul 2012
Posts: 6
Rep Power: 13
sylvix48 is on a distinguished road
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 :

\int\int C*S*VdS

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 !!!
sylvix48 is offline   Reply With Quote

 


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
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


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