Changes between Version 25 and Version 26 of u/erica/CylindricalGravity
- Timestamp:
- 01/15/15 12:17:26 (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
u/erica/CylindricalGravity
v25 v26 139 139 End If [[br]] 140 140 141 Then set the matrixvalues for the stencil of the ith cell = tempStencilValues 141 Then set the matrixvalues for the stencil of the ith cell, by doing 142 143 matrixvalues(m:m+4) = tempStencilValues(1:5) 144 145 where m increases by 5 for each cell in the mesh. For example, 146 147 matrixvalues(:)=(-4,1,1,1,1, -4, 1, 1, 1, 1, -4, 1, 1, 1, 1, ...., -4, 1, 1, 1, 1) 148 149 for regular 2D Cartesian geometry. 150 151 This 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.