|
[Sponsors] |
How to create a list with particle properties from a specific cell? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 1, 2015, 11:11 |
How to create a list with particle properties from a specific cell?
|
#1 |
New Member
Oskar
Join Date: Nov 2015
Posts: 1
Rep Power: 0 |
Hey everyone
I'm trying to implement a stochastic particle-particle collision model in OpenFOAM-2.3. For that, I want to create lists with determined particle properties for every mesh cell. For example, The diameter distribution inside a cell. With that I'm able to determine the average particle diameter, maximum and minimum diameter inside a cell and so on. These statistics are necessary to create the fictitious particle used in this collision model. Someone can help? Best regards |
|
January 22, 2016, 06:55 |
|
#2 |
New Member
Tamil Nadu
Join Date: Aug 2014
Posts: 6
Rep Power: 12 |
I'm also facing similar problem in fluent. Did u find a way.
Thanks. |
|
January 22, 2016, 08:19 |
|
#3 | ||
Senior Member
Tomislav Maric
Join Date: Mar 2009
Location: Darmstadt, Germany
Posts: 284
Blog Entries: 5
Rep Power: 21 |
Quote:
Every particle/parcel is linked with each cell. Check out the particle class. Parcels used for kinematic tracking offfer the diameter (KinematicParticle.H): Code:
protected: // Protected data // Parcel properties //- Active flag - tracking inactive when active = false bool active_; //- Parcel type id label typeId_; //- Number of particles in Parcel scalar nParticle_; //- Diameter [m] scalar d_; And they wrap around the basic particle Code:
template<class ParcelType> class KinematicParcel : public ParcelType For you, this means that the particles/parcels themselves already contain the information you require for the collision model. Also, your sentence: Quote:
__________________
When asking a question, prepare a SSCCE. |
|||
April 6, 2016, 12:22 |
Number of particles at each cell
|
#4 |
Member
HM
Join Date: Apr 2015
Posts: 30
Rep Power: 11 |
Hi foamers,
I am using solidParticle class and I am trying to calculate the number of particles in each cell at certain times. I want to combine all of the particles in a cell. Any suggestions? Thanks, |
|
May 23, 2016, 09:53 |
|
#5 |
Member
Andreas Weber
Join Date: Jun 2014
Posts: 37
Rep Power: 12 |
There is already something similar in Foam::KinematicCloud<CloudType>::theta()
which will calculate the particle fraction in the cells via theta[cellI] += p.nParticle()*p.volume(); This can for example be used in sprayFoam.C with alpha = parcels.theta(); You could duplicate this function and change this to sumParticles[cellI] += p.nParticle(); you will get the desired Number of particles. best regards Andy |
|
June 21, 2016, 05:22 |
|
#6 | |
Member
Ping Chang
Join Date: Feb 2016
Location: Perth
Posts: 93
Rep Power: 10 |
Quote:
You are right. However, the diameter distribution information for each cell cannot be got by this way. Kind Regards, Ping |
||
May 22, 2017, 23:11 |
|
#7 | |
Member
Maria
Join Date: Jul 2013
Posts: 84
Rep Power: 13 |
Quote:
Do you mean that parcels.theta() represents the particle volume fraction? But when I use this in my case, in some areas, the value of parcels.theta() is more than 1. I dont know what does it mean, can you explain it again? And what should I do to get the volume fraction of the particles? |
||
May 23, 2017, 04:54 |
|
#8 |
Member
Andreas Weber
Join Date: Jun 2014
Posts: 37
Rep Power: 12 |
Yes, exactly... when your sum of particle volumes is more than the cells volume, you'll get a theta > 1. This can happen easily when you are not calculating paircollision of particles.
You can also try a dispersion model, which spreads the particles where the volume fraction is high. found here: Lahey, R.T., Lopez de Burnsdano, M., Jones, O.C., 1993. Phase distribution in complex geometry conduits. Nuclear Engineering and Design 141, 177–201. Best regards |
|
May 23, 2017, 05:07 |
|
#9 | |
Member
Maria
Join Date: Jul 2013
Posts: 84
Rep Power: 13 |
Quote:
|
||
Tags |
lists, particle collision, stochastic |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem compiling a custom Lagrangian library | brbbhatti | OpenFOAM Programming & Development | 2 | July 7, 2014 12:32 |
Journal file error | magicalmarshmallow | FLUENT | 3 | April 4, 2014 13:25 |
Where's the singularity/mesh flaw? | audrich | FLUENT | 3 | August 4, 2009 02:07 |
fluent add additional zones for the mesh file | SSL | FLUENT | 2 | January 26, 2008 12:55 |
[Commercial meshers] Trimmed cell and embedded refinement mesh conversion issues | michele | OpenFOAM Meshing & Mesh Conversion | 2 | July 15, 2005 05:15 |