|
[Sponsors] |
Mark Position of the Particle which left the domain. |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 15, 2017, 14:46 |
Mark Position of the Particle which left the domain.
|
#1 |
Senior Member
Himanshu Sharma
Join Date: Jul 2012
Posts: 101
Rep Power: 14 |
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 |
|
March 16, 2017, 02:36 |
|
#2 |
Senior Member
Yogesh Bapat
Join Date: Oct 2010
Posts: 102
Rep Power: 16 |
Hello ,
You can try using PatchPostProcessing cloud function object. I think it should provide required information. Regards, -Yogesh |
|
March 16, 2017, 16:03 |
|
#3 | |
Senior Member
Himanshu Sharma
Join Date: Jul 2012
Posts: 101
Rep Power: 14 |
Quote:
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. |
||
August 21, 2020, 11:27 |
|
#4 |
New Member
Lucie Recurt
Join Date: Jun 2020
Posts: 17
Rep Power: 6 |
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 |
|
|
|
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 |