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

DPM: using UDF for creating and deleting Particles

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 4, 2007, 02:18
Default DPM: using UDF for creating and deleting Particles
  #1
Markus Alzon
Guest
 
Posts: n/a
Hello,

I'd like to write an UDF for a DPM simulation, with which I can create new Droplets, and also delete old ones.

In the src-folder of Fluent, I found the header with all the structs and functions for DPM.

As far as I understand, a new particle can be created with "new_particle(void)", or also appended to an existing particles-list ("append_particle_to_list(Particle *p, Particle **pl, Injection *I)"). I guess that the double pointer "**pl" is pointing to the last particle in the thread?

Instead of creating a completely new particle, copying one might be more convenient. So, I also tried the functions "copy_particle_pvars" and "deep_cop_particle".

So, far I was not really successful, and the newly created particles were not tracked.

I would be glad, if anyone could give me a hint.

Thanks in advance,

MA
  Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On



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