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

what way of getting mass flow rate is correct?

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools 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: 6
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

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 06:20
Particle Injection Mass Flow Rate and Position leonozx FLUENT 2 April 29, 2011 09:19
Mass Flow Rate is not converging destgir448 CFX 5 December 11, 2010 06:55
Running dieselFoam error adorean OpenFOAM Running, Solving & CFD 118 March 12, 2009 15:37
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 12:28.