|February 21, 2012, 05:21||
Calculate the entering flow rate in each cell
Join Date: Apr 2010
Posts: 53Rep Power: 5
Hi at all!
I am trying to find a way how to calculate the flow rate that enters or leaves a cell. In sum it should be zero but I like to find out a specific value for each cell of the domain.
Does anyone has an idea how to approach this? Thank you very much in advance.
|February 21, 2012, 21:11||
Join Date: Feb 2010
Location: Shanghai, China
Posts: 97Rep Power: 6
|May 30, 2012, 12:11||
problem trying to get the mass flow entering a cell
Join Date: May 2012
Posts: 2Rep Power: 0
I have tried to calculate the mass flow entering inside a cell (for a DEFINE_SOURCE macro) with a loop over the faces of the cell but I have problems of "non-integer subscript expression: unsigned char".
This is my code
//near peak operating point
real Ft; //Ft source term
real T01; //Inlet Total temperature
real T02; //Outlet Total temperature
real cp; //variable which will store the specific heat of air
real x[ND_ND]; //array for storing the centroid position
c_face_loop(c,t,n)//line 21 the one which gives problems
f_thread = C_FACE_THREAD(c,t,n);
if(F_FLUX(f,f_thread)>0)// only calculate the massflow entering
C_CENTROID(x,c,t);//we store in x the centroid position of each cell
r=x;// the radial position is the y-coordinate of the cell centroid
r = x;
I need your help because I cant see the mistake I am doing.
|Thread||Thread Starter||Forum||Replies||Last Post|
|Mass flow rate: calculation v/s computation||beguxa||FLUENT||4||June 8, 2013 17:17|
|mass flow rate error||Masood||FLUENT||0||May 22, 2005 01:32|
|How to calculate the mass flow rate with UDF ?||HP||FLUENT||0||January 10, 2005 20:38|
|sos! How to define the flow rate of outflow BC?||zjm||FLUENT||0||June 4, 2004 10:12|
|cell flow rate||sivakumar||FLUENT||0||March 31, 2003 14:05|