Skip to content
Snippets Groups Projects
Commit 88a03de2 authored by Andrew Heather's avatar Andrew Heather
Browse files

ENH: Random numbers - updated dependent code from change to cachedRandom class

parent 02205ef1
Branches
Tags
No related merge requests found
......@@ -746,7 +746,7 @@ turbulentDFSEMInletFvPatchVectorField
nCellPerEddy_(5),
patchNormal_(vector::zero),
v0_(0),
rndGen_(0, -1),
rndGen_(),
sigmax_(size(), 0),
maxSigmaX_(0),
nEddy_(0),
......
......@@ -71,7 +71,6 @@ SourceFiles
#include "surfaceFieldsFwd.H"
#include "vectorList.H"
#include "globalIndex.H"
#include "cachedRandom.H"
#include "eulerianParticle.H"
#include "IOdictionary.H"
#include "injectedParticleCloud.H"
......
......@@ -61,7 +61,7 @@ Foam::functionObjects::particleDistribution::particleDistribution
cloudName_("unknown-cloudName"),
nameVsBinWidth_(),
tagFieldName_("none"),
rndGen_(1234, -1),
rndGen_(),
writerPtr_(nullptr)
{
read(dict);
......
......@@ -316,13 +316,7 @@ Foam::KinematicCloud<CloudType>::KinematicCloud
(
particleProperties_.subOrEmptyDict("subModels", solution_.active())
),
rndGen_
(
label(0),
solution_.steadyState() ?
particleProperties_.lookupOrDefault<label>("randomSampleSize", 100000)
: -1
),
rndGen_(),
cellOccupancyPtr_(),
cellLengthScale_(cbrt(mesh_.V())),
rho_(rho),
......@@ -515,7 +509,7 @@ Foam::KinematicCloud<CloudType>::KinematicCloud
solution_(mesh),
constProps_(),
subModelProperties_(dictionary::null),
rndGen_(0, 0),
rndGen_(),
cellOccupancyPtr_(nullptr),
cellLengthScale_(c.cellLengthScale_),
rho_(c.rho_),
......
......@@ -99,7 +99,7 @@ contactAngleForce::contactAngleForce
:
force(typeName, owner, dict),
Ccf_(readScalar(coeffDict_.lookup("Ccf"))),
rndGen_(label(0), -1),
rndGen_(),
distribution_
(
distributionModels::distributionModel::New
......
......@@ -57,7 +57,7 @@ drippingInjection::drippingInjection
injectionModel(type(), owner, dict),
deltaStable_(readScalar(coeffDict_.lookup("deltaStable"))),
particlesPerParcel_(readScalar(coeffDict_.lookup("particlesPerParcel"))),
rndGen_(label(0), -1),
rndGen_(),
parcelDistribution_
(
distributionModels::distributionModel::New
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment