Changes between Version 12 and Version 13 of u/erica/CylindricalGravity
- Timestamp:
- 01/07/15 11:35:45 (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
u/erica/CylindricalGravity
v12 v13 62 62 Offsets (:,0) = 0 is the starting line in the routine. It states that in any dimension, the center cell itself has a '0 offset'. 63 63 64 When all is said and done, the array's values are given as: 64 65 66 '''Offsets (i,m) =''' 65 67 68 || '''i\m''' || 0 || 1 || 2 || 3 || 4 || 69 || 1 || 0|| -1 || 1 || 0 || 0 || 70 || 2 || 0|| 0|| 0 || -1 || 1 || 66 71 72 -1 corresponds to left/down, and +1 to right/up. So this states the 1st cell in the stencil (m=1) has a position to the left of the center cell in the i=1 (x) direction, and the 2nd cell is to the right. The 3rd and 4th cell has a 0 offset in x (because they are above and below the center cell). This is why their offsets are listed in the 2nd row of the table. Again, the center cell itself (m=0) has 0 offsets from itself in both directions. 73