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

lduMatrix Class Reference

Inheritance diagram for lduMatrix:

Inheritance graph
[legend]
Collaboration diagram for lduMatrix:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 78 of file lduMatrix.H.


Public Member Functions

 ClassName ("lduMatrix")
 lduMatrix (const lduMesh &)
 Construct given an LDU addressed mesh.
 lduMatrix (const lduMatrix &)
 Construct as copy.
 lduMatrix (lduMatrix &, bool reUse)
 Construct as copy or re-use as specified.
 lduMatrix (const lduMesh &, Istream &)
 Construct given an LDU addressed mesh and an Istream.
 ~lduMatrix ()
const lduMesh & mesh () const
 Return the LDU mesh from which the addressing is obtained.
const lduAddressing & lduAddr () const
 Return the LDU addressing.
const lduSchedule & patchSchedule () const
 Return the patch evaluation schedule.
scalarField & lower ()
scalarField & diag ()
scalarField & upper ()
const scalarField & lower () const
const scalarField & diag () const
const scalarField & upper () const
bool hasDiag () const
bool hasUpper () const
bool hasLower () const
bool diagonal () const
bool symmetric () const
bool asymmetric () const
void sumDiag ()
void negSumDiag ()
void sumMagOffDiag (scalarField &sumOff) const
void Amul (scalarField &, const tmp< scalarField > &, const FieldField< Field, scalar > &, const lduInterfaceFieldPtrsList &, const direction cmpt) const
 Matrix multiplication with updated interfaces.
void Tmul (scalarField &, const tmp< scalarField > &, const FieldField< Field, scalar > &, const lduInterfaceFieldPtrsList &, const direction cmpt) const
 Matrix transpose multiplication with updated interfaces.
void sumA (scalarField &, const FieldField< Field, scalar > &, const lduInterfaceFieldPtrsList &) const
 Sum the coefficients on each row of the matrix.
void residual (scalarField &rA, const scalarField &psi, const scalarField &source, const FieldField< Field, scalar > &interfaceBouCoeffs, const lduInterfaceFieldPtrsList &interfaces, const direction cmpt) const
tmp< scalarField > residual (const scalarField &psi, const scalarField &source, const FieldField< Field, scalar > &interfaceBouCoeffs, const lduInterfaceFieldPtrsList &interfaces, const direction cmpt) const
void initMatrixInterfaces (const FieldField< Field, scalar > &interfaceCoeffs, const lduInterfaceFieldPtrsList &interfaces, const scalarField &psiif, scalarField &result, const direction cmpt) const
 Initialise the update of interfaced interfaces.
void updateMatrixInterfaces (const FieldField< Field, scalar > &interfaceCoeffs, const lduInterfaceFieldPtrsList &interfaces, const scalarField &psiif, scalarField &result, const direction cmpt) const
 Update interfaced interfaces for matrix operations.
void bufferedInitMatrixInterfaces (const FieldField< Field, scalar > &interfaceCoeffs, const lduInterfaceFieldPtrsList &interfaces, const scalarField &psiif, scalarField &result, const direction cmpt) const
 Initialise the update of interfaced interfaces.
void bufferedUpdateMatrixInterfaces (const FieldField< Field, scalar > &interfaceCoeffs, const lduInterfaceFieldPtrsList &interfaces, const scalarField &psiif, scalarField &result, const direction cmpt) const
 Update interfaced interfaces for matrix operations.
template<class Type>
tmp< Field< Type > > H (const Field< Type > &) const
template<class Type>
tmp< Field< Type > > H (const tmp< Field< Type > > &) const
tmp< scalarField > H1 () const
template<class Type>
tmp< Field< Type > > faceH (const Field< Type > &) const
template<class Type>
tmp< Field< Type > > faceH (const tmp< Field< Type > > &) const
void operator= (const lduMatrix &)
void negate ()
void operator+= (const lduMatrix &)
void operator-= (const lduMatrix &)
void operator *= (const scalarField &)
void operator *= (scalar)

Static Public Attributes

static const scalar great_
 Large scalar for the use in solvers.
static const scalar small_
 Small scalar for the use in solvers.

Friends

Ostream & operator<< (Ostream &, const lduMatrix &)

Classes

class  preconditioner
 Abstract base-class for lduMatrix preconditioners. More...
class  smoother
 Abstract base-class for lduMatrix smoothers. More...
class  solver
 Abstract base-class for lduMatrix solvers. More...
class  solverPerformance
 Class returned by the solver. More...

Constructor & Destructor Documentation

lduMatrix ( const lduMesh &   ) 

Construct given an LDU addressed mesh.

The coefficients are initially empty for subsequent setting.

lduMatrix ( const lduMatrix &   ) 

Construct as copy.

lduMatrix ( lduMatrix &  ,
bool  reUse 
)

Construct as copy or re-use as specified.

lduMatrix ( const lduMesh &  ,
Istream &   
)

Construct given an LDU addressed mesh and an Istream.

from which the coefficients are read

