randomGenerator: Renamed Random
This commit is contained in:
@ -24,7 +24,7 @@
|
||||
|
||||
mkDir(pdfPath);
|
||||
|
||||
Random rndGen(label(0));
|
||||
randomGenerator rndGen(label(0));
|
||||
|
||||
autoPtr<distribution> p
|
||||
(
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Random rndGen(653213);
|
||||
randomGenerator rndGen(653213);
|
||||
|
||||
// Determine mesh bounding boxes:
|
||||
List<treeBoundBox> meshBb
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2014-2023 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2014-2024 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -168,7 +168,7 @@ void createBoundaryEdgeTrees
|
||||
+ surf.nInternalEdges()
|
||||
);
|
||||
|
||||
Random rndGen(17301893);
|
||||
randomGenerator rndGen(17301893);
|
||||
|
||||
// Slightly extended bb. Slightly off-centred just so on symmetric
|
||||
// geometry there are less face/edge aligned items.
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2024 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -36,7 +36,7 @@ Description
|
||||
#include "triSurface.H"
|
||||
#include "OFstream.H"
|
||||
#include "meshTools.H"
|
||||
#include "Random.H"
|
||||
#include "randomGenerator.H"
|
||||
#include "transform.H"
|
||||
#include "IOmanip.H"
|
||||
#include "Pair.H"
|
||||
@ -114,7 +114,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
label pertI = 0;
|
||||
|
||||
Random rand(57373);
|
||||
randomGenerator rndGen(57373);
|
||||
|
||||
while ((magSqr(eVal) < vSmall) && pertI < 10)
|
||||
{
|
||||
@ -122,9 +122,9 @@ int main(int argc, char *argv[])
|
||||
<< "No eigenValues found, shape may have symmetry, "
|
||||
<< "perturbing inertia tensor diagonal" << endl;
|
||||
|
||||
J.xx() *= 1.0 + small*rand.scalar01();
|
||||
J.yy() *= 1.0 + small*rand.scalar01();
|
||||
J.zz() *= 1.0 + small*rand.scalar01();
|
||||
J.xx() *= 1.0 + small*rndGen.scalar01();
|
||||
J.yy() *= 1.0 + small*rndGen.scalar01();
|
||||
J.zz() *= 1.0 + small*rndGen.scalar01();
|
||||
|
||||
eVal = eigenValues(J);
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2024 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -40,7 +40,7 @@ Description
|
||||
#include "boundBox.H"
|
||||
#include "indexedOctree.H"
|
||||
#include "treeDataTriSurface.H"
|
||||
#include "Random.H"
|
||||
#include "randomGenerator.H"
|
||||
#include "volumeType.H"
|
||||
#include "plane.H"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user