1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2004-6 H. Jasak All rights reserved
7 -------------------------------------------------------------------------------
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
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
29 Template specialisation for symmTensor coefficients
32 Hrvoje Jasak, Wikki Ltd. All rights reserved.
35 symmTensorCoeffField.C
37 \*---------------------------------------------------------------------------*/
39 #ifndef symmTensorCoeffField_H
40 #define symmTensorCoeffField_H
42 #include "CoeffField.H"
43 #include "DecoupledCoeffField.H"
44 #include "symmTensor.H"
46 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
52 class CoeffField<symmTensor>
54 public DecoupledCoeffField<symmTensor>
60 //- Construct given size
61 explicit CoeffField(const label);
64 CoeffField(const CoeffField<symmTensor>&);
66 //- Construct as copy of base
67 explicit CoeffField(const DecoupledCoeffField<symmTensor>&);
69 //- Construct as copy of base
70 explicit CoeffField(const tmp<DecoupledCoeffField<symmTensor> >&);
72 //- Construct from Istream
73 explicit CoeffField(Istream&);
78 void operator=(const CoeffField<symmTensor>&);
79 void operator=(const tmp<CoeffField<symmTensor> >&);
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<symmTensor> > inv(const CoeffField<symmTensor>& f);
94 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
96 } // End namespace Foam
98 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
102 // ************************************************************************* //