|
[Sponsors] |
June 4, 2004, 01:47 |
UDF: CONTROL DRAG/EXCHANGE COEFF
|
#1 |
Guest
Posts: n/a
|
Hi everyone,
I am solving a 2-phase flow, and need to control the drag using an UDF. I am trying to apply the DEFINE_EXCHANGE_PROPERTY macro to define the drag coefficient. When I use my UDFs for a simple case, without important direction changes, the results are reasonable. However, for a more complex geometry, even if the UDF is written with the same equations that are presented in the Fluent documentation, I get weird flow patterns, which I don't see if I use a pre-defined Fluent drag model. Has anyone been successful controlling the drag / exchange coefficient using an UDF? Any help will be extremely appreciated, Luis |
|
June 6, 2004, 15:37 |
Re: UDF: CONTROL DRAG/EXCHANGE COEFF
|
#2 |
Guest
Posts: n/a
|
This sounds strange. I'd check the code, because the DEFINE_EXCHANGE_PROPERTY just replaces the predefined FLUENT drag function.
Try to follow the example reported in UDF manual. To control the value, just define a UDM and store the value returned by the UDF there. You can then plot using contours for example. Hi ap |
|
June 8, 2004, 13:05 |
Re: UDF: CONTROL DRAG/EXCHANGE COEFF
|
#3 |
Guest
Posts: n/a
|
Hi ap,
Thanks for your answer. Before writing the UDF I read carefully the examples, and I esentially tried to follow one of them. My UDF returns the exchange coefficient, instead of the drag function, but I think that's what you meant. Checking the UDF returned values sounds like a good idea, I'll try that. Regards, Luis |
|
June 8, 2004, 14:29 |
Re: UDF: CONTROL DRAG/EXCHANGE COEFF
|
#4 |
Guest
Posts: n/a
|
Yes, I meant the drag coefficient. Sorry for the misunderstanding.
Hi ap |
|
July 16, 2012, 07:27 |
Udm
|
#5 |
New Member
Majid Mostafazadeh
Join Date: Nov 2011
Posts: 15
Rep Power: 15 |
Hi
How did you make a UDM for DEFINE_EXCHANGE_PROPERTY? UDM needs to be made in a loop, how did you write that loop? Thank you |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF control time | cfdhydraulic | FLUENT | 0 | September 23, 2010 05:34 |
access drag coeff and udf for granular temp | jwwang | FLUENT | 0 | May 22, 2006 01:48 |
UDF to control autowrite option | scubme | FLUENT | 0 | January 22, 2005 12:47 |
UDF to control Static Pressure (in cylinder) | James | FLUENT | 0 | July 20, 2004 08:54 |
UDF for heat transfer coeff.. | ravi | FLUENT | 2 | July 9, 2004 01:09 |