Closed Rabmelon closed 2 years ago
Thanks for reporting this. I will take a look and come back to you.
Hi, I have check the problems you mentioned.
particle_radius
to particle_diameter
. The overlapping is actually not a mistake
since the particles here are sampling points of kernel functions. continue
but not 'break' but I cannot reproduce the endless loop issue you mentioned after I changed it to continue
, Would you mind providing the code that can reproduce the "endless loop"?
Thanks.Thank you for the reply.
gridsize = 2 * support radius
and my misunderstanding of the para padding
before. The endless loop will occur when the initialized particles invade the padding region. Anyway, particles will not come into the padding region after correctly initialized, so the problem won't occur.
code_for_problem_3.zipAgain thank you for your time and help!
I am learning this program to finish my taichiCourse01 final project. And I found three confused lines in file 'particle_system.py':
with an output: [0, 1] ; [-1, 0], kill! [-1, 1], kill! [-1, 2], kill! [0, 0], [0, 1], [0, 2], [1, 0], [1, 1], [1, 2], [2, 2] ; [1, 1], [1, 2], [1, 3], kill! [2, 1], [2, 2], [2, 3], kill! [3, 1], kill! [3, 2], kill! [3, 3], kill!