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

UDF: CONTROL DRAG/EXCHANGE COEFF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 4, 2004, 01:47
Default UDF: CONTROL DRAG/EXCHANGE COEFF
  #1
Luis
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
  Reply With Quote

Old   June 6, 2004, 15:37
Default Re: UDF: CONTROL DRAG/EXCHANGE COEFF
  #2
ap
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
  Reply With Quote

Old   June 8, 2004, 13:05
Default Re: UDF: CONTROL DRAG/EXCHANGE COEFF
  #3
Luis
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
  Reply With Quote

Old   June 8, 2004, 14:29
Default Re: UDF: CONTROL DRAG/EXCHANGE COEFF
  #4
ap
Guest
 
Posts: n/a
Yes, I meant the drag coefficient. Sorry for the misunderstanding.

Hi

ap
  Reply With Quote

Old   July 16, 2012, 07:27
Default Udm
  #5
New Member
 
Majid Mostafazadeh
Join Date: Nov 2011
Posts: 15
Rep Power: 15
forgottenman is on a distinguished road
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
forgottenman is offline   Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 06:09.