CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   how to change the sizes of particles in the DPMFoam? (https://www.cfd-online.com/Forums/openfoam/220969-how-change-sizes-particles-dpmfoam.html)

upc_ngh September 29, 2019 00:21

how to change the sizes of particles in the DPMFoam?
 
Now,I'm trying to change the sizes of particles in the DPMFOAM,but t can't find the way to find the function of sizes.In the case Goldschmidt,I find something but also don't know where it is and how to1change it,so I need help from you,please!




// Construct parcel diameters
forAll(diameters_, i)
{
diameters_[i] = sizeDistribution_->sample();
}

// Determine volume of particles to inject
this->volumeTotal_ = sum(pow3(diameters_))*pi/6.0;
}




//- Sample the distributionModel
virtual scalar sample() const = 0;


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