|
[Sponsors] |
January 10, 2018, 15:12 |
particle tracking using MPPICFoam
|
#1 |
Senior Member
|
Hello everyone,
Currently I am trying to use MPPICFoam to track particles and delete them when they enter certain area. However, I have difficulty finding the codes about where the positions of these particles are stored nor the function of deleting the particles. I tried to read MPPICFoam, KinematicCloud, MPPICCloud flies, but I got nothing. So I hope someone can help me out here. Thanks a lot. |
|
November 18, 2019, 12:04 |
|
#2 |
Senior Member
Farzad Faraji
Join Date: Nov 2019
Posts: 206
Rep Power: 8 |
Hey,
did you find an answer for your question? |
|
November 18, 2019, 17:20 |
|
#3 |
Member
Utkan Caliskan
Join Date: Aug 2014
Posts: 42
Rep Power: 12 |
You will find that part of the code in $FOAM_SRC/lagrangian/basic/Cloud/Cloud.C
On the other hand particleCollector function object would solve your problem. You have to add it in your kinematicCloudProperties file. |
|
November 18, 2019, 18:02 |
|
#4 |
Senior Member
Farzad Faraji
Join Date: Nov 2019
Posts: 206
Rep Power: 8 |
Dear dscian
Thanks for you answer, but what I am looking for is to find the Y position of particles(bubbles) and put it in below code; const KinematicParcel<ParcelType>& p; //Increase in diameter due to rising of bubble using ideal gas relation P1*V1=P2*V2 ===> V2 = (P1*V1)/P2 scalar V0 =Vinit*(Patm+(Ymax - 0.)*rhoo*gg) / (Patm+(Ymax - p.position()[2])*rhoo*gg); When I do this, I have got an error which says that the initialization has not done correctly, what should I do? |
|
November 19, 2019, 22:12 |
|
#5 |
Member
Utkan Caliskan
Join Date: Aug 2014
Posts: 42
Rep Power: 12 |
You can use p.position().y() to get that scalar value however the initialization of p is incorrect. You have to link it to your Cloud and use a for loop with an iterator. Something like this (i.e in Cloud.C);
Code:
forAllIter(typename Cloud<ParticleType>, *this, pIter) { ParticleType& p = pIter(); ... } |
|
Tags |
lagrangian particles, mppicfoam, particle tracking |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
dispersion model with lagragian particle tracking model for incompressible flows | eelcovv | OpenFOAM Running, Solving & CFD | 54 | April 10, 2018 10:36 |
Particle tracking error | alchem | OpenFOAM Bugs | 5 | May 6, 2017 17:30 |
Lagrangian Particle Tracking in Eulerian-Eulerian Multiphase Flow | DarrenC | CFX | 5 | April 7, 2016 15:50 |
Ubuntu 12.10 + openfoam2.2.0 ==> paraview error message | peteryuan | OpenFOAM Installation | 6 | August 18, 2013 19:00 |
injection problem | Mark New | FLUENT | 0 | August 4, 2013 02:30 |