Fix tutorials: typo in tutorials/viscoelastic/viscoelasticFluidFoam/S-MDCPP/constant...
[OpenFOAM-1.6-ext.git] / src / blockMatrix / CoeffField / sphericalTensorCoeffField.H
blobfc991a1334513491b9944bceb021cdd3e093c969
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4    \\    /   O peration     |
5     \\  /    A nd           | Copyright (C) 2004-6 H. Jasak All rights reserved
6      \\/     M anipulation  |
7 -------------------------------------------------------------------------------
8 License
9     This file is part of OpenFOAM.
11     OpenFOAM 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 2 of the License, or (at your
14     option) any later version.
16     OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18     FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
19     for more details.
21     You should have received a copy of the GNU General Public License
22     along with OpenFOAM; if not, write to the Free Software Foundation,
23     Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25 Class
26     CoeffField<T>
28 Description
29     Template specialisation for sphericalTensor coefficients
31 Author
32     Hrvoje Jasak, Wikki Ltd.  All rights reserved.
34 SourceFiles
35     sphericalTensorCoeffField.C
37 \*---------------------------------------------------------------------------*/
39 #ifndef sphericalTensorCoeffField_H
40 #define sphericalTensorCoeffField_H
42 #include "CoeffField.H"
43 #include "DecoupledCoeffField.H"
44 #include "sphericalTensor.H"
46 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
48 namespace Foam
51 template<>
52 class CoeffField<sphericalTensor>
54     public DecoupledCoeffField<sphericalTensor>
56 public:
58     // Constructors
60         //- Construct given size
61         explicit CoeffField(const label);
63         //- Construct as copy
64         CoeffField(const CoeffField<sphericalTensor>&);
66         //- Construct as copy of base
67         explicit CoeffField(const DecoupledCoeffField<sphericalTensor>&);
69         //- Construct as copy of base
70         explicit CoeffField(const tmp<DecoupledCoeffField<sphericalTensor> >&);
72         //- Construct from Istream
73         explicit CoeffField(Istream&);
76     // Member operators
78         void operator=(const CoeffField<sphericalTensor>&);
79         void operator=(const tmp<CoeffField<sphericalTensor> >&);
81         void operator=(const scalarTypeField&);
82         void operator=(const tmp<scalarTypeField>&);
83         void operator=(const linearTypeField&);
84         void operator=(const tmp<linearTypeField>&);
89 /* * * * * * * * * * * * * * * * Global functions  * * * * * * * * * * * * * */
91 tmp<CoeffField<sphericalTensor> > inv(const CoeffField<sphericalTensor>& f);
94 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
96 } // End namespace Foam
98 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
100 #endif
102 // ************************************************************************* //