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

Does F_YI(f,t,i) get average mass fraction or not?

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By aleisia

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 21, 2011, 16:52
Default Does F_YI(f,t,i) get average mass fraction or not?
  #1
Member
 
Join Date: Mar 2011
Posts: 38
Rep Power: 15
aleisia is on a distinguished road
There is a so2-air mixture passing through a surface inlet, I want to know the SO2 mass flow rate, so I need to use F_YI(f,t,i), my question is, is this F_YI (f,t,i) the average mass fraction already, or it is something else? I know that by writing f,t, the program will automatically go through all the surfaces on the same thread to calculate the mass fraction, without using begin_f_loop, am I getting this right?

My old code is:

begin_f_loop(f,t)
if PRINCIPAL_FACE_P(f,t) /* tests if the face is the principle face FOR COMPILED UDFs ONLY */
{
NV_D(flux, =, F_U(f,t), F_V(f,t), F_W(f,t)); /* defining flux in terms of velocity field */
NV_S(flux, *=, F_R(f,t)); /* multiplying density to get flux vector */
F_AREA(A,f,t); /* face normal vector returned from F_AREA */
massflowrate += F_YI(f,t,i)*NV_DOT(flux,A); /* dot product of the inlet surface flux and area vector, multiplied by the mass fraction of species i */
}
end_f_loop(f,t)

I guess I don't need the begin_f_loop and end_f_loop, right?
but how am I supposed to do with "massflowrate += F_YI(f,t,i)*NV_DOT(flux,A); "

thanks
qingyang likes this.
aleisia 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
Error message: Insufficient Catalogue Size Paresh Jain CFX 33 August 16, 2024 06:09
mass flow in is not equal to mass flow out saii CFX 12 March 19, 2018 06:21
Water subcooled boiling Attesz CFX 7 January 5, 2013 04:32
On the damBreak4phaseFine cases paean OpenFOAM Running, Solving & CFD 0 November 14, 2008 22:14
CFX Solver Memory Error mike CFX 1 March 19, 2008 08:22


All times are GMT -4. The time now is 04:57.