1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | foam-extend: Open Source CFD
4 \\ / O peration | Version: 3.2
5 \\ / A nd | Web: http://www.foam-extend.org
6 \\/ M anipulation | 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 #include "diagTensorCoeffField.H"
28 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
30 Foam::CoeffField<Foam::diagTensor>::CoeffField(const label size)
32 DecoupledCoeffField<diagTensor>(size)
36 Foam::CoeffField<Foam::diagTensor>::CoeffField
38 const CoeffField<diagTensor>& f
41 DecoupledCoeffField<diagTensor>(f)
45 Foam::CoeffField<Foam::diagTensor>::CoeffField
47 const DecoupledCoeffField<diagTensor>& f
50 DecoupledCoeffField<diagTensor>(f)
54 Foam::CoeffField<Foam::diagTensor>::CoeffField
56 const tmp<DecoupledCoeffField<diagTensor> >& tf
59 DecoupledCoeffField<diagTensor>(tf())
63 Foam::CoeffField<Foam::diagTensor>::CoeffField(Istream& is)
65 DecoupledCoeffField<diagTensor>(is)
69 // * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
71 void Foam::CoeffField<Foam::diagTensor>::operator=
73 const CoeffField<diagTensor>& f
76 DecoupledCoeffField<diagTensor>::operator=(f);
80 void Foam::CoeffField<Foam::diagTensor>::operator=
82 const tmp<CoeffField<diagTensor> >& f
85 DecoupledCoeffField<diagTensor>::operator=(f);
89 void Foam::CoeffField<Foam::diagTensor>::operator=
91 const CoeffField<diagTensor>::scalarTypeField& f
94 DecoupledCoeffField<diagTensor>::operator=(f);
98 void Foam::CoeffField<Foam::diagTensor>::operator=
100 const tmp<CoeffField<diagTensor>::scalarTypeField>& f
103 DecoupledCoeffField<diagTensor>::operator=(f);
107 void Foam::CoeffField<Foam::diagTensor>::operator=
109 const CoeffField<diagTensor>::linearTypeField& f
112 DecoupledCoeffField<diagTensor>::operator=(f);
116 void Foam::CoeffField<Foam::diagTensor>::operator=
118 const tmp<CoeffField<diagTensor>::linearTypeField>& f
121 DecoupledCoeffField<diagTensor>::operator=(f);
125 /* * * * * * * * * * * * * * * * Global functions * * * * * * * * * * * * * */
127 Foam::tmp<Foam::CoeffField<Foam::diagTensor> > Foam::inv
129 const CoeffField<diagTensor>& f
132 const DecoupledCoeffField<diagTensor>& df = f;
134 return tmp<CoeffField<diagTensor> >
136 new CoeffField<diagTensor>(inv(df)())
141 // ************************************************************************* //