Added an if (cR < SMALL) guard to VHS sigmaTcR calculation. Giving each...
Added an if (cR < SMALL) guard to VHS sigmaTcR calculation. Giving each processor a different random number generator seed, otherwise they follow the same sequence and are not independent. Tnis is a practical problem because they were producing molecules with the same velocity in neighbouring cells on different procs which then collided and caused a floating point error because they had equal velocities.
Showing
- src/lagrangian/dsmc/clouds/Templates/DsmcCloud/DsmcCloud.C 2 additions, 2 deletionssrc/lagrangian/dsmc/clouds/Templates/DsmcCloud/DsmcCloud.C
- src/lagrangian/dsmc/submodels/BinaryCollisionModel/LarsenBorgnakkeVariableHardSphere/LarsenBorgnakkeVariableHardSphere.C 5 additions, 0 deletions...kkeVariableHardSphere/LarsenBorgnakkeVariableHardSphere.C
- src/lagrangian/dsmc/submodels/BinaryCollisionModel/VariableHardSphere/VariableHardSphere.C 5 additions, 0 deletions...aryCollisionModel/VariableHardSphere/VariableHardSphere.C
Please register or sign in to comment