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

udf of DPM questions!

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 22, 2003, 23: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, 06: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, 04: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, 07: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, 21: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, 03: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, 02: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


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
Path status in DPM BC UDF HS FLUENT 4 June 12, 2014 07:12
some questions about DPM and UDF zhaoxinyu Fluent UDF and Scheme Programming 0 April 29, 2010 09:01
UDF: Some Questions Nirupam Rohatgi FLUENT 0 December 18, 2007 05:55
DPM: using UDF for creating and deleting Particles Markus Alzon FLUENT 0 July 4, 2007 01:18
Boundary Condition UDF for DPM Nicholas Wood FLUENT 0 June 16, 2004 09:02


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