|December 1, 2015, 11:11||
How to create a list with particle properties from a specific cell?
Join Date: Nov 2015
Posts: 1Rep Power: 0
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?
|January 22, 2016, 08:19||
Join Date: Mar 2009
Location: Darmstadt, Germany
Blog Entries: 5Rep Power: 12
Every particle/parcel is linked with each cell. Check out the particle class.
Parcels used for kinematic tracking offfer the diameter (KinematicParticle.H):
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
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:
|April 6, 2016, 11:22||
Number of particles at each cell
Join Date: Apr 2015
Posts: 30Rep Power: 3
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?
|May 23, 2016, 08:53||
Join Date: Jun 2014
Posts: 29Rep Power: 4
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.
|June 21, 2016, 04:22||
Join Date: Feb 2016
Posts: 88Rep Power: 2
You are right.
However, the diameter distribution information for each cell cannot be got by this way.
|lists, particle collision, stochastic|
|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|