CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM

about "parcelbasisType"

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

LinkBack Thread Tools Search this Thread Display Modes
Old   October 22, 2018, 12:04
Default about "parcelbasisType"
Senior Member
Join Date: Jan 2013
Posts: 364
Rep Power: 9
openfoammaofnepo is on a distinguished road
Hi All,

Recently I tried to use the OpenFOAM lagrangian solver and found that we need to specify the item for the cloud properties: parcelBasisType. We have three options for it: fixed, mass and number. I understand that it is related to how we can give the number of the particles for each parcel. I check the source code in InjectionModel.C and found as below:

 switch (parcelBasis_)
        case pbMass:
            scalar volumep = pi/6.0*pow3(diameter);
            scalar volumeTot = massTotal_/rho;

            nP = (volumeFraction*volumeTot + delayedVolume_)/(parcels*volumep);
        case pbNumber:
            nP = massTotal_/(rho*volumeTotal_);
        case pbFixed:
            nP = nParticleFixed_;
For "fixed", it is easy to understand. If we give nParticle=1, then for each parcel we have one particle. However, I do not why for mass and number we need to calculate nP like the above ways. Anybody knows about this? Thanks!
openfoammaofnepo is offline   Reply With Quote


Thread Tools Search this Thread
Search this Thread:

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

All times are GMT -4. The time now is 08:18.