distributedWeightedFvPatchFieldMapper.C
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2019 OpenFOAM Foundation
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
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.
15 
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.
20 
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/>.
23 
24 \*---------------------------------------------------------------------------*/
25 
27 
28 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
29 
32 {
33  return addressing_;
34 }
35 
36 
39 {
40  return weights_;
41 }
42 
43 
44 // * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
45 
47 Foam::distributedWeightedFvPatchFieldMapper::operator()
48 (
49  const Field<scalar>& mapF
50 ) const
51 {
52  return map(mapF);
53 }
54 
55 
57 Foam::distributedWeightedFvPatchFieldMapper::operator()
58 (
59  const Field<vector>& mapF
60 ) const
61 {
62  return map(mapF);
63 }
64 
65 
67 Foam::distributedWeightedFvPatchFieldMapper::operator()
68 (
69  const Field<sphericalTensor>& mapF
70 ) const
71 {
72  return map(mapF);
73 }
74 
75 
77 Foam::distributedWeightedFvPatchFieldMapper::operator()
78 (
79  const Field<symmTensor>& mapF
80 ) const
81 {
82  return map(mapF);
83 }
84 
85 
87 Foam::distributedWeightedFvPatchFieldMapper::operator()
88 (
89  const Field<tensor>& mapF
90 ) const
91 {
92  return map(mapF);
93 }
94 
95 
96 void Foam::distributedWeightedFvPatchFieldMapper::operator()
97 (
99  const Field<scalar>& mapF
100 ) const
101 {
102  return map(f, mapF);
103 }
104 
105 
106 void Foam::distributedWeightedFvPatchFieldMapper::operator()
107 (
108  Field<vector>& f,
109  const Field<vector>& mapF
110 ) const
111 {
112  return map(f, mapF);
113 }
114 
115 
116 void Foam::distributedWeightedFvPatchFieldMapper::operator()
117 (
119  const Field<sphericalTensor>& mapF
120 ) const
121 {
122  return map(f, mapF);
123 }
124 
125 
126 void Foam::distributedWeightedFvPatchFieldMapper::operator()
127 (
129  const Field<symmTensor>& mapF
130 ) const
131 {
132  return map(f, mapF);
133 }
134 
135 
136 void Foam::distributedWeightedFvPatchFieldMapper::operator()
137 (
138  Field<tensor>& f,
139  const Field<tensor>& mapF
140 ) const
141 {
142  return map(f, mapF);
143 }
144 
145 
146 // ************************************************************************* //
labelList f(nPoints)
A class for managing temporary objects.
Definition: PtrList.H:53