Author Topic: Currents  (Read 2767 times)

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Currents
« on: March 15, 2005, 04:13:23 PM »
Thought about this while thinking of ways to simulate blood vessels.

Using the E grid, we define velocities that represent currents.  When a bot is in a grid, the force of friction on it is determined by the difference in the bots velocity and the grid square's and the density of the square.

Also, these currents effect the rate of diffusion between high and low concentrations.  A high concentration won't diffuse into a low concentration if it's headed in the opposite direction.

ie:

1.2.3 = Egrid
>.>.^  = vectors
1.6.3 = concentrations

When egrid 1 diffuses, it does so predominantly towards 2, even though 2 has a higher concentration.  grid 2 diffuses primarily into grid 3, and not at all into grid 1, even though grid 1 has much lower concentrations.

Just an idea, I'm not sure how well it'd all work.  Still some issues to work out.