scalarMatrices.H
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037 #ifndef scalarMatrices_H
00038 #define scalarMatrices_H
00039
00040 #include "RectangularMatrix.H"
00041 #include "SquareMatrix.H"
00042 #include "DiagonalMatrix.H"
00043 #include "scalarField.H"
00044 #include "labelList.H"
00045
00046
00047
00048 namespace Foam
00049 {
00050
00051 typedef RectangularMatrix<scalar> scalarRectangularMatrix;
00052 typedef SquareMatrix<scalar> scalarSquareMatrix;
00053 typedef DiagonalMatrix<scalar> scalarDiagonalMatrix;
00054
00055
00056
00057 template<class Type>
00058 void solve(scalarSquareMatrix& matrix, Field<Type>& source);
00059
00060
00061
00062 template<class Type>
00063 void solve
00064 (
00065 Field<Type>& psi,
00066 const scalarSquareMatrix& matrix,
00067 const Field<Type>& source
00068 );
00069
00070
00071 void LUDecompose
00072 (
00073 scalarSquareMatrix& matrix,
00074 labelList& pivotIndices
00075 );
00076
00077
00078
00079 template<class Type>
00080 void LUBacksubstitute
00081 (
00082 const scalarSquareMatrix& luMmatrix,
00083 const labelList& pivotIndices,
00084 Field<Type>& source
00085 );
00086
00087
00088
00089 template<class Type>
00090 void LUsolve(scalarSquareMatrix& matrix, Field<Type>& source);
00091
00092 void multiply
00093 (
00094 scalarRectangularMatrix& answer,
00095 const scalarRectangularMatrix& A,
00096 const scalarRectangularMatrix& B
00097 );
00098
00099 void multiply
00100 (
00101 scalarRectangularMatrix& answer,
00102 const scalarRectangularMatrix& A,
00103 const scalarRectangularMatrix& B,
00104 const scalarRectangularMatrix& C
00105 );
00106
00107 void multiply
00108 (
00109 scalarRectangularMatrix& answer,
00110 const scalarRectangularMatrix& A,
00111 const DiagonalMatrix<scalar>& B,
00112 const scalarRectangularMatrix& C
00113 );
00114
00115
00116 scalarRectangularMatrix SVDinv
00117 (
00118 const scalarRectangularMatrix& A,
00119 scalar minCondition = 0
00120 );
00121
00122
00123
00124
00125 }
00126
00127
00128
00129 #ifdef NoRepository
00130 # include "scalarMatricesTemplates.C"
00131 #endif
00132
00133
00134
00135 #endif
00136
00137
Copyright © 2000-2009 OpenCFD Ltd