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

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

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

Like Tree1Likes
  • 1 Post By tomislav_maric

Reply
 
LinkBack Thread Tools 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: 4
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: 281
Blog Entries: 5
Rep Power: 12
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.
__________________
Blog: sourceflux.de/blog
Trainings: sourceflux.de/services/training
"The OpenFOAM Technology Primer": sourceflux.de/book
Twitter: @sourceflux_de

When asking a question, prepare a SSCCE.
tomislav_maric is offline   Reply With Quote

Old   April 6, 2016, 11:22
Default Number of particles at each cell
  #4
Member
 
HM
Join Date: Apr 2015
Posts: 30
Rep Power: 3
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, 08:53
Default
  #5
New Member
 
Andreas Weber
Join Date: Jun 2014
Posts: 29
Rep Power: 4
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
a.weber is offline   Reply With Quote

Old   June 21, 2016, 04:22
Default
  #6
Member
 
Ping Chang
Join Date: Feb 2016
Location: Perth
Posts: 88
Rep Power: 2
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

Reply

Tags
lists, particle collision, stochastic

Thread Tools
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 On
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 11:32
Journal file error magicalmarshmallow FLUENT 3 April 4, 2014 12:25
Where's the singularity/mesh flaw? audrich FLUENT 3 August 4, 2009 01:07
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 12:55
Trimmed cell and embedded refinement mesh conversion issues michele OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 2 July 15, 2005 04:15


All times are GMT -4. The time now is 10:43.