|
[Sponsors] |
April 1, 2003, 23:43 |
DPM UDF in 2ddp
|
#1 |
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! |
|
April 2, 2003, 01:50 |
Re: DPM UDF in 2ddp
|
#2 |
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 |
|
April 2, 2003, 03:19 |
Re: DPM UDF in 2ddp
|
#3 |
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. |
|
April 2, 2003, 12:48 |
Re: DPM UDF in 2ddp
|
#4 |
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) .... } |
|
April 2, 2003, 16:52 |
Re: DPM UDF in 2ddp
|
#5 |
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 |
|
April 3, 2003, 17:34 |
Re: DPM UDF in 2ddp
|
#6 |
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.
|
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
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 |