OpenFOAM logo
The Open Source CFD Toolbox
  Programmer’s C++ Doxygen OpenCFD Solutions Contact OpenFOAM

scalarMatrix Class Reference

Inheritance diagram for scalarMatrix:

Inheritance graph
[legend]
Collaboration diagram for scalarMatrix:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 58 of file scalarMatrix.H.


Public Member Functions

 scalarMatrix ()
 Construct null.
 scalarMatrix (const label)
 Construct given size.
 scalarMatrix (const Matrix< scalar > &)
 Construct from Matrix<scalar>.
 scalarMatrix (Istream &)
 Construct from Istream.
template<class T>
void solve (Field< T > &psi, const Field< T > &source) const
 Solve the matrix using Gaussian elimination with pivoting.

Static Public Member Functions

template<class T>
static void solve (Matrix< scalar > &matrix, Field< T > &source)
 Solve the matrix using Gaussian elimination with pivoting,.
static void LUDecompose (Matrix< scalar > &matrix, labelList &pivotIndices)
 LU decompose the matrix with pivoting.
template<class T>
static void LUBacksubstitute (const Matrix< scalar > &luMmatrix, const labelList &pivotIndices, Field< T > &source)
 LU back-substitution with given source, returning the solution.
template<class T>
static void LUsolve (Matrix< scalar > &matrix, Field< T > &source)
 Solve the matrix using LU decomposition with pivoting.

Constructor & Destructor Documentation

scalarMatrix (  ) 

Construct null.

scalarMatrix ( const   label  ) 

Construct given size.

scalarMatrix ( const Matrix< scalar > &   ) 

Construct from Matrix<scalar>.

scalarMatrix ( Istream &   ) 

Construct from Istream.


Member Function Documentation

static void solve ( Matrix< scalar > &  matrix,
Field< T > &  source 
) [static]

Solve the matrix using Gaussian elimination with pivoting,.

returning the solution in the source

void solve ( Field< T > &  psi,
const Field< T > &  source 
) const

Solve the matrix using Gaussian elimination with pivoting.

and return the solution

static void LUDecompose ( Matrix< scalar > &  matrix,
labelList &  pivotIndices 
) [static]

LU decompose the matrix with pivoting.

static void LUBacksubstitute ( const Matrix< scalar > &  luMmatrix,
const labelList &  pivotIndices,
Field< T > &  source 
) [static]

LU back-substitution with given source, returning the solution.

in the source

static void LUsolve ( Matrix< scalar > &  matrix,
Field< T > &  source 
) [static]

Solve the matrix using LU decomposition with pivoting.

returning the LU form of the matrix and the solution in the source


The documentation for this class was generated from the following file: Copyright © 2000-2007 OpenCFD Ltd