1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | foam-extend: Open Source CFD
5 \\ / A nd | For copyright notice see file Copyright
7 -------------------------------------------------------------------------------
9 This file is part of foam-extend.
11 foam-extend is free software: you can redistribute it and/or modify it
12 under the terms of the GNU General Public License as published by the
13 Free Software Foundation, either version 3 of the License, or (at your
14 option) any later version.
16 foam-extend is distributed in the hope that it will be useful, but
17 WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 General Public License for more details.
21 You should have received a copy of the GNU General Public License
22 along with foam-extend. If not, see <http://www.gnu.org/licenses/>.
24 \*---------------------------------------------------------------------------*/
26 #ifndef sphericalTensorBlockLduMatrix_H
27 #define sphericalTensorBlockLduMatrix_H
29 #include "BlockLduMatrix.H"
31 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
37 void Foam::BlockLduMatrix<Foam::sphericalTensor>::sumDiag()
40 this->decoupledSumDiag();
45 void Foam::BlockLduMatrix<Foam::sphericalTensor>::negSumDiag()
48 this->decoupledNegSumDiag();
53 void Foam::BlockLduMatrix<sphericalTensor>::check() const
56 this->decoupledCheck();
61 void Foam::BlockLduMatrix<Foam::sphericalTensor>::relax
63 const sphericalTensorField& x,
64 sphericalTensorField& b,
69 this->decoupledRelax(x, b, alpha);
74 void Foam::BlockLduMatrix<Foam::sphericalTensor>::operator*=
80 this->decoupledMultEqOp(sf);
85 void Foam::BlockLduMatrix<Foam::sphericalTensor>::AmulCore
87 sphericalTensorField& Ax,
88 const sphericalTensorField& x
91 decoupledAmulCore(Ax, x);
96 void Foam::BlockLduMatrix<Foam::sphericalTensor>::TmulCore
98 sphericalTensorField& Tx,
99 const sphericalTensorField& x
103 decoupledTmulCore(Tx, x);
108 void Foam::BlockLduMatrix<Foam::sphericalTensor>::segregateB
110 sphericalTensorField&,
111 const sphericalTensorField&
116 "void Foam::BlockLduMatrix<sphericalTensor>::segregateB\n"
118 " sphericalTensorField&,\n"
119 " const sphericalTensorField&\n"
121 ) << "Requested decoupling of sphericalTensor matrix - never coupled"
122 << abort(FatalError);
127 Foam::tmp<Foam::sphericalTensorField>
128 Foam::BlockLduMatrix<Foam::sphericalTensor>::H
130 const sphericalTensorField& x
134 return decoupledH(x);
139 Foam::tmp<Foam::sphericalTensorField>
140 Foam::BlockLduMatrix<Foam::sphericalTensor>::faceH
142 const sphericalTensorField& x
146 return decoupledFaceH(x);
150 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
152 } // End namespace Foam
154 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
158 // ************************************************************************* //