CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Mark Position of the Particle which left the domain. (https://www.cfd-online.com/Forums/openfoam-solving/184965-mark-position-particle-left-domain.html)

himanshu28 March 15, 2017 13:46

Mark Position of the Particle which left the domain.
 
Hi Foamer's,

I am running icoUncoupledKinematicParcelFoam. In my domain I have a inlet and an outlet. For a pre-computed flow field the "U", I initialize my particle and let them evolve with time.

For example I have 100 particles at t=0 as time evolve t +dt the number of particles in the domain goes to 95. 5 Particles leaves the domain.

OpenFOAM writes Positions for each time step, but doesn't write the particles which have left the domain i.e the next time step file contains 95 points.

My objective:
I would like to know the Particle which left the domain and write there positions as a chosen point (x',y',z') which indicate/mark that the particle has left the domain. I want to do this because I want to maintain the Number of particles in the "positions" file written by OpenFoam as constant.


I will really appreciate if someone can suggest some route to achieve the objective.I am not familiar with Lagrangian classes in OF in detail, therefore if someone can direct me what modifications can help.

Thank you

ybapat March 16, 2017 01:36

Hello ,

You can try using PatchPostProcessing cloud function object. I think it should provide required information.

Regards,
-Yogesh

himanshu28 March 16, 2017 15:03

Quote:

Originally Posted by ybapat (Post 640933)
Hello ,

You can try using PatchPostProcessing cloud function object. I think it should provide required information.

Regards,
-Yogesh

I think you are suggesting to track all those clouds which have left/crossed the patch. Will have a look at it if that can help.
Further, I found that at each time step in the Lagrangian folder, a file origID can that be used anyhow to identify which particle left as I have only single particle in each parcel, and I see that the list size changes with the time step.

lucie.recurt August 21, 2020 10:27

hello!


maybe it's a little bit late for an answer but i had the same problem and the only solution that I found to fix it is to put stick at the outlet patch interaction so the particles don't really leave the domain but stay at the outlet and because it's inside the domain you have their positions


All times are GMT -4. The time now is 23:51.