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

How can I plot lagrangian particles leaving through a patch?

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes
  • 1 Post By phandy
  • 3 Post By kou1shik

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 28, 2015, 10:24
Question 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
phandy is on a distinguished road
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?
phandy is offline   Reply With Quote

Old   October 29, 2015, 13:20
Default
  #2
New Member
 
Paul Handy
Join Date: Sep 2014
Location: Idaho, USA
Posts: 21
Rep Power: 12
phandy is on a distinguished road
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.
ShashiDeSilva likes this.
phandy is offline   Reply With Quote

Old   March 30, 2016, 08:29
Default
  #3
New Member
 
ksengupta
Join Date: Dec 2009
Posts: 3
Rep Power: 17
kou1shik is on a distinguished road
You can use cloudFunctions in constant/kinematicCloudProperties. Use like this.

cloudFunctions
{
patchPostProcessing1
{
type patchPostProcessing;
maxStoredParcels 1e07;
patches ( outlet );
}

}
Tobi, lxufeishi and reverseila like this.
kou1shik is offline   Reply With Quote

Old   March 19, 2017, 16:49
Default
  #4
New Member
 
Adam Katz
Join Date: Feb 2017
Posts: 23
Rep Power: 9
Adamkat is on a distinguished road
I added the cloudFunctions but now, how can I extract the information of particle hits?
Adamkat is offline   Reply With Quote

Old   March 27, 2017, 04:47
Default
  #5
New Member
 
Adam Katz
Join Date: Feb 2017
Posts: 23
Rep Power: 9
Adamkat is on a distinguished road
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)
Adamkat is offline   Reply With Quote

Old   August 24, 2018, 08:47
Default extract data out of patchPostProcessing
  #6
Member
 
Arash Mahboubidoust
Join Date: Jun 2013
Location: Iran
Posts: 58
Rep Power: 13
arashfluid is on a distinguished road
Send a message via Yahoo to arashfluid
Quote:
Originally Posted by Adamkat View Post
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)
Dear Adamkat,
I also have a similar problem. I want to extract the data out of the patchPostProcessing files. Can you share your script?
Thanks
arashfluid is offline   Reply With Quote

Old   August 26, 2018, 08:19
Default Lost work
  #7
New Member
 
Adam Katz
Join Date: Feb 2017
Posts: 23
Rep Power: 9
Adamkat is on a distinguished road
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
Adamkat is offline   Reply With Quote

Reply

Tags
lagrangian, particle, size distribution, size functions


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
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


All times are GMT -4. The time now is 04:50.