Commit 45df2f5f authored by Andrew Heather's avatar Andrew Heather
Browse files

ENH: Updated surface film models to use cachedRandom

parent b8a89af0
......@@ -28,7 +28,6 @@ License
#include "fvMesh.H"
#include "Time.H"
#include "mathematicalConstants.H"
#include "Random.H"
#include "volFields.H"
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
......@@ -53,7 +52,7 @@ Foam::surfaceFilmModels::cloudInjection::cloudInjection
:
injectionModel(type(), owner, dict),
particlesPerParcel_(readScalar(coeffs_.lookup("particlesPerParcel"))),
rndGen_(label(0)),
rndGen_(label(0), -1),
parcelPDF_(pdfs::pdf::New(coeffs_.subDict("parcelPDF"), rndGen_)),
diameter_(owner.film().nCells(), 0.0)
{
......
......@@ -37,6 +37,7 @@ SourceFiles
#include "injectionModel.H"
#include "pdf.H"
#include "cachedRandom.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
......@@ -72,7 +73,7 @@ protected:
scalar particlesPerParcel_;
//- Random number generator
Random rndGen_;
cachedRandom rndGen_;
//- Parcel size PDF model
const autoPtr<pdfs::pdf> parcelPDF_;
......
Supports Markdown
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