OpenFOAM logo
Open Source CFD Toolkit

lduMatrix Class Reference

Inheritance diagram for lduMatrix:

Inheritance graph
[legend]
Collaboration diagram for lduMatrix:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ClassName ("lduMatrix")
 lduMatrix (const lduAddressing &ldu, const patchScheduleList &lduCoupledInterfaceSchedule)
 Construct given a field to solve, L-U matrix addressing.
 lduMatrix (const lduMatrix &)
 Construct as copy.
 lduMatrix (lduMatrix &, bool reUse)
 Construct as copy or re-use as specified.
 lduMatrix (const lduAddressing &ldu, const patchScheduleList &lduCoupledInterfaceSchedule, Istream &)
 Construct from Istream.
 ~lduMatrix ()
scalarFieldlower ()
scalarFielddiag ()
scalarFieldupper ()
const scalarFieldlower () const
const scalarFielddiag () const
const scalarFieldupper () const
const lduAddressinglduAddr () const
const patchScheduleListlduCoupledInterfaceSchedule () const
bool hasDiag () const
bool hasUpper () const
bool hasLower () const
bool diagonal () const
bool symmetric () const
bool asymmetric () const
void sumDiag ()
void negSumDiag ()
void relax (const FieldField< Field, scalar > &intCoeffsCmptAvg, const FieldField< Field, scalar > &magCoupleBouCoeffs, const lduCoupledInterfacePtrsList &interfaces, const scalar alpha=1.0)
 Relax matrix (for steady-state solution).
void Amul (scalarField &, const tmp< scalarField > &, const FieldField< Field, scalar > &, const lduCoupledInterfacePtrsList &, const direction cmpt) const
 Matrix multiplication with updated coupled interfaces.
void Tmul (scalarField &, const tmp< scalarField > &, const FieldField< Field, scalar > &, const lduCoupledInterfacePtrsList &, const direction cmpt) const
 Matrix transpose multiplication with updated coupled interfaces.
void initMatrixInterfaces (const FieldField< Field, scalar > &coupleCoeffs, const lduCoupledInterfacePtrsList &interfaces, const scalarField &psiif, scalarField &result, const direction cmpt) const
 Initialise the update of coupled interfaces.
void updateMatrixInterfaces (const FieldField< Field, scalar > &coupleCoeffs, const lduCoupledInterfacePtrsList &interfaces, const scalarField &psiif, scalarField &result, const direction cmpt) const
 Update coupled interfaces for matrix operations.
tmp< scalarFieldresidual (const scalarField &psi, const FieldField< Field, scalar > &coupleBouCoeffs, const lduCoupledInterfacePtrsList &interfaces, const direction cmpt) const
tmp< scalarFieldresidual (const scalarField &psi, const scalarField &source, const FieldField< Field, scalar > &coupleBouCoeffs, const lduCoupledInterfacePtrsList &interfaces, const direction cmpt) const
template<class Type>
tmp< Field< Type > > H (const Field< Type > &) const
template<class Type>
tmp< Field< Type > > H (const tmp< Field< Type > > &) 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

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

Friends

Ostreamoperator<< (Ostream &, const lduMatrix &)

Constructor & Destructor Documentation

lduMatrix const lduAddressing ldu,
const patchScheduleList lduCoupledInterfaceSchedule
 

Construct given a field to solve, L-U matrix addressing.

and tolerence

lduMatrix const lduMatrix  ) 
 

Construct as copy.

lduMatrix lduMatrix ,
bool  reUse
 

Construct as copy or re-use as specified.

lduMatrix const lduAddressing ldu,
const patchScheduleList lduCoupledInterfaceSchedule,
Istream
 

Construct from Istream.

~lduMatrix  ) 
 


Member Function Documentation

void Amul scalarField ,
const tmp< scalarField > &  ,
const FieldField< Field, scalar > &  ,
const lduCoupledInterfacePtrsList ,
const direction  cmpt
const
 

Matrix multiplication with updated coupled interfaces.

bool asymmetric  )  const [inline]
 

Definition at line 453 of file lduMatrix.H.

References Foam::direction, Foam::lduCoupledInterfacePtrsList, and Foam::scalarField.

ClassName "lduMatrix"   ) 
 

const scalarField& diag  )  const
 

scalarField& diag  ) 
 

bool diagonal  )  const [inline]
 

Definition at line 443 of file lduMatrix.H.

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

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

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

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

bool hasDiag  )  const [inline]
 

Definition at line 428 of file lduMatrix.H.

bool hasLower  )  const [inline]
 

Definition at line 438 of file lduMatrix.H.

bool hasUpper  )  const [inline]
 

Definition at line 433 of file lduMatrix.H.

void initMatrixInterfaces const FieldField< Field, scalar > &  coupleCoeffs,
const lduCoupledInterfacePtrsList interfaces,
const scalarField psiif,
scalarField result,
const direction  cmpt
const
 

Initialise the update of coupled interfaces.

for matrix operations

const lduAddressing& lduAddr  )  const [inline]
 

Definition at line 418 of file lduMatrix.H.

const patchScheduleList& lduCoupledInterfaceSchedule  )  const [inline]
 

Definition at line 423 of file lduMatrix.H.

const scalarField& lower  )  const
 

scalarField& lower  ) 
 

void negate  ) 
 

Reimplemented in fvMatrix, faMatrix, and tetFemMatrix.

void negSumDiag  ) 
 

void operator *= scalar   ) 
 

void operator *= const scalarField  ) 
 

void operator+= const lduMatrix  ) 
 

void operator-= const lduMatrix  ) 
 

void operator= const lduMatrix  ) 
 

void relax const FieldField< Field, scalar > &  intCoeffsCmptAvg,
const FieldField< Field, scalar > &  magCoupleBouCoeffs,
const lduCoupledInterfacePtrsList interfaces,
const scalar  alpha = 1.0
 

Relax matrix (for steady-state solution).

alpha=1 : diagonally equal alpha<1 : ,, dominant

tmp<scalarField> residual const scalarField psi,
const scalarField source,
const FieldField< Field, scalar > &  coupleBouCoeffs,
const lduCoupledInterfacePtrsList interfaces,
const direction  cmpt
const
 

tmp<scalarField> residual const scalarField psi,
const FieldField< Field, scalar > &  coupleBouCoeffs,
const lduCoupledInterfacePtrsList interfaces,
const direction  cmpt
const
 

void sumDiag  ) 
 

bool symmetric  )  const [inline]
 

Definition at line 448 of file lduMatrix.H.

void Tmul scalarField ,
const tmp< scalarField > &  ,
const FieldField< Field, scalar > &  ,
const lduCoupledInterfacePtrsList ,
const direction  cmpt
const
 

Matrix transpose multiplication with updated coupled interfaces.

void updateMatrixInterfaces const FieldField< Field, scalar > &  coupleCoeffs,
const lduCoupledInterfacePtrsList interfaces,
const scalarField psiif,
scalarField result,
const direction  cmpt
const
 

Update coupled interfaces for matrix operations.

const scalarField& upper  )  const
 

scalarField& upper  ) 
 


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 368 of file lduMatrix.H.

const scalar small_ [static]
 

Small scalar for the use in solvers.

Definition at line 371 of file lduMatrix.H.


The documentation for this class was generated from the following file:
For further information go to www.openfoam.org