CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   OF1.6 : RosinRammler.C (https://www.cfd-online.com/Forums/openfoam-programming-development/88530-of1-6-rosinrammler-c.html)

mfmohdyasin May 19, 2011 09:51

OF1.6 : RosinRammler.C
 
Dear all,
I'm trying to understand why the constant pre multiplier for Rosin Rammler distribution function is calculated as below:
...
...
ls_(d_),
..
..
scalar sMax = 0;
label n = d_.size();
for (label i=0; i<n; i++)
{
scalar s = exp(-1.0);
for (label j=0; j<n; j++)
{
if (i!=j)
{
scalar xx = pow(d_[j]/d_[i], n_[j]);
scalar y = xx*exp(-xx);
s += y;
}
}

sMax = max(sMax, s);
}

for (label i=0; i<n; i++)
{
ls_[i] /= sMax;
}

In the case of a unitInjector (n=1), ls_[0]=d/exp(-1). What does it mean by mean diameter/ exp(-1)?

Fairus


All times are GMT -4. The time now is 05:49.