1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
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
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
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/>.
28 Specialisation of Field\<T\> for complex.
31 Foam::complexVectorField
34 Specialisation of Field\<T\> for complexVector.
39 \*---------------------------------------------------------------------------*/
41 #ifndef complexFields_H
42 #define complexFields_H
45 #include "complexVector.H"
46 #include "primitiveFields.H"
48 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
53 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
55 typedef Field<complex> complexField;
57 complexField ComplexField(const UList<scalar>&, const UList<scalar>&);
58 complexField ReComplexField(const UList<scalar>&);
59 complexField ImComplexField(const UList<scalar>&);
60 scalarField Re(const UList<complex>&);
61 scalarField Im(const UList<complex>&);
62 scalarField ReImSum(const UList<complex>&);
65 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
67 typedef Field<complexVector> complexVectorField;
69 complexVectorField ComplexField(const UList<vector>&, const UList<vector>&);
70 complexVectorField ReComplexField(const UList<vector>&);
71 complexVectorField ImComplexField(const UList<vector>&);
72 vectorField Re(const UList<complexVector>&);
73 vectorField Im(const UList<complexVector>&);
74 vectorField ReImSum(const UList<complexVector>&);
76 complexVectorField operator^
79 const UList<complexVector>&
83 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
85 } // End namespace Foam
87 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
91 // ************************************************************************* //