3.2.3.1. BandGeneral System
- system BandGeneral
ops.system('BandGeneral')
Discussion
This command is used to construct a BandGeneral linear system of equations, for matrices that are banded but not necessarily symmetric. Only the terms within the band are stored, in a one-dimensional array of size equal to the bandwidth times the number of equations. The equations are solved using the LAPACK routines DGBSV and DGBTRS, with partial pivoting.
An n×n matrix \(A = (a_{i,j})\) is a band matrix if all matrix elements are zero outside a diagonally bordered band whose range is determined by constants k1 and k2:
\(a_{i,j}=0 \quad\mbox{if}\quad j<i-k_1 \quad\mbox{ or }\quad j>i+k_2; \quad k_1, k_2 \ge 0.\ \)
The quantities \(k_1\) and \(k_2\) are the left and right half-bandwidth, respectively. The bandwidth of the matrix is \(k_1 + k_2 + 1\) and only the entries in the band are stored; the rest being implicitly zero.
For example, a 6-by-6 matrix with a bandwidth of 3:
is stored as the 6-by-3 matrix
Note
The storage, and the time to solve, depend on the bandwidth, which depends on the numbering of the equations. Use a numberer that reduces the bandwidth, e.g. RCM (see the numberer Command command).
As the matrix does not need to be symmetric or positive definite, this system can be used with any element, material and constraint handler.
Example:
The following example creates a BandGeneral system.
system BandGeneral
ops.system('BandGeneral')
Code Developed by: fmk