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

problem with writing UDF for dpm

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 15, 2011, 23:59
Default problem with writing UDF for dpm
  #1
New Member
 
massoud
Join Date: Nov 2011
Posts: 20
Rep Power: 15
massoudepsilon is on a distinguished road
Hi,

is there anyone who knows that how I can understand whether a cell is host of a particle in dpm model?

thank you so much in advance
.
massoudepsilon is offline   Reply With Quote

Old   November 16, 2011, 03:48
Default
  #2
Senior Member
 
Amir's Avatar
 
Amir
Join Date: May 2009
Location: Montreal, QC
Posts: 735
Blog Entries: 1
Rep Power: 23
Amir is on a distinguished road
Hi,

if (c == P_CELL(p)) ....

Bests,
__________________
Amir
Amir is offline   Reply With Quote

Old   November 16, 2011, 03:58
Default
  #3
New Member
 
massoud
Join Date: Nov 2011
Posts: 20
Rep Power: 15
massoudepsilon is on a distinguished road
hi amir,

Thank you for your respond,

the problem is I do not have the "p" (pointer).

I have to compute gradient of a certain normal tension at the point that particle is. but for doing that I need to calculate this normal tension all over the domain, and this normal tension depends on particle volume fraction in each cell. then I can calculate its gradient.

So, first I have to calculate the normal tension by using the define adjust macro
which does not pass the particle pointers. do you think is there another way to find whether there is any particle in a cell?
massoudepsilon is offline   Reply With Quote

Old   November 16, 2011, 05:08
Default
  #4
Senior Member
 
Amir's Avatar
 
Amir
Join Date: May 2009
Location: Montreal, QC
Posts: 735
Blog Entries: 1
Rep Power: 23
Amir is on a distinguished road
Dear Massoud,

This is not good idea to use this procedure; it's better to use a DPM macro in order to convert lagrangian data to eulerian one (something like DEFINE_DPM_SCALAR_UPDATE or ...) for this purpose you can use UDMs as an extra memory to store particle concentration; in next step, use DEFINE_ADJUST macro to evaluate new properties.

Bests,
__________________
Amir
Amir is offline   Reply With Quote

Old   November 16, 2011, 05:13
Default
  #5
New Member
 
massoud
Join Date: Nov 2011
Posts: 20
Rep Power: 15
massoudepsilon is on a distinguished road
Dear amir,

Thank you again,

could you tell me how can I calculate particle concentration in each cell?

if I can do that my problem would be solved.

Cheers
massoudepsilon is offline   Reply With Quote

Old   November 16, 2011, 05:19
Default
  #6
Senior Member
 
Amir's Avatar
 
Amir
Join Date: May 2009
Location: Montreal, QC
Posts: 735
Blog Entries: 1
Rep Power: 23
Amir is on a distinguished road
Quote:
Originally Posted by massoudepsilon View Post
Dear amir,

Thank you again,

could you tell me how can I calculate particle concentration in each cell?

if I can do that my problem would be solved.

Cheers
Here is the numerical procedure:
Experimental measurements and numerical simulations of particle transport and distribution in ventilated rooms; Z. Zhang, Q. Chen; Atmospheric Environment 40 (2006) 3396–3408
Use Eq.7 ....

Bests,
__________________
Amir
Amir is offline   Reply With Quote

Old   November 16, 2011, 05:21
Default
  #7
New Member
 
massoud
Join Date: Nov 2011
Posts: 20
Rep Power: 15
massoudepsilon is on a distinguished road
dear amir,

I really appreciate you taking the time to answer my questions,

CHeers
massoudepsilon is offline   Reply With Quote

Reply

Tags
dpm, macro, udf


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
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM Rizwan Fluent UDF and Scheme Programming 40 March 18, 2018 07:05
UDF Problem ozgur Fluent UDF and Scheme Programming 18 January 17, 2016 15:40
UDF compiling problem in Flient 6.3 jeevan kumar FLUENT 2 February 25, 2009 01:43
UDF using problem, error happens-heip!! Michael FLUENT 1 December 9, 2008 08:51
UDF PROBLEM anant FLUENT 2 January 17, 2007 01:15


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