Skip to content

Commit 23c148e

Browse files
authored
Fix DSMC typo for non-product producing processes (#5873)
The DSMC kernel performs several types of collisions: - non-product producing collisions: elastic scattering, charge exchange, etc. - product producing collisions: ionization The first types of collisions (non-product producing collisions) still creates new macroparticles (because the high-weight macroparticle in a collision can be split into a lower weight "scattered" particles, and another "unscattered" particle). However, these non-product producing collisions only involve the first 2 "products".
1 parent 861aabd commit 23c148e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/Particles/Collision/BinaryCollision/DSMC/SplitAndScatterFunc.H

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public:
8888
);
8989

9090
amrex::Vector<int> num_added_vec(m_num_product_species, 0);
91-
for (int i = 0; i < m_num_product_species; i++)
91+
for (int i = 0; i < 2; i++)
9292
{
9393
// Record the number of non product producing events lead to new
9494
// particles for species1 and 2. Only 1 particle is created for

0 commit comments

Comments
 (0)