|
|
|
fvMatrix< Type > Class Template ReferenceA 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 >:
![]()
Collaboration diagram for fvMatrix< Type >:
![]()
Detailed Descriptiontemplate<class 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.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| typedef GeometricField<Type, fvsPatchField, surfaceMesh>* surfaceTypeFieldPtr |
Declare return type of the faceFluxCorrectionPtr() function.
Definition at line 315 of file fvMatrix.H.
| fvMatrix | ( | GeometricField< Type, fvPatchField, volMesh > & | psi, | |
| const dimensionSet & | ds | |||
| ) | [inline] |
| fvMatrix | ( | GeometricField< Type, fvPatchField, volMesh > & | psi, | |
| Istream & | is | |||
| ) | [inline] |
Construct as copy of tmp<fvMatrix<Type> > deleting argument.
Construct from Istream given field to solve for
Definition at line 315 of file fvMatrix.C.
| ~fvMatrix | ( | ) | [inline, virtual] |
Definition at line 364 of file fvMatrix.C.
| void addToInternalField | ( | const unallocLabelList & | addr, | |
| const Field< Type2 > & | pf, | |||
| Field< Type2 > & | intf | |||
| ) | const [inline] |
Add patch contribution to internal field.
Definition at line 29 of file fvMatrix.C.
References Foam::abort(), Foam::FatalError, FatalErrorIn, forAll, UList< T >::size(), and List< Type >::size().
Referenced by fvMatrix< Type >::subtractFromInternalField().


| void addToInternalField | ( | const unallocLabelList & | addr, | |
| const tmp< Field< Type2 > > & | tpf, | |||
| Field< Type2 > & | intf | |||
| ) | const [inline] |
Definition at line 55 of file fvMatrix.C.
| void subtractFromInternalField | ( | const unallocLabelList & | addr, | |
| const Field< Type2 > & | pf, | |||
| Field< Type2 > & | intf | |||
| ) | const [inline] |
Subtract patch contribution from internal field.
Definition at line 69 of file fvMatrix.C.
References fvMatrix< Type >::addToInternalField().
Referenced by fvMatrix< Type >::addBoundaryDiag().


| void subtractFromInternalField | ( | const unallocLabelList & | addr, | |
| const tmp< Field< Type2 > > & | tpf, | |||
| Field< Type2 > & | intf | |||
| ) | const [inline] |
Definition at line 95 of file fvMatrix.C.
| void addBoundaryDiag | ( | scalarField & | diag, | |
| const direction | cmpt | |||
| ) | const [inline] |
Definition at line 108 of file fvMatrix.C.
References fvMatrix< Type >::subtractFromInternalField().

| void addCmptAvBoundaryDiag | ( | scalarField & | diag | ) | const [inline] |
Definition at line 126 of file fvMatrix.C.
Referenced by fvMatrix< Type >::DD().

Definition at line 142 of file fvMatrix.C.
| ClassName | ( | "fvMatrix< Type >" | ) |
| const GeometricField<Type, fvPatchField, volMesh>& psi | ( | ) | const [inline] |
| GeometricField<Type, fvPatchField, volMesh>& psi | ( | ) | [inline] |
| const dimensionSet& dimensions | ( | ) | const [inline] |
Definition at line 284 of file fvMatrix.H.
References fvMatrix< Type >::source_.
Referenced by porousZone::modifyDdt(), and fvMatrix< Type >::relax().

| FieldField<Field, Type>& internalCoeffs | ( | ) | [inline] |
fvBoundary scalar field containing pseudo-matrix coeffs
for internal cells
Definition at line 298 of file fvMatrix.H.
References fvMatrix< Type >::boundaryCoeffs_.
| FieldField<Field, Type>& boundaryCoeffs | ( | ) | [inline] |
fvBoundary scalar field containing pseudo-matrix coeffs
for boundary cells
Definition at line 307 of file fvMatrix.H.
References fvMatrix< Type >::faceFluxCorrectionPtr_.
| surfaceTypeFieldPtr& faceFluxCorrectionPtr | ( | ) | [inline] |
Return pointer to face-flux non-orthogonal correction field.
Definition at line 318 of file fvMatrix.H.
Set solution in given cells and eliminate corresponding.
equations from the matrix
Definition at line 386 of file fvMatrix.C.
| void setComponentReference | ( | const label | patchi, | |
| const label | facei, | |||
| const direction | cmpt, | |||
| const scalar | value | |||
| ) | [inline] |
Set reference level for a component of the solution.
on a given patch face
Definition at line 22 of file fvMatrixSolve.C.
References fvMatrix< Type >::boundaryCoeffs_, lduMatrix::diag(), fvMatrix< Type >::internalCoeffs_, Pstream::master(), DimensionedField< Type, GeoMesh >::mesh(), GeometricField< Type, PatchField, GeoMesh >::needReference(), and fvMatrix< Type >::psi_.

