vector2DField.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-2017 OpenFOAM Foundation
9  Copyright (C) 2019 OpenCFD Ltd.
10 -------------------------------------------------------------------------------
11 License
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 
27 Description
28  Foam::vector2DField
29 
30 Note
31  There is no 'zip(const scalarField& x, const scalarField& y)'
32  function since it would not be easily distinguishable
33  between vector2DField and complexField.
34 
35 SourceFiles
36  vector2DFieldTemplates.C
37 
38 \*---------------------------------------------------------------------------*/
39 
40 #ifndef vector2DField_H
41 #define vector2DField_H
42 
43 #include "vector2DFieldFwd.H"
44 #include "Field.H"
45 
46 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47 
48 namespace Foam
49 {
50 
51 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
52 
53 //- Zip together 2D vector field from components
54 template<class Cmpt>
55 void zip
56 (
57  Field<Vector2D<Cmpt>>& result,
58  const UList<Cmpt>& x,
59  const UList<Cmpt>& y
60 );
61 
62 //- Unzip 2D vector field into components
63 template<class Cmpt>
64 void unzip
65 (
66  const UList<Vector2D<Cmpt>>& input,
67  Field<Cmpt>& x,
68  Field<Cmpt>& y
69 );
70 
71 
72 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
73 
74 } // End namespace Foam
75 
76 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
77 
78 #ifdef NoRepository
79  #include "vector2DFieldTemplates.C"
80 #endif
81 
82 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
83 
84 #endif
85 
86 // ************************************************************************* //
vector2DFieldFwd.H
Foam::unzip
void unzip(const FieldField< Field, SphericalTensor< Cmpt >> &input, FieldField< Field, Cmpt > &ii)
Unzip sphericalTensor field field into components.
Definition: sphericalTensorFieldField.C:55
vector2DFieldTemplates.C
Field.H
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::input
static Istream & input(Istream &is, IntRange< T > &range)
Definition: IntRanges.C:55
x
x
Definition: LISASMDCalcMethod2.H:52
Foam::zip
void zip(FieldField< Field, SphericalTensor< Cmpt >> &result, const FieldField< Field, Cmpt > &ii)
Zip together sphericalTensor field field from components.
Definition: sphericalTensorFieldField.C:41
y
scalar y
Definition: LISASMDCalcMethod1.H:14