|
[Sponsors] |
udf-outlet BC-how to get flow rate from former iteration? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 21, 2009, 07:09 |
udf-outlet BC-how to get flow rate from former iteration?
|
#1 |
New Member
christophe
Join Date: Aug 2009
Posts: 24
Rep Power: 17 |
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 10:33. |
|
August 21, 2009, 12:47 |
|
#2 |
Member
Join Date: Apr 2009
Posts: 78
Rep Power: 17 |
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)...
|
|
August 24, 2009, 10:15 |
|
#3 |
New Member
christophe
Join Date: Aug 2009
Posts: 24
Rep Power: 17 |
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? |
|
August 24, 2009, 15:06 |
|
#4 |
Member
Join Date: Apr 2009
Posts: 78
Rep Power: 17 |
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. |
|
August 25, 2009, 05:15 |
|
#5 |
Senior Member
Max
Join Date: Mar 2009
Posts: 133
Rep Power: 17 |
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 |
|
August 25, 2009, 05:49 |
|
#6 |
New Member
christophe
Join Date: Aug 2009
Posts: 24
Rep Power: 17 |
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. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to calculate particle mass flow rate at outlet | Randy | FLUENT | 6 | April 29, 2020 14:47 |
particle, parcel and mass flow rate balance | flybird | FLUENT | 0 | May 24, 2007 11:44 |
Can circum-avg-axial give flow rate? | Amit | FLUENT | 0 | January 10, 2007 12:20 |
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 16:33 |