diff --git a/applications/test/Distribution/Make/files b/applications/test/Distribution/Make/files index 3b3486c12..627b32aea 100644 --- a/applications/test/Distribution/Make/files +++ b/applications/test/Distribution/Make/files @@ -1,3 +1,3 @@ Test-Distribution.C -EXE = $(FOAM_USER_APPBIN)/Test-DistributionTest +EXE = $(FOAM_USER_APPBIN)/Test-Distribution diff --git a/applications/test/Distribution/Test-Distribution.C b/applications/test/Distribution/Test-Distribution.C index f893e1e4b..60f0c1660 100644 --- a/applications/test/Distribution/Test-Distribution.C +++ b/applications/test/Distribution/Test-Distribution.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -66,12 +66,12 @@ int main(int argc, char *argv[]) Info<< nl << "Distribution" << nl << "Sampling " << randomDistributionTestSize - << " times from GaussNormal distribution." + << " times from a standard normal distribution." << endl; for (label i = 0; i < randomDistributionTestSize; i++) { - dS.add(2.5*R.GaussNormal() + 8.5); + dS.add(2.5*R.scalarNormal() + 8.5); } Info<< "Mean " << dS.mean() << nl @@ -85,12 +85,12 @@ int main(int argc, char *argv[]) Info<< nl << "Distribution" << nl << "Sampling " << randomDistributionTestSize - << " times from GaussNormal distribution." + << " times from a standard normal distribution." << endl; for (label i = 0; i < randomDistributionTestSize; i++) { - dS2.add(1.5*R.GaussNormal() -6.0); + dS2.add(1.5*R.scalarNormal() -6.0); } Info<< "Mean " << dS2.mean() << nl @@ -150,23 +150,23 @@ int main(int argc, char *argv[]) Info<< nl << "Distribution" << nl << "Sampling " << randomDistributionTestSize - << " times from uniform and GaussNormal distribution." + << " times from uniform and a standard normal distribution." << endl; for (label i = 0; i < randomDistributionTestSize; i++) { - dV.add(R.vector01()); + dV.add(R.sample01()); - // Adding separate GaussNormal components with component + // Adding separate standard normal components with component // weights dV.add ( vector ( - R.GaussNormal()*3.0 + 1.5, - R.GaussNormal()*0.25 + 4.0, - R.GaussNormal()*3.0 - 1.5 + R.scalarNormal()*3.0 + 1.5, + R.scalarNormal()*0.25 + 4.0, + R.scalarNormal()*3.0 - 1.5 ), vector(1.0, 2.0, 5.0) ); @@ -197,9 +197,9 @@ int main(int argc, char *argv[]) // ( // labelVector // ( - // R.integer(-1000, 1000), - // R.integer(-5000, 5000), - // R.integer(-2000, 7000) + // R.sampleAB