CFD Online Logo CFD Online URL
Home > Forums > FLUENT

DPM: using UDF for creating and deleting Particles

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

LinkBack Thread Tools Display Modes
Old   July 4, 2007, 01:18
Default DPM: using UDF for creating and deleting Particles
Markus Alzon
Posts: n/a

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,

  Reply With Quote


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

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