mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Random numbers - updated dependent code from change cachedRandom->Random class
This commit is contained in:
@ -40,9 +40,9 @@ complexVector UOprocess::WeinerProcess()
|
||||
{
|
||||
return RootDeltaT*complexVector
|
||||
(
|
||||
complex(GaussGen.GaussNormal(), GaussGen.GaussNormal()),
|
||||
complex(GaussGen.GaussNormal(), GaussGen.GaussNormal()),
|
||||
complex(GaussGen.GaussNormal(), GaussGen.GaussNormal())
|
||||
complex(GaussGen.GaussNormal<scalar>(), GaussGen.GaussNormal<scalar>()),
|
||||
complex(GaussGen.GaussNormal<scalar>(), GaussGen.GaussNormal<scalar>()),
|
||||
complex(GaussGen.GaussNormal<scalar>(), GaussGen.GaussNormal<scalar>())
|
||||
);
|
||||
}
|
||||
|
||||
@ -57,7 +57,7 @@ UOprocess::UOprocess
|
||||
const dictionary& UOdict
|
||||
)
|
||||
:
|
||||
GaussGen(label(0)),
|
||||
GaussGen(),
|
||||
Mesh(kmesh),
|
||||
DeltaT(deltaT),
|
||||
RootDeltaT(sqrt(DeltaT)),
|
||||
|
||||
@ -51,8 +51,8 @@ Foam::vectorField Foam::turbGen::U()
|
||||
|
||||
forAll(K, i)
|
||||
{
|
||||
s[i] = RanGen.vector01();
|
||||
rndPhases[i] = RanGen.scalar01();
|
||||
s[i] = RanGen.sample01<vector>();
|
||||
rndPhases[i] = RanGen.sample01<scalar>();
|
||||
}
|
||||
|
||||
s = K ^ s;
|
||||
|
||||
Reference in New Issue
Block a user