Simulation Description

  • etherealmachine
    15th Apr 2023 Member 0 Permalink

    Hello, I'm trying to implement a game with similar behavior to TPT, especially regarding the fluid dynamics and pressure behavior. Is there a high level overview of the CPU-based implementation of TPT? I know that at a fundamental level each frame loops over an array of the particles, updating some force vectors and variables, but I'm very curious about things like how gravity, friction, and viscocity are integrated into the velocity update, whether you have to loop over the array multiple times per frame, and what happens when two particles collide and try to occupy the same position on the lattice (I believe that TPT only allows one particle per cell, except in some cases that can eventually lead to black holes appearing). I've looked through all the developer posts on the forum, the Github Issues, and the Wiki, and I can't really find a good implementation overview. Does such a thing exist? Or is it basically in the developers heads and I should try to read and grok most of Simulation.cpp?

  • LBPHacker
    19th Apr 2023 Developer 0 Permalink
    There's no high-level description, you'll have to go source-diving.