CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM

Mark Position of the Particle which left the domain.

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 15, 2017, 14:46
Default Mark Position of the Particle which left the domain.
  #1
Member
 
Himanshu Sharma
Join Date: Jul 2012
Posts: 93
Rep Power: 6
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
Member
 
Yogesh Bapat
Join Date: Oct 2010
Posts: 44
Rep Power: 8
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
Member
 
Himanshu Sharma
Join Date: Jul 2012
Posts: 93
Rep Power: 6
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

Reply

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiphase flow - incorrect velocity on inlet Mike_Tom CFX 6 September 29, 2016 01:27
PatchInjection: Initial Particle Position mayank.dce2k7 OpenFOAM Programming & Development 0 April 16, 2014 17:55
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 23:32.