|
[Sponsors] |
How can I plot lagrangian particles leaving through a patch? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 28, 2015, 10:24 |
How can I plot lagrangian particles leaving through a patch?
|
#1 |
New Member
Paul Handy
Join Date: Sep 2014
Location: Idaho, USA
Posts: 21
Rep Power: 12 |
I'm trying to run a validation case similar to the MPPICFoam cyclone example, except for I have a patch at the bottom which the lagrangian particles can exit through. I would like to plot the size and number of particles exiting the bottom and top outlets respectively in order to find the fractional efficiency for each particle size.
My initial thoughts are to include a function block in the controlDict. I'm not sure what should go in there, and if I need to write my own library to do the counting, or if there is one already available in OpenFOAM. Alternatively, is there a way to get paraview to plot the same data I seek? Could anyone help me figure out how to accomplish this? |
|
October 29, 2015, 13:20 |
|
#2 |
New Member
Paul Handy
Join Date: Sep 2014
Location: Idaho, USA
Posts: 21
Rep Power: 12 |
A bit of a reply to my own top post. I'm new enough to openfoam to not have known that each generated timestep has a uniform/lagrangian/kinematicCloud/kinematicCloudOutputProperties file. In patchInteractionModel.localInteraction, there exist nEscape ([parcel?] count) and massEscape, which are arrays that I presume map to my kinematicCloudProperties localInteractionCoeffs dictionary. This gives the total mass escaped and the count, from which I can make guesses to the particle size, though I was hoping for information for each parcel individually. Well, I suppose something is much better than nothing.
|
|
March 30, 2016, 08:29 |
|
#3 |
New Member
ksengupta
Join Date: Dec 2009
Posts: 3
Rep Power: 17 |
You can use cloudFunctions in constant/kinematicCloudProperties. Use like this.
cloudFunctions { patchPostProcessing1 { type patchPostProcessing; maxStoredParcels 1e07; patches ( outlet ); } } |
|
March 19, 2017, 16:49 |
|
#4 |
New Member
Adam Katz
Join Date: Feb 2017
Posts: 23
Rep Power: 9 |
I added the cloudFunctions but now, how can I extract the information of particle hits?
|
|
March 27, 2017, 04:47 |
|
#5 |
New Member
Adam Katz
Join Date: Feb 2017
Posts: 23
Rep Power: 9 |
Solved.
I wrote a script that extracts the data out of the patchPostProcessing files. In hindsight, I could have used splashPanel (see: $FOAM_TUTORIALS/lagrangian/reactingParcelFilmFoam/splashPanel) |
|
August 24, 2018, 08:47 |
extract data out of patchPostProcessing
|
#6 | |
Member
|
Quote:
I also have a similar problem. I want to extract the data out of the patchPostProcessing files. Can you share your script? Thanks |
||
August 26, 2018, 08:19 |
Lost work
|
#7 |
New Member
Adam Katz
Join Date: Feb 2017
Posts: 23
Rep Power: 9 |
Dear Arashfluid,
I'm sorry but I have forgotten about that work a long time ago. I guess you'll have to do it on your own. Sorry, Adam |
|
Tags |
lagrangian, particle, size distribution, size functions |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
implementing new Lagrangian patch interaction | Chrisi1984 | OpenFOAM Programming & Development | 0 | May 31, 2014 05:49 |
[OpenFOAM] plot particles and animation in paraview | phsieh2005 | ParaView | 1 | July 26, 2013 06:35 |
Problem with rhoSimpleFoam | matteo_gautero | OpenFOAM Running, Solving & CFD | 0 | February 28, 2008 07:51 |
Plot particles w. correct size? | Michael B | CFX | 1 | August 8, 2006 03:36 |
Multicomponent fluid | Andrea | CFX | 2 | October 11, 2004 06:12 |