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

DPM UDF in 2ddp

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 1, 2003, 23:43
Default DPM UDF in 2ddp
  #1
hedonist
Guest
 
Posts: n/a
Hi, All

I wrote a UDF drag, and it worked perfectly in Fluent 2d case. However, Dp=P_DIAM(p) always return 0 when I change to the 2ddp solver. Do you know why?

Best Regards!
  Reply With Quote

Old   April 2, 2003, 01:50
Default Re: DPM UDF in 2ddp
  #2
Alex Munoz
Guest
 
Posts: n/a
Hi my hedonist friend

Perhap I can help you but you need to tell me what do you mean with 2ddp solver.

By the way, also explain me those symbols that you wrote as a present!, If it is what I thought your present was quit unpolite

Regards

Alex Munoz
  Reply With Quote

Old   April 2, 2003, 03:19
Default Re: DPM UDF in 2ddp
  #3
Alexandre
Guest
 
Posts: n/a
Did you declare your variable correctly? (using real ... ) for example ?

i use this with the 2ddp solver and have no problem.
  Reply With Quote

Old   April 2, 2003, 12:48
Default Re: DPM UDF in 2ddp
  #4
hedonist
Guest
 
Posts: n/a
Dear Alex,

The present I gave you was a bowl of potato chips. Is it impolite?

When I switch from 2d to 2ddp, I deleted the 2d directory under /aix43/, and mkdir aix43/2ddp. Then I compiled the udf, start fluent 2ddp, open the udflib, and run particle track. The returned Dp was always 0.

#include "udf.h"

#include "dpm.h"

DEFINE_DPM_DRAG(udf_drag, Re, p)

{

double drag_force;

double Dp=P_DIAM(p)

.... }
  Reply With Quote

Old   April 2, 2003, 16:52
Default Re: DPM UDF in 2ddp
  #5
Alex Munoz
Guest
 
Posts: n/a
Hi Hedonist

I apologize for undertanding wrong your present!

About you problem Alexandre is right you must to specify all your variables real. Look at this:

Note that in FLUENT, real is a typedef that switches between float for single-precision arithmetic, and double for double-precision arithmetic. Since the interpreter makes this assignment automatically, it is good programming practice to use the real typedef when declaring all float and double data type variables in your UDF.

Best regards

Alex
  Reply With Quote

Old   April 3, 2003, 17:34
Default Re: DPM UDF in 2ddp
  #6
hedonist
Guest
 
Posts: n/a
Thanks, Alex. But I have tried both real and double, neither of them works in 2ddp case. I must have met a ghost.
  Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
DPM UDF particle position using the macro P_POS(p)[i] dm2747 FLUENT 0 April 17, 2009 02:29
DPM with UDF - Step-by-Step Procedure???? Prashanth FLUENT 3 April 3, 2009 18:45
DPM - UDF for fluctuating bubble size Jaroslav Kotara FLUENT 1 April 19, 2006 10:02
Boundary Condition UDF for DPM Nicholas Wood FLUENT 0 June 16, 2004 10:02
udf of DPM questions! winnie FLUENT 6 April 30, 2003 03:52


All times are GMT -4. The time now is 21:11.