Classes | Public Types | Public Member Functions | Protected Member Functions | Friends | List of all members
fvMatrix< Type > Class Template Reference

A special matrix type and solver, designed for finite volume solutions of scalar equations. Face addressing is used to make all matrix assembly and solution loops vectorise. More...

Inheritance diagram for fvMatrix< Type >:
Inheritance graph
[legend]
Collaboration diagram for fvMatrix< Type >:
Collaboration graph
[legend]

Classes

class  fvSolver
 Solver class returned by the solver function. More...
 

Public Types

typedef GeometricField< Type, fvsPatchField, surfaceMesh > * surfaceTypeFieldPtr
 Declare return type of the faceFluxCorrectionPtr() function. More...
 

Public Member Functions

 ClassName ("fvMatrix")
 
 fvMatrix (const GeometricField< Type, fvPatchField, volMesh > &, const dimensionSet &)
 Construct given a field to solve for. More...
 
 fvMatrix (const fvMatrix< Type > &)
 Construct as copy. More...
 
 fvMatrix (const tmp< fvMatrix< Type > > &)
 Construct as copy of tmp<fvMatrix<Type> > deleting argument. More...
 
 fvMatrix (const GeometricField< Type, fvPatchField, volMesh > &, Istream &)
 Construct from Istream given field to solve for. More...
 
virtual ~fvMatrix ()
 Destructor. More...
 
const GeometricField< Type, fvPatchField, volMesh > & psi () const
 
const dimensionSetdimensions () const
 
Field< Type > & source ()
 
const Field< Type > & source () const
 
FieldField< Field, Type > & internalCoeffs ()
 fvBoundary scalar field containing pseudo-matrix coeffs More...
 
FieldField< Field, Type > & boundaryCoeffs ()
 fvBoundary scalar field containing pseudo-matrix coeffs More...
 
surfaceTypeFieldPtrfaceFluxCorrectionPtr ()
 Return pointer to face-flux non-orthogonal correction field. More...
 
void setValues (const labelUList &cells, const UList< Type > &values)
 Set solution in given cells to the specified values. More...
 
void setValues (const labelUList &cells, const UIndirectList< Type > &values)
 Set solution in given cells to the specified values. More...
 
void setReference (const label celli, const Type &value, const bool forceReference=false)
 Set reference level for solution. More...
 
void setComponentReference (const label patchi, const label facei, const direction cmpt, const scalar value)
 Set reference level for a component of the solution. More...
 
void relax (const scalar alpha)
 Relax matrix (for steady-state solution). More...
 
void relax ()
 Relax matrix (for steady-state solution). More...
 
void boundaryManipulate (typename GeometricField< Type, fvPatchField, volMesh >::GeometricBoundaryField &values)
 Manipulate based on a boundary field. More...
 
autoPtr< fvSolversolver (const dictionary &)
 Construct and return the solver. More...
 
autoPtr< fvSolversolver ()
 Construct and return the solver. More...
 
solverPerformance solve (const dictionary &)
 Solve segregated or coupled returning the solution statistics. More...
 
solverPerformance solveSegregated (const dictionary &)
 Solve segregated returning the solution statistics. More...
 
solverPerformance solveCoupled (const dictionary &)
 Solve coupled returning the solution statistics. More...
 
solverPerformance solve ()
 Solve returning the solution statistics. More...
 
tmp< Field< Type > > residual () const
 Return the matrix residual. More...
 
tmp< scalarFieldD () const
 Return the matrix scalar diagonal. More...
 
tmp< Field< Type > > DD () const
 Return the matrix Type diagonal. More...
 
tmp< volScalarFieldA () const
 Return the central coefficient. More...
 
tmp< GeometricField< Type, fvPatchField, volMesh > > H () const
 Return the H operation source. More...
 
tmp< volScalarFieldH1 () const
 Return H(1) More...
 
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > flux () const
 Return the face-flux field from the matrix. More...
 
void operator= (const fvMatrix< Type > &)
 
void operator= (const tmp< fvMatrix< Type > > &)
 
void negate ()
 
void operator+= (const fvMatrix< Type > &)
 
void operator+= (const tmp< fvMatrix< Type > > &)
 
void operator-= (const fvMatrix< Type > &)
 
void operator-= (const tmp< fvMatrix< Type > > &)
 
void operator+= (const DimensionedField< Type, volMesh > &)
 
void operator+= (const tmp< DimensionedField< Type, volMesh > > &)
 
void operator+= (const tmp< GeometricField< Type, fvPatchField, volMesh > > &)
 
void operator-= (const DimensionedField< Type, volMesh > &)
 
void operator-= (const tmp< DimensionedField< Type, volMesh > > &)
 
void operator-= (const tmp< GeometricField< Type, fvPatchField, volMesh > > &)
 
void operator+= (const dimensioned< Type > &)
 
void operator-= (const dimensioned< Type > &)
 
void operator+= (const zero &)
 
void operator-= (const zero &)
 
void operator*= (const DimensionedField< scalar, volMesh > &)
 
void operator*= (const tmp< DimensionedField< scalar, volMesh > > &)
 
void operator*= (const tmp< volScalarField > &)
 
void operator*= (const dimensioned< scalar > &)
 
template<>
void setComponentReference (const label patchi, const label facei, const direction, const scalar value)
 
template<>
Foam::autoPtr< Foam::fvMatrix< Foam::scalar >::fvSolversolver (const dictionary &solverControls)
 
template<>
Foam::solverPerformance solveSegregated (const dictionary &solverControls)
 
template<>
Foam::tmp< Foam::scalarFieldresidual () const
 
template<>
Foam::tmp< Foam::volScalarFieldH () const
 
template<>
Foam::tmp< Foam::volScalarFieldH1 () const
 
template<>
void setComponentReference (const label patchi, const label facei, const direction, const scalar value)
 
template<>
autoPtr< fvMatrix< scalar >::fvSolversolver (const dictionary &)
 
template<>
solverPerformance solveSegregated (const dictionary &)
 
template<>
tmp< scalarFieldresidual () const
 
template<>
tmp< volScalarFieldH () const
 
template<>
tmp< volScalarFieldH1 () const
 
- Public Member Functions inherited from refCount
 refCount ()
 Construct null with zero count. More...
 
int count () const
 Return the reference count. More...
 
bool okToDelete () const
 Return true if the reference count is zero. More...
 
void resetRefCount ()
 Reset the reference count to zero. More...
 
void operator++ ()
 Increment the reference count. More...
 
void operator++ (int)
 Increment the reference count. More...
 
void operator-- ()
 Decrement the reference count. More...
 
void operator-- (int)
 Decrement the reference count. More...
 
- Public Member Functions inherited from lduMatrix
 ClassName ("lduMatrix")
 
 lduMatrix (const lduMesh &)
 Construct given an LDU addressed mesh. More...
 
 lduMatrix (const lduMatrix &)
 Construct as copy. More...
 
 lduMatrix (lduMatrix &, bool reUse)
 Construct as copy or re-use as specified. More...
 
 lduMatrix (const lduMesh &, Istream &)
 Construct given an LDU addressed mesh and an Istream. More...
 
 ~lduMatrix ()
 Destructor. More...
 
const lduMeshmesh () const
 Return the LDU mesh from which the addressing is obtained. More...
 
const lduAddressinglduAddr () const
 Return the LDU addressing. More...
 
const lduSchedulepatchSchedule () const
 Return the patch evaluation schedule. More...
 
scalarFieldlower ()
 
scalarFielddiag ()
 
scalarFieldupper ()
 
scalarFieldlower (const label size)
 
scalarFielddiag (const label nCoeffs)
 
scalarFieldupper (const label nCoeffs)
 
const scalarFieldlower () const
 
const scalarFielddiag () const
 
const scalarFieldupper () 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. More...
 
void Tmul (scalarField &, const tmp< scalarField > &, const FieldField< Field, scalar > &, const lduInterfaceFieldPtrsList &, const direction cmpt) const
 Matrix transpose multiplication with updated interfaces. More...
 
void sumA (scalarField &, const FieldField< Field, scalar > &, const lduInterfaceFieldPtrsList &) const
 Sum the coefficients on each row of the matrix. More...
 
void residual (scalarField &rA, const scalarField &psi, const scalarField &source, const FieldField< Field, scalar > &interfaceBouCoeffs, const lduInterfaceFieldPtrsList &interfaces, const direction cmpt) const
 
tmp< scalarFieldresidual (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. More...
 
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. More...
 
template<class Type >
tmp< Field< Type > > H (const Field< Type > &) const
 
template<class Type >
tmp< Field< Type > > H (const tmp< Field< Type > > &) const
 
tmp< scalarFieldH1 () const
 
template<class Type >
tmp< Field< Type > > faceH (const Field< Type > &) const
 
template<class Type >
tmp< Field< Type > > faceH (const tmp< Field< Type > > &) const
 
InfoProxy< lduMatrixinfo () const
 Return info proxy. More...
 
void operator= (const lduMatrix &)
 
void negate ()
 
void operator+= (const lduMatrix &)
 
void operator-= (const lduMatrix &)
 
void operator*= (const scalarField &)
 
void operator*= (scalar)
 
template<class Type >
Foam::tmp< Foam::Field< Type > > H (const Field< Type > &psi) const
 
template<class Type >
Foam::tmp< Foam::Field< Type > > H (const tmp< Field< Type > > &tpsi) const
 
template<class Type >
Foam::tmp< Foam::Field< Type > > faceH (const Field< Type > &psi) const
 
template<class Type >
Foam::tmp< Foam::Field< Type > > faceH (const tmp< Field< Type > > &tpsi) const
 

Protected Member Functions

template<class Type2 >
void addToInternalField (const labelUList &addr, const Field< Type2 > &pf, Field< Type2 > &intf) const
 Add patch contribution to internal field. More...
 
template<class Type2 >
void addToInternalField (const labelUList &addr, const tmp< Field< Type2 > > &tpf, Field< Type2 > &intf) const
 
template<class Type2 >
void subtractFromInternalField (const labelUList &addr, const Field< Type2 > &pf, Field< Type2 > &intf) const
 Subtract patch contribution from internal field. More...
 
template<class Type2 >
void subtractFromInternalField (const labelUList &addr, const tmp< Field< Type2 > > &tpf, Field< Type2 > &intf) const
 
void addBoundaryDiag (scalarField &diag, const direction cmpt) const
 
void addCmptAvBoundaryDiag (scalarField &diag) const
 
void addBoundarySource (Field< Type > &source, const bool couples=true) const
 
template<template< class > class ListType>
void setValuesFromList (const labelUList &cells, const ListType< Type > &values)
 Set solution in given cells to the specified values. More...
 

Friends

class fvSolver
 Declare friendship with the fvSolver class. More...
 
tmp< GeometricField< Type, fvPatchField, volMesh > > operator& (const fvMatrix< Type > &, const DimensionedField< Type, volMesh > &)
 
tmp< GeometricField< Type, fvPatchField, volMesh > > operator& (const fvMatrix< Type > &, const tmp< GeometricField< Type, fvPatchField, volMesh > > &)
 
tmp< GeometricField< Type, fvPatchField, volMesh > > operator& (const tmp< fvMatrix< Type > > &, const DimensionedField< Type, volMesh > &)
 
tmp< GeometricField< Type, fvPatchField, volMesh > > operator& (const tmp< fvMatrix< Type > > &, const tmp< GeometricField< Type, fvPatchField, volMesh > > &)
 
Ostreamoperator (Ostream &, const fvMatrix< Type > &)
 

Detailed Description

template<class Type>
class Foam::fvMatrix< Type >

A special matrix type and solver, designed for finite volume solutions of scalar equations. Face addressing is used to make all matrix assembly and solution loops vectorise.

Source files

Definition at line 68 of file fvPatchField.H.

Member Typedef Documentation

Declare return type of the faceFluxCorrectionPtr() function.

Definition at line 318 of file fvMatrix.H.

Constructor & Destructor Documentation

fvMatrix ( const GeometricField< Type, fvPatchField, volMesh > &  psi,
const dimensionSet ds 
)

Construct given a field to solve for.

Definition at line 274 of file fvMatrix.C.

References GeometricField< Type, PatchField, GeoMesh >::boundaryField(), Foam::endl(), regIOobject::eventNo(), forAll, Foam::Info, and DimensionedField< Type, GeoMesh >::mesh().

Referenced by fvMatrix< Type >::fvMatrix(), fvMatrix< Type >::fvSolver::fvSolver(), and fvMatrix< Type >::setValuesFromList().

Here is the call graph for this function:

Here is the caller graph for this function:

fvMatrix ( const fvMatrix< Type > &  fvm)

Construct as copy.

Definition at line 330 of file fvMatrix.C.

References Foam::endl(), and Foam::Info.

Here is the call graph for this function:

fvMatrix ( const tmp< fvMatrix< Type > > &  tfvm)

Construct as copy of tmp<fvMatrix<Type> > deleting argument.

Definition at line 361 of file fvMatrix.C.

References Foam::endl(), fvMatrix< Type >::fvMatrix(), and Foam::Info.

Here is the call graph for this function:

fvMatrix ( const GeometricField< Type, fvPatchField, volMesh > &  psi,
Istream is 
)

Construct from Istream given field to solve for.

Definition at line 419 of file fvMatrix.C.

References Foam::endl(), forAll, Foam::Info, and DimensionedField< Type, GeoMesh >::mesh().

Here is the call graph for this function:

~fvMatrix ( )
virtual

Destructor.

Definition at line 468 of file fvMatrix.C.

References Foam::endl(), Foam::Info, and fvMatrix< Type >::setValues().

Referenced by fvMatrix< Type >::fvSolver::fvSolver().

Here is the call graph for this function:

Here is the caller graph for this function:

Member Function Documentation

void addToInternalField ( const labelUList addr,
const Field< Type2 > &  pf,
Field< Type2 > &  intf 
) const
protected

Add patch contribution to internal field.

Definition at line 38 of file fvMatrix.C.

References Foam::abort(), Foam::FatalError, FatalErrorIn, forAll, List< Type >::size(), and UList< T >::size().

Referenced by fvMatrix< Type >::DD(), and fvMatrix< Type >::H1().

Here is the call graph for this function:

Here is the caller graph for this function:

void addToInternalField ( const labelUList addr,
const tmp< Field< Type2 > > &  tpf,
Field< Type2 > &  intf 
) const
protected

Definition at line 64 of file fvMatrix.C.

References fvMatrix< Type >::subtractFromInternalField().

Here is the call graph for this function:

void subtractFromInternalField ( const labelUList addr,
const Field< Type2 > &  pf,
Field< Type2 > &  intf 
) const
protected

Subtract patch contribution from internal field.

Definition at line 78 of file fvMatrix.C.

References Foam::abort(), Foam::FatalError, FatalErrorIn, forAll, List< Type >::size(), and UList< T >::size().

Referenced by fvMatrix< Type >::addToInternalField().

Here is the call graph for this function:

Here is the caller graph for this function:

void subtractFromInternalField ( const labelUList addr,
const tmp< Field< Type2 > > &  tpf,
Field< Type2 > &  intf 
) const
protected

Definition at line 104 of file fvMatrix.C.

References fvMatrix< Type >::addBoundaryDiag().

Here is the call graph for this function:

void addBoundaryDiag ( scalarField diag,
const direction  cmpt 
) const
protected

Definition at line 117 of file fvMatrix.C.

References Foam::component(), and forAll.

Referenced by fvMatrix< Type >::H(), fvMatrix< Type >::residual(), and fvMatrix< Type >::subtractFromInternalField().

Here is the call graph for this function:

Here is the caller graph for this function:

void addCmptAvBoundaryDiag ( scalarField diag) const
protected

Definition at line 135 of file fvMatrix.C.

References fvMatrix< Type >::addBoundarySource(), Foam::cmptAv(), and forAll.

Referenced by fvMatrix< Type >::D(), and fvMatrix< Type >::H().

Here is the call graph for this function:

Here is the caller graph for this function:

void addBoundarySource ( Field< Type > &  source,
const bool  couples = true 
) const
protected

Definition at line 151 of file fvMatrix.C.

References Foam::cmptMultiply(), fvPatchField< Type >::coupled(), forAll, fvPatchField< Type >::patchNeighbourField(), and fvMatrix< Type >::setValuesFromList().

Referenced by fvMatrix< Type >::addCmptAvBoundaryDiag(), fvMatrix< Type >::H(), and fvMatrix< Type >::residual().

Here is the call graph for this function:

Here is the caller graph for this function:

void setValuesFromList ( const labelUList cells,
const ListType< Type > &  values 
)
protected

Set solution in given cells to the specified values.

Definition at line 184 of file fvMatrix.C.

References polyMesh::boundaryMesh(), Foam::constant::universal::c, cells, primitiveMesh::cells(), Foam::diag(), forAll, fvMatrix< Type >::fvMatrix(), internalField(), primitiveMesh::isInternalFace(), mesh, fvMesh::neighbour(), fvMesh::owner(), patchi, psi, and polyBoundaryMesh::whichPatch().

Referenced by fvMatrix< Type >::addBoundarySource(), and fvMatrix< Type >::setValues().

Here is the call graph for this function:

Here is the caller graph for this function:

ClassName ( "fvMatrix< Type >"  )

Referenced by fvMatrix< Type >::fvSolver::fvSolver().

Here is the caller graph for this function:

const GeometricField<Type, fvPatchField, volMesh>& psi ( ) const
inline
const dimensionSet& dimensions ( ) const
inline
Field<Type>& source ( )
inline
const Field<Type>& source ( ) const
inline

Definition at line 296 of file fvMatrix.H.

References fvMatrix< Type >::boundaryCoeffs(), and fvMatrix< Type >::internalCoeffs().

Here is the call graph for this function:

FieldField<Field, Type>& internalCoeffs ( )
inline

fvBoundary scalar field containing pseudo-matrix coeffs

for internal cells

Definition at line 303 of file fvMatrix.H.

Referenced by gaussConvectionScheme< Type >::fvmDiv(), gaussLaplacianScheme< Type, GType >::fvmLaplacianUncorrected(), and fvMatrix< Type >::source().

Here is the caller graph for this function:

FieldField<Field, Type>& boundaryCoeffs ( )
inline

fvBoundary scalar field containing pseudo-matrix coeffs

for boundary cells

Definition at line 310 of file fvMatrix.H.

Referenced by gaussConvectionScheme< Type >::fvmDiv(), gaussLaplacianScheme< Type, GType >::fvmLaplacianUncorrected(), and fvMatrix< Type >::source().

Here is the caller graph for this function:

surfaceTypeFieldPtr& faceFluxCorrectionPtr ( )
inline
void setValues ( const labelUList cells,
const UList< Type > &  values 
)

Set solution in given cells to the specified values.

and eliminate the corresponding equations from the matrix.

Definition at line 488 of file fvMatrix.C.

References fvMatrix< Type >::setValuesFromList().

Referenced by ExplicitSetValue< Type >::constrain(), fixedTemperatureConstraint::constrain(), fvMatrix< Type >::faceFluxCorrectionPtr(), fixedInternalValueFvPatchField< Type >::manipulateMatrix(), epsilonWallFunctionFvPatchScalarField::manipulateMatrix(), omegaWallFunctionFvPatchScalarField::manipulateMatrix(), and fvMatrix< Type >::~fvMatrix().

Here is the call graph for this function:

Here is the caller graph for this function:

void setValues ( const labelUList cells,
const UIndirectList< Type > &  values 
)

Set solution in given cells to the specified values.

and eliminate the corresponding equations from the matrix.

Definition at line 499 of file fvMatrix.C.

References fvMatrix< Type >::setReference(), and fvMatrix< Type >::setValuesFromList().

Here is the call graph for this function:

void setReference ( const label  celli,
const Type &  value,
const bool  forceReference = false 
)

Set reference level for solution.

Definition at line 510 of file fvMatrix.C.

References lduMatrix::diag(), and fvMatrix< Type >::source().

Referenced by Foam::CorrectPhi(), fvMatrix< Type >::faceFluxCorrectionPtr(), and fvMatrix< Type >::setValues().

Here is the call graph for this function:

Here is the caller graph for this function:

void setComponentReference ( const label  patchi,
const label  facei,
const direction  cmpt,
const scalar  value 
)

Set reference level for a component of the solution.

on a given patch face

Definition at line 33 of file fvMatrixSolve.C.

References Foam::diag(), patchi, and fvMatrix< Type >::solve().

Referenced by fvMatrix< Type >::faceFluxCorrectionPtr().

Here is the call graph for this function:

Here is the caller graph for this function:

void relax ( const scalar  alpha)
void relax ( )

Relax matrix (for steady-state solution).

alpha is read from controlDict

Definition at line 677 of file fvMatrix.C.

References fvMatrix< Type >::boundaryManipulate(), and Foam::name().

Referenced by fvMatrix< Type >::faceFluxCorrectionPtr().

Here is the call graph for this function:

Here is the caller graph for this function:

void boundaryManipulate ( typename GeometricField< Type, fvPatchField, volMesh >::GeometricBoundaryField &  values)

Manipulate based on a boundary field.

Definition at line 694 of file fvMatrix.C.

References forAll.

Referenced by fvMatrix< Type >::faceFluxCorrectionPtr(), and fvMatrix< Type >::relax().

Here is the caller graph for this function:

Construct and return the solver.

Use the given solver controls

Foam::autoPtr< typename Foam::fvMatrix< Type >::fvSolver > solver ( )

Construct and return the solver.

Solver controls read from fvSolution

Definition at line 285 of file fvMatrixSolve.C.

Referenced by fvMatrix< Type >::faceFluxCorrectionPtr(), and fvMatrix< Type >::setComponentReference().

Here is the caller graph for this function:

Foam::solverPerformance solve ( const dictionary solverControls)
Foam::solverPerformance solveSegregated ( const dictionary solverControls)
Foam::solverPerformance solveCoupled ( const dictionary solverControls)

Solve returning the solution statistics.

Solver controls read from fvSolution

Definition at line 319 of file fvMatrixSolve.C.

References fvMatrix< Type >::fvSolver::solve().

Referenced by Foam::checkMethod(), and fvMatrix< Type >::setComponentReference().

Here is the call graph for this function:

Here is the caller graph for this function:

Foam::tmp< Foam::Field< Type > > residual ( ) const

Return the matrix residual.

Definition at line 336 of file fvMatrixSolve.C.

References fvMatrix< Type >::addBoundaryDiag(), fvMatrix< Type >::addBoundarySource(), Field< Type >::component(), Field< Type >::replace(), and lduMatrix::residual().

Referenced by fvMatrix< Type >::faceFluxCorrectionPtr().

Here is the call graph for this function:

Here is the caller graph for this function:

Foam::tmp< Foam::scalarField > D ( ) const

Return the matrix scalar diagonal.

Definition at line 707 of file fvMatrix.C.

References fvMatrix< Type >::addCmptAvBoundaryDiag(), and lduMatrix::diag().

Referenced by fvMatrix< Type >::A(), fvMatrix< Type >::faceFluxCorrectionPtr(), and fvMatrix< Type >::relax().

Here is the call graph for this function:

Here is the caller graph for this function:

Foam::tmp< Foam::Field< Type > > DD ( ) const

Return the matrix Type diagonal.

Definition at line 716 of file fvMatrix.C.

References fvMatrix< Type >::addToInternalField(), fvPatchField< Type >::coupled(), lduMatrix::diag(), forAll, lduMatrix::lduAddr(), and List< Type >::size().

Referenced by fvMatrix< Type >::faceFluxCorrectionPtr().

Here is the call graph for this function:

Here is the caller graph for this function:

Return the central coefficient.

Definition at line 740 of file fvMatrix.C.

References fvMatrix< Type >::D(), Foam::dimVol, IOobject::NO_READ, and IOobject::NO_WRITE.

Referenced by Foam::checkMethod(), meanVelocityForce::constrain(), fvMatrix< Type >::faceFluxCorrectionPtr(), and kinematicSingleLayer::solveThickness().

Here is the call graph for this function:

Here is the caller graph for this function:

Return H(1)

Definition at line 835 of file fvMatrix.C.

References fvMatrix< Type >::addToInternalField(), Foam::component(), fvPatchField< Type >::coupled(), Foam::dimVol, fvMatrix< Type >::flux(), forAll, lduMatrix::H1(), lduMatrix::lduAddr(), IOobject::NO_READ, IOobject::NO_WRITE, and List< Type >::size().

Referenced by fvMatrix< Type >::faceFluxCorrectionPtr().

Here is the call graph for this function:

Here is the caller graph for this function:

void operator= ( const fvMatrix< Type > &  fvmv)

Definition at line 967 of file fvMatrix.C.

References Foam::abort(), Foam::FatalError, FatalErrorIn, and lduMatrix::operator=().

Referenced by fvMatrix< Type >::faceFluxCorrectionPtr(), and fvMatrix< Type >::operator=().

Here is the call graph for this function:

Here is the caller graph for this function:

void operator= ( const tmp< fvMatrix< Type > > &  tfvmv)

Definition at line 1003 of file fvMatrix.C.

References fvMatrix< Type >::operator=().

Here is the call graph for this function:

void negate ( )

Definition at line 1011 of file fvMatrix.C.

References lduMatrix::negate().

Referenced by fvMatrix< Type >::faceFluxCorrectionPtr().

Here is the call graph for this function:

Here is the caller graph for this function:

void operator+= ( const fvMatrix< Type > &  fvmv)

Definition at line 1026 of file fvMatrix.C.

References Foam::checkMethod(), and lduMatrix::operator+=().

Referenced by fvMatrix< Type >::faceFluxCorrectionPtr(), and fvMatrix< Type >::operator+=().

Here is the call graph for this function:

Here is the caller graph for this function:

void operator+= ( const tmp< fvMatrix< Type > > &  tfvmv)

Definition at line 1052 of file fvMatrix.C.

References fvMatrix< Type >::operator+=().

Here is the call graph for this function:

void operator-= ( const fvMatrix< Type > &  fvmv)

Definition at line 1060 of file fvMatrix.C.

References Foam::checkMethod(), and lduMatrix::operator-=().

Referenced by fvMatrix< Type >::faceFluxCorrectionPtr(), and fvMatrix< Type >::operator-=().

Here is the call graph for this function:

Here is the caller graph for this function:

void operator-= ( const tmp< fvMatrix< Type > > &  tfvmv)

Definition at line 1084 of file fvMatrix.C.

References fvMatrix< Type >::operator-=().

Here is the call graph for this function:

void operator+= ( const DimensionedField< Type, volMesh > &  su)

Definition at line 1093 of file fvMatrix.C.

References Foam::checkMethod(), and fvMatrix< Type >::source().

Here is the call graph for this function:

void operator+= ( const tmp< DimensionedField< Type, volMesh > > &  tsu)

Definition at line 1104 of file fvMatrix.C.

References fvMatrix< Type >::operator+=().

Here is the call graph for this function:

void operator+= ( const tmp< GeometricField< Type, fvPatchField, volMesh > > &  tsu)

Definition at line 1115 of file fvMatrix.C.

References fvMatrix< Type >::operator+=().

Here is the call graph for this function:

void operator-= ( const DimensionedField< Type, volMesh > &  su)

Definition at line 1126 of file fvMatrix.C.

References Foam::checkMethod(), and fvMatrix< Type >::source().

Here is the call graph for this function:

void operator-= ( const tmp< DimensionedField< Type, volMesh > > &  tsu)

Definition at line 1137 of file fvMatrix.C.

References fvMatrix< Type >::operator-=().

Here is the call graph for this function:

void operator-= ( const tmp< GeometricField< Type, fvPatchField, volMesh > > &  tsu)

Definition at line 1148 of file fvMatrix.C.

References fvMatrix< Type >::operator-=().

Here is the call graph for this function:

void operator+= ( const dimensioned< Type > &  su)

Definition at line 1159 of file fvMatrix.C.

References fvMatrix< Type >::psi(), and fvMatrix< Type >::source().

Here is the call graph for this function:

void operator-= ( const dimensioned< Type > &  su)

Definition at line 1169 of file fvMatrix.C.

References fvMatrix< Type >::psi(), and fvMatrix< Type >::source().

Here is the call graph for this function:

void operator+= ( const zero )

Definition at line 1179 of file fvMatrix.C.

void operator-= ( const zero )

Definition at line 1187 of file fvMatrix.C.

void operator*= ( const DimensionedField< scalar, volMesh > &  dsf)

Definition at line 1195 of file fvMatrix.C.

References Foam::abort(), Foam::FatalError, FatalErrorIn, forAll, and lduMatrix::operator*=().

Referenced by fvMatrix< Type >::faceFluxCorrectionPtr(), and fvMatrix< Type >::operator*=().

Here is the call graph for this function:

Here is the caller graph for this function:

void operator*= ( const tmp< DimensionedField< scalar, volMesh > > &  tdsf)

Definition at line 1228 of file fvMatrix.C.

References fvMatrix< Type >::operator*=().

Here is the call graph for this function:

void operator*= ( const tmp< volScalarField > &  tvsf)

Definition at line 1239 of file fvMatrix.C.

References fvMatrix< Type >::operator*=().

Here is the call graph for this function:

void operator*= ( const dimensioned< scalar > &  ds)

Definition at line 1250 of file fvMatrix.C.

References Foam::checkMethod(), and lduMatrix::operator*=().

Here is the call graph for this function:

void setComponentReference ( const label  patchi,
const label  facei,
const direction  ,
const scalar  value 
)

Definition at line 33 of file fvScalarMatrix.C.

References Foam::diag(), patchi, and fvMatrix< Type >::solver().

Here is the call graph for this function:

Foam::autoPtr< Foam::fvMatrix< Foam::scalar >::fvSolver > solver ( const dictionary solverControls)

Definition at line 58 of file fvScalarMatrix.C.

References Foam::diag(), Foam::endl(), Foam::Info, messageStream::masterStream(), mesh, Foam::compressible::New(), and fvMatrix< Type >::fvSolver::solve().

Here is the call graph for this function:

Foam::solverPerformance solveSegregated ( const dictionary solverControls)
Foam::tmp< Foam::scalarField > residual ( ) const

Definition at line 187 of file fvScalarMatrix.C.

Definition at line 243 of file fvScalarMatrix.C.

References Foam::dimVol.

void setComponentReference ( const label  patchi,
const label  facei,
const direction  ,
const scalar  value 
)
autoPtr< fvMatrix< scalar >::fvSolver > solver ( const dictionary )
solverPerformance solveSegregated ( const dictionary )
tmp< scalarField > residual ( ) const
tmp< volScalarField > H ( ) const
tmp< volScalarField > H1 ( ) const

Friends And Related Function Documentation

friend class fvSolver
friend

Declare friendship with the fvSolver class.

Definition at line 148 of file fvMatrix.H.

tmp<GeometricField<Type, fvPatchField, volMesh> > operator& ( const fvMatrix< Type > &  ,
const DimensionedField< Type, volMesh > &   
)
friend
tmp<GeometricField<Type, fvPatchField, volMesh> > operator& ( const fvMatrix< Type > &  ,
const tmp< GeometricField< Type, fvPatchField, volMesh > > &   
)
friend
tmp<GeometricField<Type, fvPatchField, volMesh> > operator& ( const tmp< fvMatrix< Type > > &  ,
const DimensionedField< Type, volMesh > &   
)
friend
tmp<GeometricField<Type, fvPatchField, volMesh> > operator& ( const tmp< fvMatrix< Type > > &  ,
const tmp< GeometricField< Type, fvPatchField, volMesh > > &   
)
friend
Ostream& operator ( Ostream ,
const fvMatrix< Type > &   
)
friend

The documentation for this class was generated from the following files: