CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > FLUENT

udf-outlet BC-how to get flow rate from former iteration?

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

Reply
 
LinkBack Thread Tools Display Modes
Old   August 21, 2009, 06:09
Default udf-outlet BC-how to get flow rate from former iteration?
  #1
New Member
 
christophe
Join Date: Aug 2009
Posts: 24
Rep Power: 7
jjchristophe is on a distinguished road
I am a newbie in udf and I need 2 udfs for my model: outlets and inlet's BC.
For the outlets BC I would like to provide a pressure value from the volume flow rate obtained at the former iteration.
So my question is: it is possible to get the value of the volume flow rate through a thread, or a face. otherwise, it is possible to get the velocity through a face (with the face area that will give me the volume flow rate).
I haven't found anything about this in the udf manual (but it's more than 600 pages so it's possible that I missed it).
I am using fluent 6.3.
Thanks for helping.

ps by reading through again the udf manual, I think I can use the F_U_M1(f,t) macro. But I am not sure of the meanning for U,V,W. I just want the legth of the velocity vector. Does U,V,W stand for the cartesian coordinates of the velocity?

Last edited by jjchristophe; August 21, 2009 at 09:33.
jjchristophe is offline   Reply With Quote

Old   August 21, 2009, 11:47
Default
  #2
Member
 
Join Date: Apr 2009
Posts: 78
Rep Power: 8
tstorm is on a distinguished road
I don't know if there's a volume flow rate macro, but there are mass flow rate and density macros. You might try getting volume flow rate from those (volume flow rate = mass flow rate / density)...
tstorm is offline   Reply With Quote

Old   August 24, 2009, 09:15
Default
  #3
New Member
 
christophe
Join Date: Aug 2009
Posts: 24
Rep Power: 7
jjchristophe is on a distinguished road
Thanks for the reply, but as I said, with the F_U_M1(f,t) macro I can get the velocity, and the velocity can easily provide me the volume flow rate.
So, as there is three velocity macros (U,V, W) my question is does those macros provide the components of the velocity vector for a given face?
jjchristophe is offline   Reply With Quote

Old   August 24, 2009, 14:06
Default
  #4
Member
 
Join Date: Apr 2009
Posts: 78
Rep Power: 8
tstorm is on a distinguished road
I can't find anything on that macro in the UDF manual or on the web. I would guess that U, V, and W are the cartesian axes, but in my experience macros such as this use subscripts [0], [1], and [2] for x-, y-, and z- components, rather than separate macros.
Try posting your question at http://university.fluent.com/forum/ - an ANSYS admin might be able to help you more.
tstorm is offline   Reply With Quote

Old   August 25, 2009, 04:15
Default
  #5
Senior Member
 
Max
Join Date: Mar 2009
Posts: 133
Rep Power: 8
coglione is on a distinguished road
Yes, F_U = x-component of velocity vector, F_V = y-component, F_W = z-component.
If you put these components into a vector "vel" you can use NV_MAG(vel) to get its magnitude.
However, I am not sure if F_U_M1 is really available or if it will return what you want. I know C_U_M1 which returns the cell value of the last timestep in transient simulations but never tried F_U_M1. Maybe you should use a UDM to store the required values of the last iteration.

cheers
coglione is offline   Reply With Quote

Old   August 25, 2009, 04:49
Default
  #6
New Member
 
christophe
Join Date: Aug 2009
Posts: 24
Rep Power: 7
jjchristophe is on a distinguished road
Thank you for your help.
As I can't have access to Fluent before mid september, I have to wait until then to check my codes, but I will look for more informations about UDM and the availability of F_U_M1 macro until then.
jjchristophe 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
particle, parcel and mass flow rate balance flybird FLUENT 0 May 24, 2007 10:44
Can circum-avg-axial give flow rate? Amit FLUENT 0 January 10, 2007 12:20
How to calculate particle mass flow rate at outlet Randy FLUENT 1 December 18, 2006 15:52
How to define mass flow rate using UDF? SAMUEL FLUENT 3 December 25, 2004 01:36
Constant mass flow rate / choking outlet bounardy condition Min Zhu Main CFD Forum 1 September 29, 1998 15:33


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