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/)
-   -   Question about the regionSizeDistribution.C (https://www.cfd-online.com/Forums/openfoam-programming-development/129018-question-about-regionsizedistribution-c.html)

callahance January 16, 2014 12:26

Question about the regionSizeDistribution.C
 
Hi,

I have a question about the regionSizeDistribution.C file:

ln111: where is the constant::mathematical:: pi in
Code:

const scalar maxDropletVol = 1.0/6.0*pow(maxDiam_, 3)
I didnt check the whole .C and .H files so i dont know if there are still some hidden mistakes in the files.

Thanks in advance

(Moderator note: This post has been moved from this thread http://www.cfd-online.com/Forums/ope...tribution.html )

wyldckat January 26, 2014 13:14

Greetings callahance,

Are you referring to this block of code?
Code:

// Calculate the diameters
scalarField sortedDiameters(sortedVols.size());
forAll(sortedDiameters, i)
{
    sortedDiameters[i] = Foam::cbrt
    (
        sortedVols[i]
        *6/constant::mathematical::pi
    );
}

The "constant::mathematical::pi" is defined at "src/OpenFOAM/global/constants/mathematical/mathematicalConstants.H".

Best regards,
Bruno


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