OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

simpleMatrix< Type > Class Template Reference

Foam::simpleMatrix. More...

Inheritance diagram for simpleMatrix< Type >:
Collaboration diagram for simpleMatrix< Type >:

List of all members.


Public Member Functions

 simpleMatrix (const label)
 Construct given size.
 simpleMatrix (const scalarSquareMatrix &, const Field< Type > &)
 Construct from components.
 simpleMatrix (Istream &)
 Construct from Istream.
 simpleMatrix (const simpleMatrix< Type > &)
 Construct as copy.
Field< Type > & source ()
const Field< Type > & source () const
Field< Type > solve () const
 Solve the matrix using Gaussian elimination with pivoting.
Field< Type > LUsolve () const
 Solve the matrix using LU decomposition with pivoting.
void operator= (const simpleMatrix< Type > &)

Friends

Ostream & operator (Ostream &, const simpleMatrix< Type > &)

Detailed Description

template<class Type>
class Foam::simpleMatrix< Type >

Foam::simpleMatrix.

Source files

Definition at line 58 of file simpleMatrix.H.


Constructor & Destructor Documentation

simpleMatrix ( const label  mSize  )  [inline]

Construct given size.

Definition at line 23 of file simpleMatrix.C.

simpleMatrix ( const scalarSquareMatrix &  matrix,
const Field< Type > &  source 
) [inline]

Construct from components.

Definition at line 32 of file simpleMatrix.C.

simpleMatrix ( Istream &  is  )  [inline]

Construct from Istream.

Definition at line 43 of file simpleMatrix.C.

simpleMatrix ( const simpleMatrix< Type > &   ) 

Construct as copy.


Member Function Documentation

Field<Type>& source (  )  [inline]

Definition at line 88 of file simpleMatrix.H.

const Field<Type>& source (  )  const [inline]

Definition at line 93 of file simpleMatrix.H.

Foam::Field< Type > solve (  )  const [inline]

Solve the matrix using Gaussian elimination with pivoting.

and return the solution

Definition at line 53 of file simpleMatrix.C.

Foam::Field< Type > LUsolve (  )  const [inline]

Solve the matrix using LU decomposition with pivoting.

and return the solution

Definition at line 65 of file simpleMatrix.C.

void operator= ( const simpleMatrix< Type > &  m  )  [inline]

Definition at line 79 of file simpleMatrix.C.


Friends And Related Function Documentation

Ostream& operator ( Ostream &  ,
const simpleMatrix< Type > &   
) [friend]


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