|
[Sponsors] |
what way of getting mass flow rate is correct? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 21, 2011, 17:23 |
what way of getting mass flow rate is correct?
|
#1 |
Member
Join Date: Mar 2011
Posts: 38
Rep Power: 15 |
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 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Particle Injection Mass Flow Rate and Position | leonozx | FLUENT | 3 | March 9, 2018 10:58 |
Running dieselFoam error | adorean | OpenFOAM Running, Solving & CFD | 119 | February 1, 2016 15:41 |
Moving mesh | Niklas Wikstrom (Wikstrom) | OpenFOAM Running, Solving & CFD | 122 | June 15, 2014 07:20 |
Mass Flow Rate is not converging | destgir448 | CFX | 5 | December 11, 2010 06:55 |
mass flow rate on the Iso-clip surface & interior | Sunil Gupta | FLUENT | 0 | April 22, 2008 10:29 |