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

udf of DPM questions!

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

Reply
 
LinkBack Thread Tools Display Modes
Old   April 23, 2003, 00:58
Default udf of DPM questions!
  #1
winnie
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
  Reply With Quote

Old   April 25, 2003, 07:45
Default Re: udf of DPM questions!
  #2
majestywzh
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)....
  Reply With Quote

Old   April 26, 2003, 05:37
Default Re: udf of DPM questions!
  #3
winnie
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
  Reply With Quote

Old   April 28, 2003, 08:25
Default Re: udf of DPM questions!
  #4
Marc
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
  Reply With Quote

Old   April 28, 2003, 22:00
Default Re: udf of DPM questions!
  #5
winnie
Guest
 
Posts: n/a
It is a great help!!!

Thank you. Marc

Regards winnie
  Reply With Quote

Old   April 29, 2003, 04:41
Default Re: udf of DPM questions!
  #6
winnie
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
  Reply With Quote

Old   April 30, 2003, 03:52
Default Re: udf of DPM questions!
  #7
Marc
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
  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
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


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