| void relax | ( | const scalar | alpha | ) | [inline] |
Relax matrix (for steady-state solution).
alpha = 1 : diagonally equal alpha < 1 : diagonally dominant alpha = 0 : do nothing
Definition at line 483 of file fvMatrix.C.
References lduMatrix::diag(), and fvMatrix< Type >::source().

| void relax | ( | ) | [inline] |
Relax matrix (for steady-state solution).
alpha is read from controlDict
Definition at line 573 of file fvMatrix.C.
Referenced by fvMatrix< Type >::boundaryManipulate().

| void boundaryManipulate | ( | typename GeometricField< Type, fvPatchField, volMesh >::GeometricBoundaryField & | values | ) | [inline] |
Manipulate based on a boundary field.
Definition at line 584 of file fvMatrix.C.
References DimensionedField< Type, GeoMesh >::mesh(), IOobject::name(), fvMatrix< Type >::psi_, and fvMatrix< Type >::relax().

| autoPtr<fvSolver> solver | ( | const dictionary & | ) |
Construct and return the solver.
Use the given solver controls
| Foam::autoPtr< typename Foam::fvMatrix< Type >::fvSolver > solver | ( | ) | [inline] |
Construct and return the solver.
Solver controls read from fvSolution
Definition at line 162 of file fvMatrixSolve.C.
Referenced by fvSolver::solve().

| Foam::lduMatrix::solverPerformance solve | ( | const dictionary & | solverControls | ) | [inline] |
Solve returning the solution statistics.
Use the given solver controls
Definition at line 46 of file fvMatrixSolve.C.
Referenced by Foam::solve().

| Foam::lduMatrix::solverPerformance solve | ( | ) | [inline] |
Solve returning the solution statistics.
Solver controls read from fvSolution
Definition at line 175 of file fvMatrixSolve.C.
References DimensionedField< Type, GeoMesh >::mesh(), IOobject::name(), and fvMatrix< Type >::psi_.
Referenced by fvMatrix< Type >::residual().


| Foam::tmp< Foam::Field< Type > > residual | ( | ) | const [inline] |
Return the matrix residual.
Definition at line 182 of file fvMatrixSolve.C.
References DimensionedField< Type, GeoMesh >::mesh(), IOobject::name(), fvMatrix< Type >::psi_, and fvMatrix< Type >::solve().

| Foam::tmp< Foam::scalarField > D | ( | ) | const [inline] |
| Foam::tmp< Foam::Field< Type > > DD | ( | ) | const [inline] |
Return the matrix Type diagonal.
Definition at line 606 of file fvMatrix.C.
References fvMatrix< Type >::addCmptAvBoundaryDiag(), and lduMatrix::diag().

| Foam::tmp< Foam::volScalarField > A | ( | ) | const [inline] |
| Foam::tmp< Foam::GeometricField< Type, Foam::fvPatchField, Foam::volMesh > > H | ( | ) | const [inline] |
| Foam::tmp< Foam::volScalarField > H1 | ( | ) | const [inline] |
| Foam::tmp< Foam::GeometricField< Type, Foam::fvsPatchField, Foam::surfaceMesh > > flux | ( | ) | const [inline] |
Definition at line 859 of file fvMatrix.C.
Referenced by fvMatrix< Type >::negate().

| void negate | ( | ) | [inline] |
Reimplemented from lduMatrix.
Definition at line 902 of file fvMatrix.C.
References fvMatrix< Type >::operator=().

Definition at line 917 of file fvMatrix.C.
References fvMatrix< Type >::faceFluxCorrectionPtr_, and GeometricField< Type, PatchField, GeoMesh >::negate().
Referenced by fvMatrix< Type >::operator-=().


Definition at line 943 of file fvMatrix.C.
Definition at line 951 of file fvMatrix.C.
References fvMatrix< Type >::operator+=().
Referenced by fvMatrix< Type >::operator+=().


| void operator+= | ( | const DimensionedField< Type, volMesh > & | su | ) | [inline] |
Definition at line 984 of file fvMatrix.C.
References fvMatrix< Type >::operator-=().

| void operator+= | ( | const tmp< DimensionedField< Type, volMesh > > & | tsu | ) | [inline] |
Definition at line 995 of file fvMatrix.C.
References Foam::checkMethod().

| void operator+= | ( | const tmp< GeometricField< Type, fvPatchField, volMesh > > & | tsu | ) | [inline] |
Definition at line 1006 of file fvMatrix.C.
| void operator-= | ( | const DimensionedField< Type, volMesh > & | su | ) | [inline] |
Definition at line 1017 of file fvMatrix.C.
| void operator-= | ( | const tmp< DimensionedField< Type, volMesh > > & | tsu | ) | [inline] |
Definition at line 1028 of file fvMatrix.C.
References Foam::checkMethod().

| void operator-= | ( | const tmp< GeometricField< Type, fvPatchField, volMesh > > & | tsu | ) | [inline] |
Definition at line 1039 of file fvMatrix.C.
| void operator+= | ( | const dimensioned< Type > & | su | ) | [inline] |
Definition at line 1050 of file fvMatrix.C.
| void operator-= | ( | const dimensioned< Type > & | su | ) | [inline] |
Definition at line 1060 of file fvMatrix.C.
References DimensionedField< Type, GeoMesh >::mesh(), and psi.

| void operator+= | ( | const zeroField & | ) | [inline] |
Definition at line 1070 of file fvMatrix.C.
References DimensionedField< Type, GeoMesh >::mesh(), and psi.

| void operator-= | ( | const zeroField & | ) | [inline] |
Definition at line 1078 of file fvMatrix.C.
| void operator*= | ( | const DimensionedField< scalar, volMesh > & | dsf | ) | [inline] |
Definition at line 1086 of file fvMatrix.C.
| void operator*= | ( | const tmp< DimensionedField< scalar, volMesh > > & | tdsf | ) | [inline] |
Definition at line 1119 of file fvMatrix.C.
| void operator*= | ( | const tmp< volScalarField > & | tvsf | ) | [inline] |
Definition at line 1130 of file fvMatrix.C.
| void operator*= | ( | const dimensioned< scalar > & | ds | ) | [inline] |
Definition at line 1141 of file fvMatrix.C.
| void setComponentReference | ( | const label | patchi, | |
| const label | facei, | |||
| const | direction, | |||
| const scalar | value | |||
| ) | [inline] |
Definition at line 25 of file fvScalarMatrix.C.
References fvMatrix< Type >::boundaryCoeffs_, lduMatrix::diag(), fvMatrix< Type >::internalCoeffs_, Pstream::master(), DimensionedField< Type, GeoMesh >::mesh(), GeometricField< Type, PatchField, GeoMesh >::needReference(), and fvMatrix< Type >::psi_.

| Foam::autoPtr< Foam::fvMatrix< Foam::scalar >::fvSolver > solver | ( | const dictionary & | solverControls | ) | [inline] |
Definition at line 50 of file fvScalarMatrix.C.
| Foam::lduMatrix::solverPerformance solve | ( | const dictionary & | solverControls | ) | [inline] |
Definition at line 117 of file fvScalarMatrix.C.
| Foam::tmp< Foam::scalarField > residual | ( | ) | const [inline] |
Definition at line 156 of file fvScalarMatrix.C.
| Foam::tmp< Foam::volScalarField > H | ( | ) | const [inline] |
Definition at line 180 of file fvScalarMatrix.C.
| Foam::tmp< Foam::volScalarField > H1 | ( | ) | const [inline] |
| void setComponentReference | ( | const label | patchi, | |
| const label | facei, | |||
| const | direction, | |||
| const scalar | value | |||
| ) | [inline] |
| lduMatrix::solverPerformance solve | ( | const dictionary & | ) | [inline] |
| tmp< scalarField > residual | ( | ) | const [inline] |
| tmp< volScalarField > H | ( | ) | const [inline] |
| tmp< volScalarField > H1 | ( | ) | const [inline] |
Reimplemented from lduMatrix.
| 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] |
Definition at line 115 of file fvMatrix.H.
Referenced by fvMatrix< Type >::boundaryManipulate(), fvMatrix< Type >::psi(), fvMatrix< Type >::residual(), fvMatrix< Type >::setComponentReference(), fvMatrix< Type >::solve(), and fvSolver::solve().
Source term.
Definition at line 121 of file fvMatrix.H.
Referenced by fvMatrix< Type >::dimensions(), and fvMatrix< Type >::source().
Boundary scalar field containing pseudo-matrix coeffs.
for internal cells
Definition at line 127 of file fvMatrix.H.
Referenced by fvMatrix< Type >::setComponentReference(), and fvMatrix< Type >::source().
Boundary scalar field containing pseudo-matrix coeffs.
for boundary cells
Definition at line 133 of file fvMatrix.H.
Referenced by fvMatrix< Type >::internalCoeffs(), and fvMatrix< Type >::setComponentReference().
GeometricField<Type, fvsPatchField, surfaceMesh>* faceFluxCorrectionPtr_ [mutable] |
Face flux field for non-orthogonal correction.
Definition at line 138 of file fvMatrix.H.
Referenced by fvMatrix< Type >::boundaryCoeffs(), fvMatrix< Type >::operator+=(), fvMatrix< Type >::operator-=(), and fvMatrix< Type >::operator=().