complexVectorField.H
Go to the documentation of this file.
1/*---------------------------------------------------------------------------*\
2 ========= |
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4 \\ / O peration |
5 \\ / A nd | www.openfoam.com
6 \\/ M anipulation |
7-------------------------------------------------------------------------------
8 Copyright (C) 2011 OpenFOAM Foundation
9 Copyright (C) 2019 OpenCFD Ltd.
10-------------------------------------------------------------------------------
11License
12 This file is part of OpenFOAM.
13
14 OpenFOAM is free software: you can redistribute it and/or modify it
15 under the terms of the GNU General Public License as published by
16 the Free Software Foundation, either version 3 of the License, or
17 (at your option) any later version.
18
19 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
20 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
21 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22 for more details.
23
24 You should have received a copy of the GNU General Public License
25 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
26
27Typedef
28 Foam::complexVectorField
29
30Description
31 Specialisation of Field<T> for complexVector.
32
33SourceFiles
34 complexVectorField.C
35
36\*---------------------------------------------------------------------------*/
37
38#ifndef complexVectorField_H
39#define complexVectorField_H
40
41#include "complex.H"
42#include "complexVector.H"
43#include "vectorField.H"
44
45// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46
47namespace Foam
48{
49
50// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
51
53
54//- Zip up two lists of values into a list of complex
56(
57 const UList<vector>& re,
58 const UList<vector>& im
59);
60
61
62//- Create complex field from a list of real (using imag == 0)
64
65//- Create complex field from a list of imag (using real == 0)
67
68//- Extract real component
70
71//- Extract imag component
73
74//- Sum real and imag components
76
77complexVectorField operator^
78(
79 const UList<vector>& vf,
80 const UList<complexVector>& cvf
81);
82
83
84// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
85
86} // End namespace Foam
87
88// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
89
90#endif
91
92// ************************************************************************* //
Generic templated field type.
Definition: Field.H:82
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
Definition: UList.H:94
Namespace for OpenFOAM.
Field< complexVector > complexVectorField
Specialisation of Field<T> for complexVector.
scalarField Re(const UList< complex > &cf)
Extract real component.
Definition: complexField.C:159
complexField ImComplexField(const UList< scalar > &im)
Create complex field from a list of imag (using real == 0)
Definition: complexField.C:132
complexField ReComplexField(const UList< scalar > &re)
Create complex field from a list of real (using imag == 0)
Definition: complexField.C:118
complexField ComplexField(const UList< scalar > &re, const UList< scalar > &im)
Zip up two lists of values into a list of complex.
Definition: complexField.C:105
scalarField Im(const UList< complex > &cf)
Extract imag component.
Definition: complexField.C:172
scalarField ReImSum(const UList< complex > &cf)
Sum real and imag components.
Definition: complexField.C:146