Go to the documentation of this file.
99 *faceFluxCorrectionPtr_;
105 template<
class Type2>
106 void addToInternalField
113 template<
class Type2>
114 void addToInternalField
122 template<
class Type2>
123 void subtractFromInternalField
130 template<
class Type2>
131 void subtractFromInternalField
149 void addBoundarySource
152 const bool couples =
true
246 return internalCoeffs_;
253 return boundaryCoeffs_;
264 return faceFluxCorrectionPtr_;
359 friend Ostream& operator<< <Type>
372 const faMatrix<Type>&,
373 const faMatrix<Type>&,
380 const faMatrix<Type>&,
381 const GeometricField<Type, faPatchField, areaMesh>&,
388 const faMatrix<Type>&,
389 const dimensioned<Type>&,
397 SolverPerformance<Type>
solve(faMatrix<Type>&, Istream&);
404 SolverPerformance<Type>
solve(
const tmp<faMatrix<Type>>&, Istream&);
410 SolverPerformance<Type>
solve(faMatrix<Type>&);
417 SolverPerformance<Type>
solve(
const tmp<faMatrix<Type>>&);
423 tmp<faMatrix<Type>>
operator-
425 const faMatrix<Type>&
429 tmp<faMatrix<Type>>
operator-
431 const tmp<faMatrix<Type>>&
435 tmp<faMatrix<Type>>
operator+
437 const faMatrix<Type>&,
438 const faMatrix<Type>&
442 tmp<faMatrix<Type>>
operator+
444 const tmp<faMatrix<Type>>&,
445 const faMatrix<Type>&
449 tmp<faMatrix<Type>>
operator+
451 const faMatrix<Type>&,
452 const tmp<faMatrix<Type>>&
456 tmp<faMatrix<Type>>
operator+
458 const tmp<faMatrix<Type>>&,
459 const tmp<faMatrix<Type>>&
463 tmp<faMatrix<Type>>
operator-
465 const faMatrix<Type>&,
466 const faMatrix<Type>&
470 tmp<faMatrix<Type>>
operator-
472 const tmp<faMatrix<Type>>&,
473 const faMatrix<Type>&
477 tmp<faMatrix<Type>>
operator-
479 const faMatrix<Type>&,
480 const tmp<faMatrix<Type>>&
484 tmp<faMatrix<Type>>
operator-
486 const tmp<faMatrix<Type>>&,
487 const tmp<faMatrix<Type>>&
491 tmp<faMatrix<Type>>
operator==
493 const faMatrix<Type>&,
494 const faMatrix<Type>&
498 tmp<faMatrix<Type>>
operator==
500 const tmp<faMatrix<Type>>&,
501 const faMatrix<Type>&
505 tmp<faMatrix<Type>>
operator==
507 const faMatrix<Type>&,
508 const tmp<faMatrix<Type>>&
512 tmp<faMatrix<Type>>
operator==
514 const tmp<faMatrix<Type>>&,
515 const tmp<faMatrix<Type>>&
519 tmp<faMatrix<Type>>
operator+
521 const faMatrix<Type>&,
522 const GeometricField<Type, faPatchField, areaMesh>&
526 tmp<faMatrix<Type>>
operator+
528 const tmp<faMatrix<Type>>&,
529 const GeometricField<Type, faPatchField, areaMesh>&
533 tmp<faMatrix<Type>>
operator+
535 const faMatrix<Type>&,
536 const tmp<GeometricField<Type, faPatchField, areaMesh>>&
540 tmp<faMatrix<Type>>
operator+
542 const tmp<faMatrix<Type>>&,
543 const tmp<GeometricField<Type, faPatchField, areaMesh>>&
547 tmp<faMatrix<Type>>
operator+
549 const GeometricField<Type, faPatchField, areaMesh>&,
550 const faMatrix<Type>&
554 tmp<faMatrix<Type>>
operator+
556 const GeometricField<Type, faPatchField, areaMesh>&,
557 const tmp<faMatrix<Type>>&
561 tmp<faMatrix<Type>>
operator+
563 const tmp<GeometricField<Type, faPatchField, areaMesh>>&,
564 const faMatrix<Type>&
568 tmp<faMatrix<Type>>
operator+
570 const tmp<GeometricField<Type, faPatchField, areaMesh>>&,
571 const tmp<faMatrix<Type>>&
575 tmp<faMatrix<Type>>
operator-
577 const faMatrix<Type>&,
578 const GeometricField<Type, faPatchField, areaMesh>&
582 tmp<faMatrix<Type>>
operator-
584 const tmp<faMatrix<Type>>&,
585 const GeometricField<Type, faPatchField, areaMesh>&
589 tmp<faMatrix<Type>>
operator-
591 const faMatrix<Type>&,
592 const tmp<GeometricField<Type, faPatchField, areaMesh>>&
596 tmp<faMatrix<Type>>
operator-
598 const tmp<faMatrix<Type>>&,
599 const tmp<GeometricField<Type, faPatchField, areaMesh>>&
603 tmp<faMatrix<Type>>
operator-
605 const GeometricField<Type, faPatchField, areaMesh>&,
606 const faMatrix<Type>&
610 tmp<faMatrix<Type>>
operator-
612 const GeometricField<Type, faPatchField, areaMesh>&,
613 const tmp<faMatrix<Type>>&
617 tmp<faMatrix<Type>>
operator-
619 const tmp<GeometricField<Type, faPatchField, areaMesh>>&,
620 const faMatrix<Type>&
624 tmp<faMatrix<Type>>
operator-
626 const tmp<GeometricField<Type, faPatchField, areaMesh>>&,
627 const tmp<faMatrix<Type>>&
631 tmp<faMatrix<Type>>
operator+
633 const faMatrix<Type>&,
634 const dimensioned<Type>&
638 tmp<faMatrix<Type>>
operator+
640 const tmp<faMatrix<Type>>&,
641 const dimensioned<Type>&
645 tmp<faMatrix<Type>>
operator+
647 const dimensioned<Type>&,
648 const faMatrix<Type>&
652 tmp<faMatrix<Type>>
operator+
654 const dimensioned<Type>&,
655 const tmp<faMatrix<Type>>&
659 tmp<faMatrix<Type>>
operator-
661 const faMatrix<Type>&,
662 const dimensioned<Type>&
666 tmp<faMatrix<Type>>
operator-
668 const tmp<faMatrix<Type>>&,
669 const dimensioned<Type>&
673 tmp<faMatrix<Type>>
operator-
675 const dimensioned<Type>&,
676 const faMatrix<Type>&
680 tmp<faMatrix<Type>>
operator-
682 const dimensioned<Type>&,
683 const tmp<faMatrix<Type>>&
687 tmp<faMatrix<Type>>
operator==
689 const faMatrix<Type>&,
690 const GeometricField<Type, faPatchField, areaMesh>&
694 tmp<faMatrix<Type>>
operator==
696 const tmp<faMatrix<Type>>&,
697 const GeometricField<Type, faPatchField, areaMesh>&
701 tmp<faMatrix<Type>>
operator==
703 const faMatrix<Type>&,
704 const tmp<GeometricField<Type, faPatchField, areaMesh>>&
708 tmp<faMatrix<Type>>
operator==
710 const tmp<faMatrix<Type>>&,
711 const tmp<GeometricField<Type, faPatchField, areaMesh>>&
715 tmp<faMatrix<Type>>
operator==
717 const faMatrix<Type>&,
718 const dimensioned<Type>&
722 tmp<faMatrix<Type>>
operator==
724 const tmp<faMatrix<Type>>&,
725 const dimensioned<Type>&
730 tmp<faMatrix<Type>>
operator*
733 const faMatrix<Type>&
737 tmp<faMatrix<Type>>
operator*
740 const tmp<faMatrix<Type>>&
744 tmp<faMatrix<Type>>
operator*
746 const tmp<areaScalarField>&,
747 const faMatrix<Type>&
751 tmp<faMatrix<Type>>
operator*
753 const tmp<areaScalarField>&,
754 const tmp<faMatrix<Type>>&
758 tmp<faMatrix<Type>>
operator*
760 const dimensioned<scalar>&,
761 const faMatrix<Type>&
765 tmp<faMatrix<Type>>
operator*
767 const dimensioned<scalar>&,
768 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 > &)
faSolver(faMatrix< Type > &faMat, autoPtr< lduMatrix::solver > sol)
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.
void operator=(const faMatrix< Type > &)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
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
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.
Ostream & operator<<(Ostream &, const boundaryPatch &)