Replies: 1 comment 9 replies
-
|
Hey @JoWsky, The reason for not including multi-material support was to keep the code simple and efficient. With different materials, one would need to (worst case) make all (or at least some) material "constants" into arrays of length Np. If you have a specific case you could, e.g., say particle indices 1-100 have these sets of constants and particle indices 100-200 have another set of constants. If you can find a good and general way of doing this that does not effect the computational efficiency significantly, I'd be very interested in having this as a PR to master. Regarding the mass, do you really need to make this a material property? Let's assume you have two materials "colliding", one material with larger mp than the other. Once the masses are interpolated to the grid, you will get an area between your two materials where these masses will be "averaged out". Depending on your problem, this may not be desirable... |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I understand Matter only support single-materials for now. Since I need it, I would like to implement multi-material handling.
My first need would be to store de particle-mass, in... the particles. Is there a specific reason why it was implemented in Simulation() and not Particles() ? In other words, might there be major issues changing it ?
Also, if I implement these modifications, would you be interested in pulling them to the source code ?
Beta Was this translation helpful? Give feedback.
All reactions