#include <OpenFOAM/LUscalarMatrix.H>
Definition at line 55 of file LUscalarMatrix.H.
Inheritance diagram for LUscalarMatrix:
Collaboration diagram for LUscalarMatrix:Public Member Functions | |
| LUscalarMatrix (const scalarSquareMatrix &) | |
| Construct from scalarSquareMatrix and perform LU decomposition. | |
| LUscalarMatrix (const lduMatrix &, const FieldField< Field, scalar > &interfaceCoeffs, const lduInterfaceFieldPtrsList &interfaces) | |
| Construct from lduMatrix and perform LU decomposition. | |
| template<class T > | |
| void | solve (Field< T > &source) const |
| Solve the matrix using the LU decomposition with pivoting. | |
| template<class Type > | |
| void | solve (Field< Type > &sourceSol) const |
Public Member Functions inherited from SquareMatrix< scalar > | |
| SquareMatrix () | |
| Null constructor. | |
| SquareMatrix (const label n) | |
| Construct given number of rows/columns. | |
| SquareMatrix (const label m, const label n) | |
| Construct given number of rows and columns,. | |
| SquareMatrix (const label m, const label n, const scalar &) | |
| Construct with given number of rows and rows. | |
| SquareMatrix (Istream &) | |
| Construct from Istream. | |
| autoPtr< SquareMatrix< scalar > > | clone () const |
| Clone. | |
Public Member Functions inherited from Matrix< SquareMatrix< scalar >, scalar > | |
| Matrix () | |
| Null constructor. | |
| Matrix (const label n, const label m) | |
| Construct given number of rows and columns. | |
| Matrix (const label n, const label m, const scalar &) | |
| Construct with given number of rows and columns. | |
| Matrix (const Matrix< SquareMatrix< scalar >, scalar > &) | |
| Copy constructor. | |
| Matrix (Istream &) | |
| Construct from Istream. | |
| ~Matrix () | |
| label | n () const |
| Return the number of rows. | |
| label | m () const |
| Return the number of columns. | |
| label | size () const |
| Return the number of elements in matrix (n*m) | |
| void | checki (const label i) const |
| Check index i is within valid range (0 ... n-1). | |
| void | checkj (const label j) const |
| Check index j is within valid range (0 ... m-1). | |
| void | clear () |
| Clear the Matrix, i.e. set sizes to zero. | |
| void | transfer (Matrix< SquareMatrix< scalar >, scalar > &) |
| Transfer the contents of the argument Matrix into this Matrix. | |
| SquareMatrix< scalar > | T () const |
| Return the transpose of the matrix. | |
| scalar * | operator[] (const label) |
| Return subscript-checked row of Matrix. | |
| const scalar * | operator[] (const label) const |
| Return subscript-checked row of constant Matrix. | |
| void | operator= (const Matrix< SquareMatrix< scalar >, scalar > &) |
| Assignment operator. Takes linear time. | |
| void | operator= (const scalar &) |
| Assignment of all entries to the given value. | |
| LUscalarMatrix | ( | const scalarSquareMatrix & | matrix | ) |
Construct from scalarSquareMatrix and perform LU decomposition.
Definition at line 33 of file LUscalarMatrix.C.
References Foam::LUDecompose().
| LUscalarMatrix | ( | const lduMatrix & | ldum, |
| const FieldField< Field, scalar > & | interfaceCoeffs, | ||
| const lduInterfaceFieldPtrsList & | interfaces | ||
| ) |
Construct from lduMatrix and perform LU decomposition.
Definition at line 43 of file LUscalarMatrix.C.
References Pstream::firstSlave(), forAll, Pstream::lastSlave(), lduMatrix::lduAddr(), Foam::LUDecompose(), Pstream::master(), Pstream::masterNo(), Pstream::nProcs(), Pstream::parRun(), PstreamBase::scheduled, PtrList< T >::set(), PtrList< T >::size(), and lduAddressing::size().
Solve the matrix using the LU decomposition with pivoting.
returning the solution in the source
| void solve | ( | Field< Type > & | sourceSol | ) | const |
Definition at line 31 of file LUscalarMatrixTemplates.C.
References UList< Type >::begin(), PstreamBase::blocking, UList< Type >::byteSize(), Pstream::firstSlave(), Pstream::lastSlave(), Foam::LUBacksubstitute(), Pstream::master(), Pstream::masterNo(), Matrix< SquareMatrix< scalar >, scalar >::n(), Pstream::parRun(), IPstream::read(), PstreamBase::scheduled, List< Type >::size(), and OPstream::write().