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

How to create a list with particle properties from a specific cell?

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By tomislav_maric
  • 1 Post By a.weber

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 1, 2015, 11:11
Default 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
osgr is on a distinguished road
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
osgr is offline   Reply With Quote

Old   January 22, 2016, 06:55
Default
  #2
New Member
 
Tamil Nadu
Join Date: Aug 2014
Posts: 6
Rep Power: 12
prasadsai31 is on a distinguished road
I'm also facing similar problem in fluent. Did u find a way.
Thanks.
prasadsai31 is offline   Reply With Quote

Old   January 22, 2016, 08:19
Default
  #3
Senior Member
 
Tomislav Maric
Join Date: Mar 2009
Location: Darmstadt, Germany
Posts: 284
Blog Entries: 5
Rep Power: 21
tomislav_maric is on a distinguished road
Quote:
Originally Posted by osgr View Post
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.
You do not have to create lists with determined particle properties for every mesh cell.

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
when the cloud is instatiated, so basically the parcel is a particle.

For you, this means that the particles/parcels themselves already contain the information you require for the collision model. Also, your sentence:

Quote:
I'm trying to implement a stochastic particle-particle collision model
already gives you a very strong hint that you should take a look at existing collision models, and not start thinking on the particle/cell, for-loop, list level. Good luck!
prasadsai31 likes this.
__________________
When asking a question, prepare a SSCCE.
tomislav_maric is offline   Reply With Quote

Old   April 6, 2016, 12:22
Default Number of particles at each cell
  #4
Member
 
HM
Join Date: Apr 2015
Posts: 30
Rep Power: 11
hojjat.m is on a distinguished road
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,
hojjat.m is offline   Reply With Quote

Old   May 23, 2016, 09:53
Default
  #5
Member
 
Andreas Weber
Join Date: Jun 2014
Posts: 37
Rep Power: 12
a.weber is on a distinguished road
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
marialhm likes this.
a.weber is offline   Reply With Quote

Old   June 21, 2016, 05:22
Default
  #6
Member
 
Ping Chang
Join Date: Feb 2016
Location: Perth
Posts: 93
Rep Power: 10
chpjz0391 is on a distinguished road
Quote:
Originally Posted by a.weber View Post
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
Hi Andy,

You are right.
However, the diameter distribution information for each cell cannot be got by this way.

Kind Regards,

Ping
chpjz0391 is offline   Reply With Quote

Old   May 22, 2017, 23:11
Default
  #7
Member
 
Maria
Join Date: Jul 2013
Posts: 84
Rep Power: 13
marialhm is on a distinguished road
Quote:
Originally Posted by a.weber View Post
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
Hi Andy,

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?
marialhm is offline   Reply With Quote

Old   May 23, 2017, 04:54
Default
  #8
Member
 
Andreas Weber
Join Date: Jun 2014
Posts: 37
Rep Power: 12
a.weber is on a distinguished road
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
a.weber is offline   Reply With Quote

Old   May 23, 2017, 05:07
Default
  #9
Member
 
Maria
Join Date: Jul 2013
Posts: 84
Rep Power: 13
marialhm is on a distinguished road
Quote:
Originally Posted by a.weber View Post
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
Ok, I will try. Many thanks!
marialhm is offline   Reply With Quote

Reply

Tags
lists, particle collision, stochastic


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


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