Asymmetrically interacting particles - Different behaviours

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ก.ย. 2022
  • New C++ version of the asymmetrically interacting particle simulation (aka particle game of life).
    How it works: Each particle gets assigned to a group (let's call these A, B, C, etc...). Particles in group A can be attracted to or repelled by particles in group B. At the same time, particles in group B can be attracted to or repelled by the particle in group A. However, this interaction does not need to be symmetric, i.e. we can have A repels B but B attracts A. The asymmetry in the interactions between each of the groups leads to interesting dynamics. In addition to these interactions, all particles repel each other when getting too close. To ensure the formation of structures, the particles are also subject to friction. Depending on the friction strength, we can either have stable large structures or fast-moving less cohesive groups of particles.
    Source: github.com/ebokai/particle_ga...
    Inspired by this video by CodeParade:
    • Particle Life - A Game...
    Also have a look here for more examples:
    softologyblog.wordpress.com/2...
    www.ventrella.com/Clusters/
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 7

  • @jondo7680
    @jondo7680 ปีที่แล้ว +1

    The description under the video was what I was missing under the other video. It's funny because I once had an idea for this kind of stuff of course people already did it.

  • @TheBrocktonBlockbust
    @TheBrocktonBlockbust 9 หลายเดือนก่อน +1

    I tried implementing a hash partitioning but without luck. Will try to learn from your code. Thank you.

  • @Germanunkol
    @Germanunkol ปีที่แล้ว +3

    Really cool work!
    Why the C++ version, is it faster than the python version? Since you used numpy (I think?) for the other version, I'd assumed performance would already be pretty high...
    I have a question regarding energy conservation - since there is friction, you should constantly be loosing energy, right? How does the simulation keep moving? Do you constantly add energy again?
    If you don't do it yet, I think it would be a pretty cool (and probably also relatively simple) to add an energy source (the sun) which adds (kinetic?) energy in just a region of the simulation (maybe the top of the image) while energy is lost (given off to the ground) elsewhere.

    • @amyshy-est-9827
      @amyshy-est-9827 ปีที่แล้ว +4

      c++ is generally faster than python even with dynamic libraries such as numpy..

  • @mandeepgurung4198
    @mandeepgurung4198 ปีที่แล้ว +2

    I love it!
    Van u tell me on what rules do they behave

  • @colinlapierre-fecteau316
    @colinlapierre-fecteau316 ปีที่แล้ว +2

    I dont get it but I love it.