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

UDF-dpm

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 22, 2009, 12:54
Default UDF-dpm
  #1
Alireza
Guest
 
Posts: n/a
Hi I have an easy question. I have a simple code.As: #include "udf.h" DEFINE_DPM_SCALAR_UPDATE(PARTICLEM,c,t,initializa, p) {

if(p->state.pos[0]>0.5)

{

p->stream_index=-1;

}

else

{

} } I expect it removes particle in a 2d rectangular after x>0.5.But when i go to Display-particle Tracks- shows my particle. Incredibly as i do not use (if statement) it works and delete my particle.I am sure that i compile and hook it truely. Please help me ASAP. arh1384@gmail.com Best Regards
  Reply With Quote

Old   January 22, 2009, 13:02
Default Re: UDF-dpm *NM*
  #2
Alireza
Guest
 
Posts: n/a
  Reply With Quote

Old   January 22, 2009, 15:47
Default Re: UDF-dpm
  #3
Allan Walsh
Guest
 
Posts: n/a
I have used P_POS(p)[i] for particle position (i=0 for x etc.) Not sure why your version wouldn't work.
  Reply With Quote

Old   January 22, 2009, 17:30
Default Re: UDF-dpm
  #4
Alireza
Guest
 
Posts: n/a
Thank you. Also i used P_POS(p)[i] and it does not work too. Incredible.
  Reply With Quote

Old   January 27, 2009, 10:50
Default Re: UDF-dpm
  #5
Alireza
Guest
 
Posts: n/a
Hi I did not use the scale truely. I forgot that all units in UDF is meter. Thank you again
  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



All times are GMT -4. The time now is 19:55.