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

Urgent-Problem in UDF

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 2, 2006, 12:01
Default Urgent-Problem in UDF
  #1
Josh
Guest
 
Posts: n/a
I am using a user defined scalar transport equation (UDS) in which the SOURCE term is defined by the macro DEFINE_SOURCE (name, c, t, dS, eqn).

In this macro, I need to calculate the diameters of all the particles in a cell which can be calculated in discrete phase model (DPM) as P_DIAM (p).

Since the Tracked_particle pointer p is not an argument in DEFINE_SOURCE (name, c, t, dS, eqn), it can not be recognized if P_DIAM (p) is directly used.

How can I get the particle diameter in a cell when using DEFINE_SOURCE (name, c, t, dS, eqn)? Is there any other parameter in FLUENT which stands for the particle diameters in a cell?

  Reply With Quote

Old   March 2, 2006, 12:15
Default Re: Urgent-Problem in UDF
  #2
RoM
Guest
 
Posts: n/a
There is no easy way to access particle diameters during fluid iterations. Diameters are not stored in cells because fluent does not need them for fluid iterations. If you need the diameters you will have to write an additional udf which stores the needed diameters in user defined memories for later access. This has to be done during the particle tracking.

Another option would be to calculate the UDS source term during the particle tracking, store it in an UDM and retrieve it later.

Good Luck, RoM
  Reply With Quote

Old   March 2, 2006, 12:35
Default Re: Urgent-Problem in UDF
  #3
Josh
Guest
 
Posts: n/a
Thank you very much! Your suggestions are very constructive. I have to make a try even though it is hard for me.

Josh
  Reply With Quote

Old   March 2, 2006, 16:54
Default Re: Urgent-Problem in UDF
  #4
Lourival
Guest
 
Posts: n/a
Another way, you could do something with the MACRO: DEFINE_DPM_SCALAR_UPDATE as is in the example of the same macro.

You can try, post the results and erros...

Lourival
  Reply With Quote

Old   March 3, 2006, 00:01
Default Re: Urgent-Problem in UDF
  #5
Josh
Guest
 
Posts: n/a
Thank you very much for your suggestion. I will try this as well.

Josh
  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
Pressure profile UDF for unsteady-state problem? Mohsen Keshavarzian FLUENT 2 August 20, 2008 04:22
parallel UDF problem kerem FLUENT 2 June 20, 2006 06:56
Switch problem! using 2 custom udf laws at the same time HP FLUENT 0 September 15, 2004 09:48
UDF Problem ozgur FLUENT 15 March 11, 2004 13:52
UDF variables F1, y / problem with UDF Fabian FLUENT 6 June 2, 2003 10:22


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