~lduMatrix (  ) 


Member Function Documentation

ClassName ( "lduMatrix"   ) 

const lduMesh& mesh (  )  const [inline]

Return the LDU mesh from which the addressing is obtained.

Definition at line 690 of file lduMatrix.H.

const lduAddressing& lduAddr (  )  const [inline]

Return the LDU addressing.

Definition at line 696 of file lduMatrix.H.

const lduSchedule& patchSchedule (  )  const [inline]

Return the patch evaluation schedule.

Definition at line 702 of file lduMatrix.H.

scalarField& lower (  ) 

scalarField& diag (  ) 

scalarField& upper (  ) 

const scalarField& lower (  )  const

const scalarField& diag (  )  const

const scalarField& upper (  )  const

bool hasDiag (  )  const [inline]

Definition at line 718 of file lduMatrix.H.

bool hasUpper (  )  const [inline]

Definition at line 723 of file lduMatrix.H.

bool hasLower (  )  const [inline]

Definition at line 728 of file lduMatrix.H.

bool diagonal (  )  const [inline]

Definition at line 733 of file lduMatrix.H.

bool symmetric (  )  const [inline]

Definition at line 738 of file lduMatrix.H.

bool asymmetric (  )  const [inline]

Definition at line 743 of file lduMatrix.H.

void sumDiag (  ) 

void negSumDiag (  ) 

void sumMagOffDiag ( scalarField &  sumOff  )  const

void Amul ( scalarField &  ,
const tmp< scalarField > &  ,
const FieldField< Field, scalar > &  ,
const lduInterfaceFieldPtrsList &  ,
const direction  cmpt 
) const

Matrix multiplication with updated interfaces.

void Tmul ( scalarField &  ,
const tmp< scalarField > &  ,
const FieldField< Field, scalar > &  ,
const lduInterfaceFieldPtrsList &  ,
const direction  cmpt 
) const

Matrix transpose multiplication with updated interfaces.

void sumA ( scalarField &  ,
const FieldField< Field, scalar > &  ,
const lduInterfaceFieldPtrsList &   
) const

Sum the coefficients on each row of the matrix.

void residual ( scalarField &  rA,
const scalarField &  psi,
const scalarField &  source,
const FieldField< Field, scalar > &  interfaceBouCoeffs,
const lduInterfaceFieldPtrsList &  interfaces,
const direction  cmpt 
) const

tmp<scalarField> residual ( const scalarField &  psi,
const scalarField &  source,
const FieldField< Field, scalar > &  interfaceBouCoeffs,
const lduInterfaceFieldPtrsList &  interfaces,
const direction  cmpt 
) const

void initMatrixInterfaces ( const FieldField< Field, scalar > &  interfaceCoeffs,
const lduInterfaceFieldPtrsList &  interfaces,
const scalarField &  psiif,
scalarField &  result,
const direction  cmpt 
) const

Initialise the update of interfaced interfaces.

for matrix operations

void updateMatrixInterfaces ( const FieldField< Field, scalar > &  interfaceCoeffs,
const lduInterfaceFieldPtrsList &  interfaces,
const scalarField &  psiif,
scalarField &  result,
const direction  cmpt 
) const

Update interfaced interfaces for matrix operations.

void bufferedInitMatrixInterfaces ( const FieldField< Field, scalar > &  interfaceCoeffs,
const lduInterfaceFieldPtrsList &  interfaces,
const scalarField &  psiif,
scalarField &  result,
const direction  cmpt 
) const

Initialise the update of interfaced interfaces.

for matrix operations using buffered unscheduled transfer

void bufferedUpdateMatrixInterfaces ( const FieldField< Field, scalar > &  interfaceCoeffs,
const lduInterfaceFieldPtrsList &  interfaces,
const scalarField &  psiif,
scalarField &  result,
const direction  cmpt 
) const

Update interfaced interfaces for matrix operations.

using buffered unscheduled transfer

tmp<Field<Type> > H ( const Field< Type > &   )  const

tmp<Field<Type> > H ( const tmp< Field< Type > > &   )  const

tmp<scalarField> H1 (  )  const

Reimplemented in fvMatrix, and fvMatrix.

tmp<Field<Type> > faceH ( const Field< Type > &   )  const

tmp<Field<Type> > faceH ( const tmp< Field< Type > > &   )  const

void operator= ( const lduMatrix &   ) 

void negate (  ) 

Reimplemented in fvMatrix.

void operator+= ( const lduMatrix &   ) 

void operator-= ( const lduMatrix &   ) 

void operator *= ( const scalarField &   ) 

void operator *= ( scalar   ) 


Friends And Related Function Documentation

Ostream& operator<< ( Ostream &  ,
const lduMatrix &   
) [friend]


Member Data Documentation

const scalar great_ [static]

Large scalar for the use in solvers.

Definition at line 653 of file lduMatrix.H.

const scalar small_ [static]

Small scalar for the use in solvers.

Definition at line 656 of file lduMatrix.H.


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