You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I met two problems when I used the pysph framework to write the simulation of planetary collision: (1) How to delete the particles that have little effect on the system during operation; (2) How to calculate the gravity, my current practice is to traverse all the particles and then calculate, such equation takes a long time to calculate, is there any other method to calculate the gravity
The text was updated successfully, but these errors were encountered:
I have not simulated planetary collisions with pysph but,
(1) You could use the remove_particles method to remove particles from a particle array. There is a remove_tagged_particles method as well. You can search the pysph codebase for usage of this method, and you will find plenty of occurrences that could serve as an example.
(2) I assume you are describing a non-pysph implementation when you mention,
my current practice is to traverse all the particles and then calculate such equation takes a long time to calculate
In fact, pysph's nearest neighbour search capabilities lets you traverse only the particles that are near enough to a given particle to be able to influence it significantly.
I think this is better suited in Discussions as it is not an Issue.
Hello, I met two problems when I used the pysph framework to write the simulation of planetary collision: (1) How to delete the particles that have little effect on the system during operation; (2) How to calculate the gravity, my current practice is to traverse all the particles and then calculate, such equation takes a long time to calculate, is there any other method to calculate the gravity
The text was updated successfully, but these errors were encountered: