Transferred copyright to the OpenFOAM Foundation
[OpenFOAM-2.0.x.git] / src / OpenFOAM / fields / FieldFields / symmTensorFieldField / symmTensorFieldField.C
blob4d1234dcb9762f572e507b0d37815fa577ec00c7
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4    \\    /   O peration     |
5     \\  /    A nd           | Copyright (C) 2011 OpenFOAM Foundation
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
13     the Free Software Foundation, either version 3 of the License, or
14     (at your 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, see <http://www.gnu.org/licenses/>.
24 Description
25     Specialisation of FieldField\<T\> for symmTensor.
27 \*---------------------------------------------------------------------------*/
29 #include "symmTensorFieldField.H"
31 #define TEMPLATE template<template<class> class Field>
32 #include "FieldFieldFunctionsM.C"
34 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
36 namespace Foam
39 // * * * * * * * * * * * * * * * global operators  * * * * * * * * * * * * * //
41 UNARY_FUNCTION(symmTensor, vector, sqr)
43 UNARY_FUNCTION(scalar, symmTensor, tr)
44 UNARY_FUNCTION(sphericalTensor, symmTensor, sph)
45 UNARY_FUNCTION(symmTensor, symmTensor, symm)
46 UNARY_FUNCTION(symmTensor, symmTensor, twoSymm)
47 UNARY_FUNCTION(symmTensor, symmTensor, dev)
48 UNARY_FUNCTION(symmTensor, symmTensor, dev2)
49 UNARY_FUNCTION(scalar, symmTensor, det)
50 UNARY_FUNCTION(symmTensor, symmTensor, cof)
51 UNARY_FUNCTION(symmTensor, symmTensor, inv)
54 // * * * * * * * * * * * * * * * global operators  * * * * * * * * * * * * * //
56 UNARY_OPERATOR(vector, symmTensor, *, hdual)
59 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
61 } // End namespace Foam
63 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
65 #include "undefFieldFunctionsM.H"
67 // ************************************************************************* //