I have a list of nodes (particles) and links (connections between particles). Each link has a certain 'charge' to it, indicating the resultant distance between nodes.
I randomly give each node a co-ordinate in space, and then tell the simulator to work out the negative charges and thusly the co-ordinates of nodes to produce the correct distance between nodes.
Clear as mud? Basically each particle repels all other particles, the charge of the links between particles determines the strength of the repulsion between those particles, and thusly the distance between them.
So when I set the simulation going, it will push all the linked nodes away from each other as far as the charges suggest, moving them around in 3D space and at the end of the simulation, outputting correct co-ordinates of the nodes.
I just can't work out how to... well... do any of it. Can anyone point me off in the right direction?
JP,
-- Alexander Widdlemouse undid his bellybutton and his bum dropped off --
In reply to 3 Dimensional repelling particle simulation by JPaul
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |