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

what way of getting mass flow rate is correct?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 21, 2011, 16:23
Default what way of getting mass flow rate is correct?
  #1
Member
 
Join Date: Mar 2011
Posts: 38
Rep Power: 15
aleisia is on a distinguished road
1.

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)

2.
if PRINCIPAL_FACE_P(f,t) /* tests if the face is the principle face FOR COMPILED UDFs ONLY */
{
massflowrate += F_YI(f,t,i)*F_FLUX(f,t); /* dot product of the inlet surface flux and area vector, multiplied by the mass fraction of species i */
}

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); "?
or "massflowrate += F_YI(f,t,i)*F_FLUX(f,t);"


thanks
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
Particle Injection Mass Flow Rate and Position leonozx FLUENT 3 March 9, 2018 09:58
Running dieselFoam error adorean OpenFOAM Running, Solving & CFD 119 February 1, 2016 14:41
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 06:20
Mass Flow Rate is not converging destgir448 CFX 5 December 11, 2010 05:55
mass flow rate on the Iso-clip surface & interior Sunil Gupta FLUENT 0 April 22, 2008 09:29


All times are GMT -4. The time now is 23:48.