Вы находитесь на странице: 1из 2

gls.

bas

www.boundary-element-method.com

Boundary Element Method Open Source Software in Excel VBA


File / Module(s)
Title
Version(Date) and
History
Description

GLS.xlsm/ gls.bas
Carries out the solution of a general linear system of equations that arise in the direct boundary element method.
1. (June 2015).
This is a VB source file for solving a general linear system of equations
= + ,

(1a)

where A and B are known matrices and is a known -vector with


+ = for = 1

Interface

(1b)

where the , and are constants with and are never both zero for each i. The evaluation of vectors and is the
solution of the process.
Sub gls(n, a, b, c, alpha, beta, f, x, y, perm, xory, lfail)
Input Parameters
Integer n The dimension of the matrices and vectors
Double a(n,n) The matrix A
Double b(n,n) The matrix B
Double c(n) The vector c
Double alpha(n) The i = 1
Double beta(n) The i = 1
Double f(n) The fi = 1
Output Parameters
Double x(n) The solution vector x
Double y(n) The solution vector y
The following parameters are 'output', but only needed if new boundary conditions are to be applied to the system
The matrix A is overwritten by the LU factorisation and B is altered by row swaps with A
Boolean xory(n) The record of column exchanges.
Integer perm(n) The permutation matrix (resulting from the LU factorisation)
Boolean lfail

gls.bas
Web source of code.
Web source of this guide
Web source of the
algorithm
Dependent routines
Test problems or
modules tested
Licence
Codes that this may be
used alongside this one
Similar codes that may be
of interest
Applications
Alternative Platforms
Author
References

www.boundary-element-method.com
www.boundary-element-method.com/Excel_VBA/GLS.xlsm
www.boundary-element-method.com/Excel_VBA/gls_bas.pdf
www.boundary-element-method.com/tutorials/Numerical Solution of a General Linear System of Equations.pdf
lufac.bas and lufbsubs.bas from the Excel file : www.numerical-methods.com/Excel_VBA/LU.xlsm
www.boundary=element-method.com/Excel_VBA/GLS.xlsm
This is open source; the software may be used and applied within other systems as long as its provenance is appropriately
acknowledged. See the GNU Licence for more information or contact webmaster@boundary-element-method.com .
regls.bas reuses the results of gls.bas so that solutions of problems with different boundary conditions can be found more
quickly : www.boundary-element-method.com/Excel_VBA/regls.bas
A similar m-file code is available (Matlab/Freemat/Octave/Scilab) is available on
www.boundary-element-method.com/mfiles/regls.m
and a similar code in Excel-VBA is available on
www.boundary-element-method.com/fortran/REGLS.for
Fortran-Real System GLS
Matlab/Freemat/Octave/Scilab gls
VBA/Visual Basic gls_bas.pdf
Stephen Kirkup
1. Numerical Solution of General Linear Systems of Equations
2. The Boundary Element Method in Acoustics
3. www.boundary-element-method.com

Вам также может понравиться