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

about "parcelbasisType"

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

Reply
 
LinkBack Thread Tools Display Modes
Old   October 22, 2018, 13:04
Default about "parcelbasisType"
  #1
Senior Member
 
Join Date: Jan 2013
Posts: 364
Rep Power: 8
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:

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

            nP = (volumeFraction*volumeTot + delayedVolume_)/(parcels*volumep);
            break;
        }
        case pbNumber:
        {
            nP = massTotal_/(rho*volumeTotal_);
            break;
        }
        case pbFixed:
        {
            nP = nParticleFixed_;
            break;
        }
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

Reply

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



All times are GMT -4. The time now is 23:21.