Go to the documentation of this file.
100 *faceFluxCorrectionPtr_;
106 template<
class Type2>
107 void addToInternalField
114 template<
class Type2>
115 void addToInternalField
123 template<
class Type2>
124 void subtractFromInternalField
131 template<
class Type2>
132 void subtractFromInternalField
150 void addBoundarySource
153 const bool couples =
true
173 solver_(std::move(sol))
247 return internalCoeffs_;
254 return boundaryCoeffs_;
265 return faceFluxCorrectionPtr_;
360 friend Ostream& operator<< <Type>
373 const faMatrix<Type>&,
374 const faMatrix<Type>&,
381 const faMatrix<Type>&,
382 const GeometricField<Type, faPatchField, areaMesh>&,
389 const faMatrix<Type>&,
390 const dimensioned<Type>&,
398 SolverPerformance<Type>
solve(faMatrix<Type>&, Istream&);
405 SolverPerformance<Type>
solve(
const tmp<faMatrix<Type>>&, Istream&);
411 SolverPerformance<Type>
solve(faMatrix<Type>&);
418 SolverPerformance<Type>
solve(
const tmp<faMatrix<Type>>&);
424 tmp<faMatrix<Type>>
operator-
426 const faMatrix<Type>&
430 tmp<faMatrix<Type>>
operator-
432 const tmp<faMatrix<Type>>&
436 tmp<faMatrix<Type>>
operator+
438 const faMatrix<Type>&,
439 const faMatrix<Type>&
443 tmp<faMatrix<Type>>
operator+
445 const tmp<faMatrix<Type>>&,
446 const faMatrix<Type>&
450 tmp<faMatrix<Type>>
operator+
452 const faMatrix<Type>&,
453 const tmp<faMatrix<Type>>&
457 tmp<faMatrix<Type>>
operator+
459 const tmp<faMatrix<Type>>&,
460 const tmp<faMatrix<Type>>&
464 tmp<faMatrix<Type>>
operator-
466 const faMatrix<Type>&,
467 const faMatrix<Type>&
471 tmp<faMatrix<Type>>
operator-
473 const tmp<faMatrix<Type>>&,
474 const faMatrix<Type>&
478 tmp<faMatrix<Type>>
operator-
480 const faMatrix<Type>&,
481 const tmp<faMatrix<Type>>&
485 tmp<faMatrix<Type>>
operator-
487 const tmp<faMatrix<Type>>&,
488 const tmp<faMatrix<Type>>&
492 tmp<faMatrix<Type>>
operator==
494 const faMatrix<Type>&,
495 const faMatrix<Type>&
499 tmp<faMatrix<Type>>
operator==
501 const tmp<faMatrix<Type>>&,
502 const faMatrix<Type>&
506 tmp<faMatrix<Type>>
operator==
508 const faMatrix<Type>&,
509 const tmp<faMatrix<Type>>&
513 tmp<faMatrix<Type>>
operator==
515 const tmp<faMatrix<Type>>&,
516 const tmp<faMatrix<Type>>&
520 tmp<faMatrix<Type>>
operator+
522 const faMatrix<Type>&,
523 const GeometricField<Type, faPatchField, areaMesh>&
527 tmp<faMatrix<Type>>
operator+
529 const tmp<faMatrix<Type>>&,
530 const GeometricField<Type, faPatchField, areaMesh>&
534 tmp<faMatrix<Type>>
operator+
536 const faMatrix<Type>&,
537 const tmp<GeometricField<Type, faPatchField, areaMesh>>&
541 tmp<faMatrix<Type>>
operator+
543 const tmp<faMatrix<Type>>&,
544 const tmp<GeometricField<Type, faPatchField, areaMesh>>&
548 tmp<faMatrix<Type>>
operator+
550 const GeometricField<Type, faPatchField, areaMesh>&,
551 const faMatrix<Type>&
555 tmp<faMatrix<Type>>
operator+
557 const GeometricField<Type, faPatchField, areaMesh>&,
558 const tmp<faMatrix<Type>>&
562 tmp<faMatrix<Type>>
operator+
564 const tmp<GeometricField<Type, faPatchField, areaMesh>>&,
565 const faMatrix<Type>&
569 tmp<faMatrix<Type>>
operator+
571 const tmp<GeometricField<Type, faPatchField, areaMesh>>&,
572 const tmp<faMatrix<Type>>&
576 tmp<faMatrix<Type>>
operator-
578 const faMatrix<Type>&,
579 const GeometricField<Type, faPatchField, areaMesh>&
583 tmp<faMatrix<Type>>
operator-
585 const tmp<faMatrix<Type>>&,
586 const GeometricField<Type, faPatchField, areaMesh>&
590 tmp<faMatrix<Type>>
operator-
592 const faMatrix<Type>&,
593 const tmp<GeometricField<Type, faPatchField, areaMesh>>&
597 tmp<faMatrix<Type>>
operator-
599 const tmp<faMatrix<Type>>&,
600 const tmp<GeometricField<Type, faPatchField, areaMesh>>&
604 tmp<faMatrix<Type>>
operator-
606 const GeometricField<Type, faPatchField, areaMesh>&,
607 const faMatrix<Type>&
611 tmp<faMatrix<Type>>
operator-
613 const GeometricField<Type, faPatchField, areaMesh>&,
614 const tmp<faMatrix<Type>>&
618 tmp<faMatrix<Type>>
operator-
620 const tmp<GeometricField<Type, faPatchField, areaMesh>>&,
621 const faMatrix<Type>&
625 tmp<faMatrix<Type>>
operator-
627 const tmp<GeometricField<Type, faPatchField, areaMesh>>&,
628 const tmp<faMatrix<Type>>&
632 tmp<faMatrix<Type>>
operator+
634 const faMatrix<Type>&,
635 const dimensioned<Type>&
639 tmp<faMatrix<Type>>
operator+
641 const tmp<faMatrix<Type>>&,
642 const dimensioned<Type>&
646 tmp<faMatrix<Type>>
operator+
648 const dimensioned<Type>&,
649 const faMatrix<Type>&
653 tmp<faMatrix<Type>>
operator+
655 const dimensioned<Type>&,
656 const tmp<faMatrix<Type>>&
660 tmp<faMatrix<Type>>
operator-
662 const faMatrix<Type>&,
663 const dimensioned<Type>&
667 tmp<faMatrix<Type>>
operator-
669 const tmp<faMatrix<Type>>&,
670 const dimensioned<Type>&
674 tmp<faMatrix<Type>>
operator-
676 const dimensioned<Type>&,
677 const faMatrix<Type>&
681 tmp<faMatrix<Type>>
operator-
683 const dimensioned<Type>&,
684 const tmp<faMatrix<Type>>&
688 tmp<faMatrix<Type>>
operator==
690 const faMatrix<Type>&,
691 const GeometricField<Type, faPatchField, areaMesh>&
695 tmp<faMatrix<Type>>
operator==
697 const tmp<faMatrix<Type>>&,
698 const GeometricField<Type, faPatchField, areaMesh>&
702 tmp<faMatrix<Type>>
operator==
704 const faMatrix<Type>&,
705 const tmp<GeometricField<Type, faPatchField, areaMesh>>&
709 tmp<faMatrix<Type>>
operator==
711 const tmp<faMatrix<Type>>&,
712 const tmp<GeometricField<Type, faPatchField, areaMesh>>&
716 tmp<faMatrix<Type>>
operator==
718 const faMatrix<Type>&,
719 const dimensioned<Type>&
723 tmp<faMatrix<Type>>
operator==
725 const tmp<faMatrix<Type>>&,
726 const dimensioned<Type>&
731 tmp<faMatrix<Type>>
operator*
734 const faMatrix<Type>&
738 tmp<faMatrix<Type>>
operator*
741 const tmp<faMatrix<Type>>&
745 tmp<faMatrix<Type>>
operator*
747 const tmp<areaScalarField>&,
748 const faMatrix<Type>&
752 tmp<faMatrix<Type>>
operator*
754 const tmp<areaScalarField>&,
755 const tmp<faMatrix<Type>>&
759 tmp<faMatrix<Type>>
operator*
761 const dimensioned<scalar>&,
762 const faMatrix<Type>&
766 tmp<faMatrix<Type>>
operator*
768 const dimensioned<scalar>&,
769 const tmp<faMatrix<Type>>&
void checkMethod(const faMatrix< Type > &, const faMatrix< Type > &, const char *)
void operator+=(const faMatrix< Type > &)
const dimensionSet & dimensions() const
A special matrix type and solver, designed for finite area solutions of scalar equations....
A field of fields is a PtrList of fields with reference counting.
A class for managing temporary objects.
void operator-=(const faMatrix< Type > &)
Reference counter for various OpenFOAM components.
List< T > values(const HashTable< T, Key, Hash > &tbl, const bool doSort=false)
List of values from HashTable, optionally sorted.
void diag(pointPatchField< vector > &, const pointPatchField< tensor > &)
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
FieldField< Field, Type > & boundaryCoeffs()
faBoundary scalar field containing pseudo-matrix coeffs
lduMatrix is a general matrix class in which the coefficients are stored as three arrays,...
faMatrix(const GeometricField< Type, faPatchField, areaMesh > &, const dimensionSet &)
Construct given a field to solve for.
tmp< GeometricField< Type, faePatchField, edgeMesh > > flux() const
Return the face-flux field from the matrix.
const Field< Type > & source() const
void setComponentReference(const label patchi, const label facei, const direction cmpt, const scalar value)
Set reference level for a component of the solution.
Dimension set for the base types.
Solver class returned by the solver function.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
void operator=(const faMatrix< Type > &)
Generic templated field type.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
Macro definitions for declaring ClassName(), NamespaceName(), etc.
SolverPerformance< Type > solve()
Solve returning the solution statistics.
SolverPerformance< Type > solve(faMatrix< Type > &, Istream &)
Solve returning the solution statistics given convergence tolerance.
void relax()
Relax matrix (for steady-state solution).
FieldField< Field, Type > & internalCoeffs()
faBoundary scalar field containing pseudo-matrix coeffs
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
tmp< GeometricField< Type, faPatchField, areaMesh > > H() const
Return the H operation source.
Generic dimensioned Type class.
GeometricField< scalar, faPatchField, areaMesh > areaScalarField
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
void setReference(const label facei, const Type &value)
Set reference level for solution.
const GeometricField< Type, faPatchField, areaMesh > & psi() const
faSolver(faMatrix< Type > &faMat, autoPtr< lduMatrix::solver > &&sol)
edgeTypeFieldPtr & faceFluxCorrectionPtr()
Return pointer to face-flux non-orthogonal correction field.
void operator*=(const areaScalarField &)
GeometricField< Type, faePatchField, edgeMesh > * edgeTypeFieldPtr
Declare return type of the faceFluxCorrectionPtr() function.
virtual ~faMatrix()
Destructor.
tmp< scalarField > D() const
Return the matrix diagonal.
tmp< areaScalarField > A() const
Return the central coefficient.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
tmp< Field< Type > > residual() const
Return the matrix residual.
SolverPerformance< Type > solve()
Solve returning the solution statistics.
tmp< faMatrix< Type > > clone() const
Clone.
Generic GeometricField class.
void setValues(const labelUList &faces, const UList< Type > &values)
Set solution in given cells and eliminate corresponding.