POV-Ray : Newsgroups : povray.off-topic : Liquid Physics : Re: Liquid Physics Server Time
1 Oct 2024 18:28:31 EDT (-0400)
  Re: Liquid Physics  
From: Invisible
Date: 1 Apr 2008 04:43:16
Message: <47f203b4@news.povray.org>
scott wrote:

> Yes, inside the "acceleration" function, which is called from each 
> "evaluate" you put your code for calculating the acceleration.  This, in 
> your case, would presumably call the routine to check for collisions and 
> work out the forces for all the particles.
> 
> Note that you need to put all the positions and velocities for every 
> particle inside some state block and evaluate them in parallel using 
> this algorithm - you can't do one at a time it doesn't work like that.

Question: Would it be worth using some kind of space partitioning to 
enable you to process only "nearby" particles?

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.