CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Remove particle in solidParticleFoam (https://www.cfd-online.com/Forums/openfoam-programming-development/91441-remove-particle-solidparticlefoam.html)

shchepan August 11, 2011 02:07

Remove particle in solidParticleFoam
 
Hi,
I am working with solidParticle library within OpenFOAM-1.6. I coded additional function, which change particle diameter due to the diffusion process. This function is implemented in solidParticleFoam before move function.
Now I need to remove from the cloud particles with diameters close to zero. Is there any function to remove (delete) particle from the cloud?

steffi_geier August 11, 2011 09:25

Hi Mihails,

I think you can delete particles if you change
td.keepParticle = true;

to
td.keepParticle = false;
for the particles which are too small for you.
You will find the line
td.keepParticle = true;
within the function "move".
Hope this will help you
Steffi

shchepan August 11, 2011 10:41

Dear Steffi,
thank you for answer.

Line td.keepParticle = true; is situated in the begin of move function. If I'll code somewhere in this function
HTML Code:

if (d_<=0.0)
    td.keepParticle = false;

it will remove this particle only ones for move function. Every next step move function will check this if again. But I want totally delete this particle.

I created new function sizeEvolution(), which has no argument of td. This function is implemented in the solver before move function. So I want to delete particles with zero size within sizeEvolution function. How can I do it?

AMahrla August 12, 2011 04:50

Possibly you could try to use the "deleteParticle" function of basic cloud (find the definition in Cloud.C or here in the doxygen) ?

shchepan August 12, 2011 07:29

Perfectly! Thank you, Astrid!

mayank.dce2k7 September 8, 2013 18:33

Hi,

Can any of you tell me how to calculate/count particle escaping from a patch in solidParticleFoam?

Regards,
Mayank

houwy March 28, 2014 07:25

Hello! I want change particle diameter due to the diffusion process. How can I do it! What function did you add.

houwy April 14, 2014 09:56

Quote:

Originally Posted by mayank.dce2k7 (Post 450545)
Hi,

Can any of you tell me how to calculate/count particle escaping from a patch in solidParticleFoam?

Regards,
Mayank

Have you solved your problem?

mayank.dce2k7 April 16, 2014 17:29

Yaa, I did. But I am using icoUncoupledKinematicPartcelFoam. It has in-built functionality of counting particles. I was unable incorporate that functionality in solidParticleFoam though.


All times are GMT -4. The time now is 15:25.