Changes between Version 25 and Version 26 of u/erica/CylindricalGravity


Ignore:
Timestamp:
01/15/15 12:17:26 (10 years ago)
Author:
Erica Kaminski
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • u/erica/CylindricalGravity

    v25 v26  
    139139End If [[br]]
    140140
    141 Then set the matrixvalues for the stencil of the ith cell = tempStencilValues
     141Then set the matrixvalues for the stencil of the ith cell, by doing
     142
     143matrixvalues(m:m+4) = tempStencilValues(1:5)
     144
     145where m increases by 5 for each cell in the mesh. For example,
     146
     147matrixvalues(:)=(-4,1,1,1,1, -4, 1, 1, 1, 1, -4, 1, 1, 1, 1, ...., -4, 1, 1, 1, 1)
     148
     149for regular 2D Cartesian geometry.
     150
     151This means that matrixvalues(1) is the center cell stencil coefficient of the 1st cell in the mesh, matrix(6) is the center cell stencil coefficient of the 2nd cell in the mesh, and so on.