|
[Sponsors] |
April 23, 2003, 00:58 |
udf of DPM questions!
|
#1 |
Guest
Posts: n/a
|
Hi, thanks for reading my question.
I want to define my own particle body forces via the DPM udf. The body forces include the velocity and the velocity gradient of the continuous phase at the particle position, but the fluent DEFINE macro of the body force does't include the arguments that pass these variables to my udf. How can I get these variables in my udf? Any help will be appreciated! Regards winnie |
|
April 25, 2003, 07:45 |
Re: udf of DPM questions!
|
#2 |
Guest
Posts: n/a
|
hey,Fluent allow users to access the velocity derivative by using the Marco C_DUDX(c,t) C_DUDY(c,t),C_DUDZ(c,t)....
|
|
April 26, 2003, 05:37 |
Re: udf of DPM questions!
|
#3 |
Guest
Posts: n/a
|
Hi, thank you for your help.
I know that I can access the velocity and velocity gradient by using Macro C_U(c,t)¡¢ C_DUDX(c,t)and so on. But the arguments of DEFINE_DPM_BODY_FORCE are name¡¢p and i which represent the function name, pointer to tracked particle and the Cartesian component of the body force that is to be returned by the function respectively. The thread pointer and cell index of the continuous phase (c,t) can't be passed by the UDF arguments. My question is how can I get these variables in my UDF? Hope you can help me! Regards winnie |
|
April 28, 2003, 08:25 |
Re: udf of DPM questions!
|
#4 |
Guest
Posts: n/a
|
Hey,
I am working on something similiar since I want to create body forces using my own scalars, which are defined for the cells of the continuous phase. The solution supposed by the support was to use the macros RP_CELL and RP_THREAD to get the cell and thread number of the hosting cell. Since now this doesnt work for me, but maybe it helps you. If I get any more news I´ll let you know. Greetings Marc |
|
April 28, 2003, 22:00 |
Re: udf of DPM questions!
|
#5 |
Guest
Posts: n/a
|
It is a great help!!!
Thank you. Marc Regards winnie |
|
April 29, 2003, 04:41 |
Re: udf of DPM questions!
|
#6 |
Guest
Posts: n/a
|
Hi, Marc
I have tried and they work in my case. I don't know if your have included "surf.h" in your UDF.The RP_THREAD and RP_CELL is defined in this .h file. Regards winnie |
|
April 30, 2003, 03:52 |
Re: udf of DPM questions!
|
#7 |
Guest
Posts: n/a
|
Hi Winnie,
works for me now as well. Thing is it works without including surf.h with linux, but with X86 system you need it. This kind of confused the guy on the support an me, but it is fine now. Marc |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Path status in DPM BC UDF | HS | FLUENT | 4 | June 12, 2014 08:12 |
some questions about DPM and UDF | zhaoxinyu | Fluent UDF and Scheme Programming | 0 | April 29, 2010 10:01 |
UDF: Some Questions | Nirupam Rohatgi | FLUENT | 0 | December 18, 2007 06:55 |
DPM: using UDF for creating and deleting Particles | Markus Alzon | FLUENT | 0 | July 4, 2007 02:18 |
Boundary Condition UDF for DPM | Nicholas Wood | FLUENT | 0 | June 16, 2004 10:02 |