CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Mark Position of the Particle which left the domain.

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 15, 2017, 14:46
Default Mark Position of the Particle which left the domain.
  #1
Senior Member
 
Himanshu Sharma
Join Date: Jul 2012
Posts: 101
Rep Power: 14
himanshu28 is on a distinguished road
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
himanshu28 is offline   Reply With Quote

Old   March 16, 2017, 02:36
Default
  #2
Senior Member
 
Yogesh Bapat
Join Date: Oct 2010
Posts: 102
Rep Power: 16
ybapat is on a distinguished road
Hello ,

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

Regards,
-Yogesh
ybapat is offline   Reply With Quote

Old   March 16, 2017, 16:03
Default
  #3
Senior Member
 
Himanshu Sharma
Join Date: Jul 2012
Posts: 101
Rep Power: 14
himanshu28 is on a distinguished road
Quote:
Originally Posted by ybapat View Post
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.
himanshu28 is offline   Reply With Quote

Old   August 21, 2020, 11:27
Default
  #4
New Member
 
Lucie Recurt
Join Date: Jun 2020
Posts: 17
Rep Power: 6
lucie.recurt is on a distinguished road
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
lucie.recurt is offline   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


Similar Threads
Thread Thread Starter Forum Replies Last Post
PatchInjection: Initial Particle Position mayank.dce2k7 OpenFOAM Programming & Development 1 October 6, 2022 13:11
Multiphase flow - incorrect velocity on inlet Mike_Tom CFX 6 September 29, 2016 02:27
Uniform inlet particle distribution without position file mayank.dce2k7 OpenFOAM Running, Solving & CFD 0 December 5, 2013 18:24
Particles leave my domain (Discrete Particle Model) diffo FLUENT 0 March 19, 2009 12:23
how to know position of particle in PTK areriko CFX 0 November 19, 2007 22:19


All times are GMT -4. The time now is 10:12.