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

mass flux at a particular cell ( for creating CRN)

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

Reply
 
LinkBack Thread Tools Display Modes
Old   May 9, 2013, 12:13
Default mass flux at a particular cell ( for creating CRN)
  #1
Senior Member
 
Ananthakrishnan.A.S
Join Date: Feb 2012
Location: Mumbai (Bombay), India
Posts: 141
Rep Power: 7
Ananthakrishnan is on a distinguished road
Send a message via Skype™ to Ananthakrishnan
Hi,
I have a small confusion.
I will be really thankful if someone can just give me a direction or a concept to begin.
The problem is as below. (please see my next post for a clearer explanation!!)
I have a set of coordinates of mesh cells. Now as i have separate set of coordinates (which forms a interface) , i need to extract the mass flow rate at this face which is made of many cells.
The only idea which i have right now, is to retreive the individual face areas,density and velocity at each cell. and then multiply to get the mass flow rate. I am confused whether this procedure will give me the actual mass flow or not because i dont know which face of the cell will be used by fluent when i use the macro?
If anyone knows of any macro which can give the mass flux at the required cell, please let me know or if you can suggest any other method that would be highly appreciative as well.
Sorry for the trouble and thanks a lot for your help...

Last edited by Ananthakrishnan; May 9, 2013 at 16:44.
Ananthakrishnan is offline   Reply With Quote

Old   May 9, 2013, 14:44
Default
  #2
Senior Member
 
dmoroian's Avatar
 
Dragos
Join Date: Mar 2009
Posts: 647
Rep Power: 11
dmoroian is on a distinguished road
I don't fully understand your problem, but to get the mass flux through a facet, fluent provides a macro: F_FLUX(f,tf).
dmoroian is offline   Reply With Quote

Old   May 9, 2013, 16:41
Default
  #3
Senior Member
 
Ananthakrishnan.A.S
Join Date: Feb 2012
Location: Mumbai (Bombay), India
Posts: 141
Rep Power: 7
Ananthakrishnan is on a distinguished road
Send a message via Skype™ to Ananthakrishnan
Hi,
Thanks,
sorry for the lack of clarity..
In brief,i have the coordinates of certain cells in fluent,,they are continuously placed (not at random places). . i need to find out the mass flow rate through them.
These cells were found out through a udf written earlier. ( you can may be imagine these cells as the ones present at the boundary of a small volume anywhere inside the flow field. So basically i need to find the mass flow rate entering this small volume and leaving it)..
I hope this is more clearer!!
Thanks once again,
Ananthakrishnan is offline   Reply With Quote

Old   May 10, 2013, 03:34
Default
  #4
Senior Member
 
dmoroian's Avatar
 
Dragos
Join Date: Mar 2009
Posts: 647
Rep Power: 11
dmoroian is on a distinguished road
My answer is still the same: use the macro F_FLUX(f,tf).
Loop over the cells that you have, then for each cell loop over the faces. The flux should be positive or negative depending if it enters the cell or leaves it.
In principle, if you add all the negative values and all the positive values you will get the global mass flow in and out.
dmoroian is offline   Reply With Quote

Old   May 10, 2013, 05:34
Default
  #5
Senior Member
 
Ananthakrishnan.A.S
Join Date: Feb 2012
Location: Mumbai (Bombay), India
Posts: 141
Rep Power: 7
Ananthakrishnan is on a distinguished road
Send a message via Skype™ to Ananthakrishnan
Hi,
Thanks a lot for the idea dmorian. I will begin from there.
I still have a small confusion. If you dont mind can you please help me understand that.

For example, let each cell have 4 faces. When i ask him to loop through all cell's faces, how does fluent know which face to consider. I am asking this question because, one face might be normal to the flow direction, another face parallel or inclined to the flow. Does fluent take the vectorial sum across each face of all the cells through which it is looped!! I seriously think i am missing something fundamental here.
Please be kind enough to explain this.

Thanks a lot again
Ananthakrishnan is offline   Reply With Quote

Old   May 10, 2013, 06:01
Default
  #6
Senior Member
 
dmoroian's Avatar
 
Dragos
Join Date: Mar 2009
Posts: 647
Rep Power: 11
dmoroian is on a distinguished road
Please read fluent udf manual. The macro F_FLUX(f,tf) returns a scalar value representing the amount of mass flow passing through the specified face in normal direction.
Your question " When i ask him to loop through all cell's faces, how does fluent know which face to consider" is answering it self: all the faces of the cell are considered.
dmoroian 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
mass flow boundary with fractional mass flux specifications ehsan_am86 CFX 2 May 19, 2011 03:02
Creating 100 derived parts / Splitting derived parts for mass flux calculation xamo STAR-CCM+ 8 September 29, 2009 05:35
Mass flux for west, south, bottom cell face marcus CD-adapco 0 April 19, 2006 03:43
mass flux correction at outflow boundaries Subhra Datta Main CFD Forum 2 November 24, 2003 14:11
total mass flux correction for compressible fluid? Francesco Di Maio Main CFD Forum 0 August 21, 2000 04:23


All times are GMT -4. The time now is 01:00.