Fludis modeling
in
Programming Questions
•
2 years ago
Hi there,
Recently I've been thinking about writing some fludis modeling apps.
I've done some rigid body dynamics stuff, and It's all pretty simple there because of the fixed grid. Each element is connected to (for example) 4 neighbours and there's damping and spring between them. This gives 4n calculations per loop.
In fluids particles tend to interact with each other randomly depending on current positions, therefore in each step, for every single particle i should calculate the influence from all the others. If I want to calculate every particles influence it gives n^2 calculations. Is there a way to reduce the complexity?
How is it usually done?
Recently I've been thinking about writing some fludis modeling apps.
I've done some rigid body dynamics stuff, and It's all pretty simple there because of the fixed grid. Each element is connected to (for example) 4 neighbours and there's damping and spring between them. This gives 4n calculations per loop.
In fluids particles tend to interact with each other randomly depending on current positions, therefore in each step, for every single particle i should calculate the influence from all the others. If I want to calculate every particles influence it gives n^2 calculations. Is there a way to reduce the complexity?
How is it usually done?
1