Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About Particle Collision Algorithms in dsmc._update_velocities() Function #32

Closed
heishanxiaoyao opened this issue Jun 13, 2023 · 0 comments

Comments

@heishanxiaoyao
Copy link

The "for i in range(1, N, 2):" code in Line 164 (dsmc.py) confused me, why not use a double loop to judge the collision of any particle in the box? Like this:
for i in range(N):
for j in range(i + 1, N):
p1 = permutations[offset + i ]
p2 = permutations[offset + j]
...
Sincerely hope to get your answer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant