A special matrix type and solver, designed for finite area solutions of scalar equations. Face addressing is used to make all matrix assembly and solution loops vectorise. More...
Classes | |
class | faSolver |
Public Types | |
typedef GeometricField< Type, faPatchField, areaMesh > | psiFieldType |
The geometric field type for psi. More... | |
typedef GeometricField< Type, faePatchField, edgeMesh > | faceFluxFieldType |
Field type for face flux (for non-orthogonal correction) More... | |
typedef GeometricField< Type, faePatchField, edgeMesh > * | faceFluxFieldPtrType |
Declare return type of the faceFluxCorrectionPtr() function. More... | |
Public Member Functions | |
ClassName ("faMatrix") | |
faMatrix (const GeometricField< Type, faPatchField, areaMesh > &psi, const dimensionSet &ds) | |
Construct given a field to solve for. More... | |
faMatrix (const faMatrix< Type > &) | |
Copy construct. More... | |
faMatrix (const tmp< faMatrix< Type > > &) | |
Copy/move construct from tmp<faMatrix<Type>> More... | |
faMatrix (const GeometricField< Type, faPatchField, areaMesh > &psi, Istream &is) | |
Deprecated(2022-05) - construct with dimensionSet instead. More... | |
tmp< faMatrix< Type > > | clone () const |
Construct and return a clone. More... | |
virtual | ~faMatrix () |
Destructor. More... | |
const GeometricField< Type, faPatchField, areaMesh > & | psi () const |
const dimensionSet & | dimensions () const noexcept |
Field< Type > & | source () noexcept |
const Field< Type > & | source () const noexcept |
const FieldField< Field, Type > & | internalCoeffs () const noexcept |
FieldField< Field, Type > & | internalCoeffs () noexcept |
const FieldField< Field, Type > & | boundaryCoeffs () const noexcept |
FieldField< Field, Type > & | boundaryCoeffs () noexcept |
faceFluxFieldPtrType & | faceFluxCorrectionPtr () |
Return pointer to face-flux non-orthogonal correction field. More... | |
bool | hasFaceFluxCorrection () const noexcept |
True if face-flux non-orthogonal correction field exists. More... | |
void | setValues (const labelUList &faceLabels, const Type &value) |
void | setValues (const labelUList &faceLabels, const UList< Type > &values) |
void | setValues (const labelUList &faceLabels, const UIndirectList< Type > &values) |
void | setReference (const label facei, const Type &value, const bool forceReference=false) |
Set reference level for solution. More... | |
void | setReferences (const labelUList &faceLabels, const Type &value, const bool forceReference=false) |
Set reference level for solution. More... | |
void | setReferences (const labelUList &faceLabels, const UList< Type > &values, const bool forceReference=false) |
Set reference level for solution. More... | |
void | setComponentReference (const label patchi, const label facei, const direction cmpt, const scalar value) |
void | relax (const scalar alpha) |
Relax matrix (for steady-state solution). More... | |
void | relax () |
Relax matrix (for steady-state solution). More... | |
SolverPerformance< Type > | solve (const dictionary &) |
Solve returning the solution statistics. More... | |
SolverPerformance< Type > | solve () |
Solve returning the solution statistics. More... | |
tmp< Field< Type > > | residual () const |
Return the matrix residual. More... | |
tmp< scalarField > | D () const |
Return the matrix diagonal. More... | |
tmp< areaScalarField > | A () const |
Return the central coefficient. More... | |
tmp< GeometricField< Type, faPatchField, areaMesh > > | H () const |
Return the H operation source. More... | |
tmp< GeometricField< Type, faePatchField, edgeMesh > > | flux () const |
Return the face-flux field from the matrix. More... | |
void | operator= (const faMatrix< Type > &) |
void | operator= (const tmp< faMatrix< Type > > &) |
void | negate () |
Inplace negate. More... | |
void | operator+= (const faMatrix< Type > &) |
void | operator+= (const tmp< faMatrix< Type > > &) |
void | operator-= (const faMatrix< Type > &) |
void | operator-= (const tmp< faMatrix< Type > > &) |
void | operator+= (const DimensionedField< Type, areaMesh > &) |
void | operator+= (const tmp< DimensionedField< Type, areaMesh > > &) |
void | operator+= (const tmp< GeometricField< Type, faPatchField, areaMesh > > &) |
void | operator-= (const DimensionedField< Type, areaMesh > &) |
void | operator-= (const tmp< DimensionedField< Type, areaMesh > > &) |
void | operator-= (const tmp< GeometricField< Type, faPatchField, areaMesh > > &) |
void | operator+= (const dimensioned< Type > &) |
void | operator-= (const dimensioned< Type > &) |
void | operator+= (const Foam::zero) |
void | operator-= (const Foam::zero) |
void | operator*= (const areaScalarField::Internal &) |
void | operator*= (const tmp< areaScalarField::Internal > &) |
void | operator*= (const tmp< areaScalarField > &) |
void | operator*= (const dimensioned< scalar > &) |
void | setComponentReference (const label patchI, const label edgeI, const direction, const scalar value) |
Foam::solverPerformance | solve (const dictionary &solverControls) |
Foam::tmp< Foam::scalarField > | residual () const |
Foam::tmp< Foam::areaScalarField > | H () const |
void | setComponentReference (const label patchi, const label facei, const direction, const scalar value) |
SolverPerformance< scalar > | solve (const dictionary &) |
tmp< scalarField > | residual () const |
tmp< areaScalarField > | H () const |
Public Member Functions inherited from refCount | |
constexpr | refCount () noexcept |
Default construct, initializing count to 0. More... | |
int | count () const noexcept |
Return the current reference count. More... | |
bool | unique () const noexcept |
Return true if the reference count is zero. More... | |
void | operator++ () noexcept |
Increment the reference count. More... | |
void | operator++ (int) noexcept |
Increment the reference count. More... | |
void | operator-- () noexcept |
Decrement the reference count. More... | |
void | operator-- (int) noexcept |
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 &) | |
~lduMatrix () | |
Destructor. More... | |
const lduMesh & | mesh () const |
Return the LDU mesh from which the addressing is obtained. More... | |
void | setLduMesh (const lduMesh &m) |
Set the LDU mesh containing the addressing is obtained. More... | |
const lduAddressing & | lduAddr () const |
Return the LDU addressing. More... | |
const lduSchedule & | patchSchedule () const |
Return the patch evaluation schedule. More... | |
scalarField & | lower () |
scalarField & | diag () |
scalarField & | upper () |
scalarField & | lower (const label size) |
scalarField & | diag (const label nCoeffs) |
scalarField & | upper (const label nCoeffs) |
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 (solveScalarField &, const tmp< solveScalarField > &, const FieldField< Field, scalar > &, const lduInterfaceFieldPtrsList &, const direction cmpt) const |
Matrix multiplication with updated interfaces. More... | |
void | Tmul (solveScalarField &, const tmp< solveScalarField > &, const FieldField< Field, scalar > &, const lduInterfaceFieldPtrsList &, const direction cmpt) const |
Matrix transpose multiplication with updated interfaces. More... | |
void | sumA (solveScalarField &, const FieldField< Field, scalar > &, const lduInterfaceFieldPtrsList &) const |
Sum the coefficients on each row of the matrix. More... | |
void | residual (solveScalarField &rA, const solveScalarField &psi, const scalarField &source, const FieldField< Field, scalar > &interfaceBouCoeffs, const lduInterfaceFieldPtrsList &interfaces, const direction cmpt) const |
tmp< solveScalarField > | residual (const solveScalarField &psi, const scalarField &source, const FieldField< Field, scalar > &interfaceBouCoeffs, const lduInterfaceFieldPtrsList &interfaces, const direction cmpt) const |
void | initMatrixInterfaces (const bool add, const FieldField< Field, scalar > &interfaceCoeffs, const lduInterfaceFieldPtrsList &interfaces, const solveScalarField &psiif, solveScalarField &result, const direction cmpt) const |
void | updateMatrixInterfaces (const bool add, const FieldField< Field, scalar > &interfaceCoeffs, const lduInterfaceFieldPtrsList &interfaces, const solveScalarField &psiif, solveScalarField &result, const direction cmpt, const label startRequest) const |
Update interfaced interfaces for matrix operations. More... | |
void | setResidualField (const scalarField &residual, const word &fieldName, const bool initial) const |
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 |
InfoProxy< lduMatrix > | info () 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 &faceLabels, const ListType< Type > &values) |
Set solution in given faces to the specified values. More... | |
Friends | |
class | faSolver |
Declare friendship with the faSolver class. More... | |
Ostream & | operator (Ostream &, const faMatrix< Type > &) |
A special matrix type and solver, designed for finite area solutions of scalar equations. Face addressing is used to make all matrix assembly and solution loops vectorise.
Finite-Area matrix.
Author Zeljko Tukovic, FMENA Hrvoje Jasak, Wikki Ltd.
Definition at line 72 of file faMatrix.H.
typedef GeometricField<Type, faPatchField, areaMesh> psiFieldType |
The geometric field type for psi.
Definition at line 84 of file faMatrix.H.
typedef GeometricField<Type, faePatchField, edgeMesh> faceFluxFieldType |
Field type for face flux (for non-orthogonal correction)
Definition at line 89 of file faMatrix.H.
typedef GeometricField<Type, faePatchField, edgeMesh>* faceFluxFieldPtrType |
Declare return type of the faceFluxCorrectionPtr() function.
Definition at line 320 of file faMatrix.H.
faMatrix | ( | const GeometricField< Type, faPatchField, areaMesh > & | psi, |
const dimensionSet & | ds | ||
) |
Construct given a field to solve for.
Definition at line 184 of file faMatrix.C.
References DebugInFunction, Foam::endl(), regIOobject::eventNo(), forAll, IOobject::name(), faMatrix< Type >::psi(), and Foam::Zero.
Copy construct.
Definition at line 229 of file faMatrix.C.
References DebugInFunction, Foam::endl(), and IOobject::name().
Copy/move construct from tmp<faMatrix<Type>>
Definition at line 254 of file faMatrix.C.
References DebugInFunction, Foam::endl(), and IOobject::name().
|
inline |
Deprecated(2022-05) - construct with dimensionSet instead.
Definition at line 246 of file faMatrix.H.
|
virtual |
Destructor.
Definition at line 291 of file faMatrix.C.
References DebugInFunction, Foam::deleteDemandDrivenData(), and Foam::endl().
|
protected |
Add patch contribution to internal field.
Definition at line 41 of file faMatrix.C.
References Foam::abort(), Foam::endl(), Foam::FatalError, FatalErrorInFunction, forAll, and UList< T >::size().
|
protected |
Definition at line 65 of file faMatrix.C.
|
protected |
Subtract patch contribution from internal field.
Definition at line 79 of file faMatrix.C.
References Foam::abort(), Foam::endl(), Foam::FatalError, FatalErrorInFunction, forAll, and UList< T >::size().
|
protected |
Definition at line 103 of file faMatrix.C.
|
protected |
Definition at line 116 of file faMatrix.C.
References Foam::component(), Foam::diag(), and forAll.
Referenced by faMatrix< Type >::residual().
|
protected |
Definition at line 135 of file faMatrix.C.
References Foam::cmptAv(), Foam::diag(), and forAll.
Definition at line 150 of file faMatrix.C.
References Foam::cmptMultiply(), faPatchField< Type >::coupled(), forAll, and faPatchField< Type >::patchNeighbourField().
Referenced by faMatrix< Type >::residual().
|
protected |
Set solution in given faces to the specified values.
Definition at line 304 of file faMatrix.C.
References fvMesh::boundary(), Foam::diag(), primitiveMesh::faceEdges(), forAll, mesh, fvMesh::neighbour(), fvMesh::owner(), primitiveFieldRef(), psi, and Foam::Zero.
ClassName | ( | "faMatrix< Type >" | ) |
Construct and return a clone.
Definition at line 256 of file faMatrix.H.
References Foam::New().
|
inline |
Definition at line 270 of file faMatrix.H.
Referenced by contactHeatFluxSource::addSup(), externalHeatFluxSource::addSup(), jouleHeatingSource::addSup(), externalFileSource::addSup(), Foam::checkMethod(), optionList::constrain(), faMatrix< Type >::faMatrix(), and faMatrix< Type >::solve().
|
inlinenoexcept |
Definition at line 275 of file faMatrix.H.
Referenced by Foam::checkMethod(), and faMatrix< Type >::operator*=().
|
inlinenoexcept |
Definition at line 280 of file faMatrix.H.
|
inlinenoexcept |
Definition at line 285 of file faMatrix.H.
|
inlinenoexcept |
faBoundary scalar field containing pseudo-matrix coeffs for internal cells
Definition at line 292 of file faMatrix.H.
|
inlinenoexcept |
faBoundary scalar field containing pseudo-matrix coeffs for internal cells
Definition at line 299 of file faMatrix.H.
|
inlinenoexcept |
faBoundary scalar field containing pseudo-matrix coeffs for boundary cells
Definition at line 306 of file faMatrix.H.
|
inlinenoexcept |
faBoundary scalar field containing pseudo-matrix coeffs for boundary cells
Definition at line 313 of file faMatrix.H.
|
inline |
Return pointer to face-flux non-orthogonal correction field.
Definition at line 323 of file faMatrix.H.
Referenced by gaussLaplacianScheme< Type >::famLaplacian().
|
inlinenoexcept |
True if face-flux non-orthogonal correction field exists.
Definition at line 329 of file faMatrix.H.
References bool.
void setValues | ( | const labelUList & | faceLabels, |
const Type & | value | ||
) |
Set solution in given faces to the specified value and eliminate the corresponding equations from the matrix.
Definition at line 393 of file faMatrix.C.
void setValues | ( | const labelUList & | faceLabels, |
const UList< Type > & | values | ||
) |
Set solution in given faces to the specified values and eliminate the corresponding equations from the matrix.
Definition at line 404 of file faMatrix.C.
void setValues | ( | const labelUList & | faceLabels, |
const UIndirectList< Type > & | values | ||
) |
Set solution in given faces to the specified values and eliminate the corresponding equations from the matrix.
Definition at line 415 of file faMatrix.C.
void setReference | ( | const label | facei, |
const Type & | value, | ||
const bool | forceReference = false |
||
) |
Set reference level for solution.
Definition at line 426 of file faMatrix.C.
References Foam::diag(), and splitCell::master().
void setReferences | ( | const labelUList & | faceLabels, |
const Type & | value, | ||
const bool | forceReference = false |
||
) |
Set reference level for solution.
Definition at line 445 of file faMatrix.C.
References Foam::diag(), faceId(), and forAll.
void setReferences | ( | const labelUList & | faceLabels, |
const UList< Type > & | values, | ||
const bool | forceReference = false |
||
) |
Set reference level for solution.
Definition at line 468 of file faMatrix.C.
References Foam::diag(), faceId(), and forAll.
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 37 of file faMatrixSolve.C.
References Foam::diag().
void relax | ( | const scalar | alpha | ) |
Relax matrix (for steady-state solution).
alpha = 1 : diagonally equal alpha < 1 : ,, dominant alpha = 0 : do nothing Note: Requires positive diagonal.
Definition at line 491 of file faMatrix.C.
References alpha, Foam::cmptMag(), Foam::cmptMin(), Foam::cmptMultiply(), Foam::component(), faPatchField< Type >::coupled(), D, Foam::diag(), forAll, Foam::mag(), Foam::max(), UList< T >::size(), and Foam::Zero.
Referenced by jouleHeatingSource::addSup(), kinematicThinFilm::evolveRegion(), and sensitivitySurface::smoothSensitivities().
void relax |
Relax matrix (for steady-state solution).
alpha is read from controlDict
Definition at line 581 of file faMatrix.C.
References DebugInFunction, Foam::endl(), and relax().
Foam::SolverPerformance< Type > solve | ( | const dictionary & | solverControls | ) |
Solve returning the solution statistics.
Use the given solver controls
Definition at line 54 of file faMatrixSolve.C.
References Field< Type >::component(), DebugInFunction, Foam::diag(), Foam::endl(), dictionary::getOrDefault(), Foam::Info, pTraits< bool >::nComponents, SolverPerformance< Type >::print(), psi, refPtr< T >::ref(), GeometricField< Type, PatchField, GeoMesh >::replace(), and SolverPerformance< Type >::solverName().
Referenced by jouleHeatingSource::addSup(), kinematicThinFilm::evolveRegion(), sensitivitySurface::smoothSensitivities(), and KirchhoffShell::solveDisplacement().
Foam::SolverPerformance< Type > solve |
Solve returning the solution statistics.
Solver controls read from faSolution
Definition at line 179 of file faMatrixSolve.C.
References lduMatrix::mesh(), Foam::name(), faMatrix< Type >::psi(), and faMatrix< Type >::solve().
Referenced by faMatrix< Type >::solve().
Foam::tmp< Foam::Field< Type > > residual |
Return the matrix residual.
Definition at line 186 of file faMatrixSolve.C.
References faMatrix< Type >::addBoundaryDiag(), faMatrix< Type >::addBoundarySource(), GeometricField< Type, PatchField, GeoMesh >::boundaryField(), DimensionedField< Type, GeoMesh >::component(), Field< Type >::component(), GeometricField< Type, PatchField, GeoMesh >::internalField(), tmp< T >::ref(), Field< Type >::replace(), faMatrix< Type >::residual(), GeometricBoundaryField< Type, PatchField, GeoMesh >::scalarInterfaces(), UList< T >::size(), and Foam::Zero.
Referenced by faMatrix< Type >::residual(), and fvMatrix< Type >::residual().
Return the matrix diagonal.
Definition at line 597 of file faMatrix.C.
References Foam::diag(), and tmp< T >::ref().
Return the central coefficient.
Definition at line 606 of file faMatrix.C.
References D, Foam::dimArea, and tmp< T >::ref().
Referenced by kinematicThinFilm::evolveRegion().
Foam::tmp< Foam::GeometricField< Type, Foam::faPatchField, Foam::areaMesh > > H |
Return the H operation source.
Definition at line 633 of file faMatrix.C.
References GeometricField< Type, PatchField, GeoMesh >::correctBoundaryConditions(), Foam::dimArea, faMatrix< Type >::H(), Field< Type >::negate(), GeometricField< Type, PatchField, GeoMesh >::primitiveFieldRef(), tmp< T >::ref(), Field< Type >::replace(), and Foam::Zero.
Referenced by kinematicThinFilm::evolveRegion(), faMatrix< Type >::H(), and fvMatrix< Type >::H().
Foam::tmp< Foam::GeometricField< Type, Foam::faePatchField, Foam::edgeMesh > > flux |
Return the face-flux field from the matrix.
Definition at line 677 of file faMatrix.C.
References Foam::abort(), GeometricField< Type, PatchField, GeoMesh >::boundaryField(), GeometricField< Type, PatchField, GeoMesh >::boundaryFieldRef(), Foam::cmptMultiply(), lduMatrix::faceH(), Foam::FatalError, FatalErrorInFunction, forAll, GeometricField< Type, PatchField, GeoMesh >::primitiveFieldRef(), tmp< T >::ref(), and Field< Type >::replace().
Referenced by kinematicThinFilm::evolveRegion().
Definition at line 759 of file faMatrix.C.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, and lduMatrix::operator=().
Definition at line 792 of file faMatrix.C.
void negate |
Inplace negate.
Definition at line 800 of file faMatrix.C.
References lduMatrix::negate().
Definition at line 815 of file faMatrix.C.
References Foam::checkMethod(), and lduMatrix::operator+=().
Referenced by eConstThermo< EquationOfState >::operator+=().
Definition at line 841 of file faMatrix.C.
Definition at line 849 of file faMatrix.C.
References Foam::checkMethod(), and lduMatrix::operator-=().
Definition at line 873 of file faMatrix.C.
void operator+= | ( | const DimensionedField< Type, areaMesh > & | su | ) |
Definition at line 881 of file faMatrix.C.
References Foam::checkMethod().
void operator+= | ( | const tmp< DimensionedField< Type, areaMesh > > & | tsu | ) |
Definition at line 892 of file faMatrix.C.
void operator+= | ( | const tmp< GeometricField< Type, faPatchField, areaMesh > > & | tsu | ) |
Definition at line 903 of file faMatrix.C.
void operator-= | ( | const DimensionedField< Type, areaMesh > & | su | ) |
Definition at line 914 of file faMatrix.C.
References Foam::checkMethod().
void operator-= | ( | const tmp< DimensionedField< Type, areaMesh > > & | tsu | ) |
Definition at line 925 of file faMatrix.C.
void operator-= | ( | const tmp< GeometricField< Type, faPatchField, areaMesh > > & | tsu | ) |
Definition at line 936 of file faMatrix.C.
void operator+= | ( | const dimensioned< Type > & | su | ) |
Definition at line 947 of file faMatrix.C.
References DimensionedField< Type, GeoMesh >::mesh(), and psi.
void operator-= | ( | const dimensioned< Type > & | su | ) |
Definition at line 957 of file faMatrix.C.
References DimensionedField< Type, GeoMesh >::mesh(), and psi.
void operator+= | ( | const Foam::zero | ) |
Definition at line 967 of file faMatrix.C.
void operator-= | ( | const Foam::zero | ) |
Definition at line 972 of file faMatrix.C.
void operator*= | ( | const areaScalarField::Internal & | dsf | ) |
Definition at line 977 of file faMatrix.C.
References Foam::abort(), faMatrix< Type >::dimensions(), Foam::FatalError, FatalErrorInFunction, forAll, and lduMatrix::operator*=().
void operator*= | ( | const tmp< areaScalarField::Internal > & | tfld | ) |
Definition at line 1006 of file faMatrix.C.
void operator*= | ( | const tmp< areaScalarField > & | tfld | ) |
Definition at line 1017 of file faMatrix.C.
void operator*= | ( | const dimensioned< scalar > & | ds | ) |
Definition at line 1028 of file faMatrix.C.
References faMatrix< Type >::dimensions(), and lduMatrix::operator*=().
void setComponentReference | ( | const label | patchI, |
const label | edgeI, | ||
const | direction, | ||
const scalar | value | ||
) |
Definition at line 39 of file faScalarMatrix.C.
References Foam::diag().
Foam::solverPerformance solve | ( | const dictionary & | solverControls | ) |
Definition at line 56 of file faScalarMatrix.C.
References DebugInFunction, Foam::diag(), Foam::endl(), dictionary::getOrDefault(), Foam::Info, SolverPerformance< Type >::print(), and psi.
Foam::tmp< Foam::scalarField > residual | ( | ) | const |
Definition at line 108 of file faScalarMatrix.C.
References psi, and refPtr< T >::ref().
Foam::tmp< Foam::areaScalarField > H | ( | ) | const |
Definition at line 137 of file faScalarMatrix.C.
References GeometricField< Type, PatchField, GeoMesh >::correctBoundaryConditions(), Foam::dimArea, DimensionedField< Type, GeoMesh >::mesh(), GeometricField< Type, PatchField, GeoMesh >::primitiveFieldRef(), tmp< T >::ref(), and GeometricField< Type, PatchField, GeoMesh >::ref().
void setComponentReference | ( | const label | patchi, |
const label | facei, | ||
const | direction, | ||
const scalar | value | ||
) |
SolverPerformance< scalar > solve | ( | const dictionary & | ) |
tmp< scalarField > residual | ( | ) | const |
tmp< areaScalarField > H | ( | ) | const |
|
friend |
Declare friendship with the faSolver class.
Definition at line 123 of file faMatrix.H.