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

particle tracking using MPPICFoam

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 10, 2018, 14:12
Exclamation particle tracking using MPPICFoam
  #1
Senior Member
 
Join Date: Oct 2017
Location: United States
Posts: 228
Blog Entries: 1
Rep Power: 7
TurbJet is on a distinguished road
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.
TurbJet is offline   Reply With Quote

Old   November 18, 2019, 11:04
Default
  #2
Senior Member
 
Farzad Faraji
Join Date: Nov 2019
Posts: 131
Rep Power: 4
farzadmech is on a distinguished road
Hey,
did you find an answer for your question?
farzadmech is offline   Reply With Quote

Old   November 18, 2019, 16:20
Default
  #3
Member
 
Utkan Caliskan
Join Date: Aug 2014
Posts: 32
Rep Power: 10
dscian is on a distinguished road
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.
dscian is offline   Reply With Quote

Old   November 18, 2019, 17:02
Default
  #4
Senior Member
 
Farzad Faraji
Join Date: Nov 2019
Posts: 131
Rep Power: 4
farzadmech is on a distinguished road
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?
farzadmech is offline   Reply With Quote

Old   November 19, 2019, 21:12
Default
  #5
Member
 
Utkan Caliskan
Join Date: Aug 2014
Posts: 32
Rep Power: 10
dscian is on a distinguished road
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();
...
}
If you need it in Cloud templates then check those codes for reference.
dscian is offline   Reply With Quote

Reply

Tags
lagrangian particles, mppicfoam, particle tracking

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


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 09:36
Particle tracking error alchem OpenFOAM Bugs 5 May 6, 2017 16:30
Lagrangian Particle Tracking in Eulerian-Eulerian Multiphase Flow DarrenC CFX 5 April 7, 2016 14:50
Ubuntu 12.10 + openfoam2.2.0 ==> paraview error message peteryuan OpenFOAM Installation 6 August 18, 2013 18:00
injection problem Mark New FLUENT 0 August 4, 2013 01:30


All times are GMT -4. The time now is 03:20.