Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • openfoam openfoam
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 381
    • Issues 381
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 5
    • Merge requests 5
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Development
  • openfoamopenfoam
  • Issues
  • #840
Closed
Open
Created May 24, 2018 by Admin@OpenFOAM-adminMaintainer

BUG: ConeInjection/ConeNozzleInjection injectionPosition in parallel

The use of rndGen.sample01 instead of rndGen.globalSample01 for calculating the tanVec1_, tanVec2_ and beta angle leads to every processor having a different reference frame and thus the injection position will be different on every processor.

In the .C files, just change these snippets to using globalSample

===================

while(magTangent < SMALL)
{
    vector v = rndGen.globalSample01<vector>();

    tangent = v - (v & direction_)*direction_;
    magTangent = mag(tangent);
}

===================

and

scalar beta = mathematical::twoPi*rndGen.globalSample01<scalar>();

===================

Edited May 24, 2018 by Admin
Assignee
Assign to
Time tracking