Anda di halaman 1dari 3

GLS_T.

FOR

www.boundary-element-method.com

Boundary Element Method Open Source Software in FORTRAN


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

GLS_T.FOR / GLS_T
A set of test problems for testing the subroutines GLS and REGLS.
1. (June 2015).
A set of test problems for testing the subroutines GLS and REGLS that carry out the solution of a general linear system of
equations that arise in the direct boundary element method. CGLS/REGLS solve a general linear system of equations
(1a)

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

(1b)

+ = for = 1

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.
The evaluation of vectors and is the solution of the process. regls.bas find a new and fast solution with a different c
and f , using information from GLS.
An alternative way of wtiting equation (2) is
(3)

+ = ,
where and are diagonal matrices with [ ] = ( ) and [ ] = ( ).

The initial test problems on the spreadsheet are the 22 system


(

1
1
4 1 1
1 1
15 (
) ( ) = (
) ( ) + (
) , 0.5 2) ( ) + (0.1
3 1
2
2 3
2
2
11

1
0.4
),
5) ( ) = (
2
1

1
1
1
1
and the solution using GLS is ( ) = ( ) , ( ) = ( ),
2
7
2
3

GLS_T.FOR

www.boundary-element-method.com

Then changing c and f to = (


and the 55 system
19
93
76
31
(91

32
91
98
91
11

1
1
28
2.7
2
5
), = (
) using REGLS gives ( ) = ( ) , ( ) = ( ).
13
29
2
2
7
3

92 62
17 42
5 92
94 13
89 4

(8 66

1
0.89
82

26
0.32
2
3 =
0.67
66
4
0.53
80
37) (5 )
(0.57

1
2
0 53 45) 3 + (2.5 0.3
4
(5 )

0.16
0.83
0.87
0.42
0.96

1
0.92 0.79 0.96
0.56

0.41 0.47 0.55


2
15.7
3 + 1.83 ,
0.94 0.37 0.58
4
5.38
0.73 0.46 0.12

0.14 0.82 0.9 ) ( 5 ) ( 2.7 )

0.96 0.74

1
14.52
2
3.54
0) 3 = 8.64
4
0.11

5
0.9
( )
(
)

1
1
0.06
6
2
2
0.04
3
and the solution using GLS is 3 = 0.08
and 3 = 9 .
4
4
0.03
2

5
0.02
5
7
( ) (
)
( )
( )
1
1
30.11
62.4
24
0.3

9.8
75.9
2
1.3
2
33
0
0
Changing c and f to = 148.44 , =
, using REGLS returns 3 = 0.4
and 3 =
.

44.46
15.68
4
4
57
0.5
(134.38)
( 90 )
(5 ) ( 2 )
(5 )
(18)
Interface
Web source of code.
Web source of this guide

PROGRAM GLS_T
www.boundary-element-method.com/fortran/GLS_T.FOR
www.boundary-element-method.com/fortran/GLS_T_FOR.pdf

GLS_T.FOR
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-methods.com/tutorials/Numerical Solution of a General Linear System of Equations.pdf
LUFAC : www.numerical-methods.com/fortran/LUFAC.FOR
LUFBSUB : www.numerical-methods.com/fortran/LUFBSUB.FOR
GLS : www.boundary-element-method.com/fortran/GLS2.FOR
REGLS : www.boundary-element-method.com/fortran/REGLS.FOR
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 .
A similar m-file code is available (Matlab/Freemat/Octave/Scilab) is available on
www.boundary-elmenet-method.com/mfiles/gls.m
and a similar code in Excel-VBA is available on
www.boundary-element-method.com/Excel_VBA/GLS.xlsm
LIBEM2, LIBEM3,LIBEMA, LEBEM3, LIBEM3, LSEM3
Matlab/Freemat/Octave/Scilab gls
VBA/Visual Basic GLS.xlsm
Stephen Kirkup
1. Numerical Solution of General Linear Systems of Equations
3. www.boundary-element-method.com
4. Fortran 77 tutorials

Anda mungkin juga menyukai