Skip to content
Snippets Groups Projects
Commit 5abff4c6 authored by Andrew Heather's avatar Andrew Heather Committed by Mark OLESEN
Browse files

BUG: Corrected ConeNozzleInjection injected posisions in parallel operation. See #840

parent e00e7f82
Branches
Tags
No related merge requests found
......@@ -186,7 +186,7 @@ Foam::ConeNozzleInjection<CloudType>::ConeNozzleInjection
while(magTangent < SMALL)
{
vector v = rndGen.sample01<vector>();
vector v = rndGen.globalSample01<vector>();
tangent = v - (v & direction_)*direction_;
magTangent = mag(tangent);
......@@ -323,7 +323,7 @@ void Foam::ConeNozzleInjection<CloudType>::setPositionAndCell
{
Random& rndGen = this->owner().rndGen();
scalar beta = mathematical::twoPi*rndGen.sample01<scalar>();
scalar beta = mathematical::twoPi*rndGen.globalSample01<scalar>();
normal_ = tanVec1_*cos(beta) + tanVec2_*sin(beta);
switch (injectionMethod_)
......
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