patchToPatchLeftOverFieldMapper.H
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) 2022-2023 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 Class
25  Foam::patchToPatchLeftOverFieldMapper
26 
27 Description
28  Patch-to-patch fieldMapper which retains values in the target field for
29  parts of the patch that do not overlap the source. This process needs an
30  input target field as well as a source field, so it can only map a field
31  in-place.
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef patchToPatchLeftOverFieldMapper_H
36 #define patchToPatchLeftOverFieldMapper_H
37 
39 
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
41 
42 namespace Foam
43 {
44 
45 /*---------------------------------------------------------------------------*\
46  Class patchToPatchLeftOverFieldMapper Declaration
47 \*---------------------------------------------------------------------------*/
48 
50 :
52 {
53  // Private Member Functions
54 
55  //- Map from one field to another
56  template<class Type>
57  void map(Field<Type>& f, const Field<Type>& mapF) const;
58 
59  //- Map a field and return the result as tmp
60  template<class Type>
61  tmp<Field<Type>> map(const Field<Type>& mapF) const;
62 
63 
64 public:
65 
66  // Constructors
67 
68  //- Inherit base class constructor
70 
71 
72  //- Destructor
74  {}
75 
76 
77  // Member Operators
78 
79  //- Map a field
81 };
82 
83 
84 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
85 
86 } // End namespace Foam
87 
88 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
89 
90 #endif
91 
92 // ************************************************************************* //
Pre-declare SubField and related Field type.
Definition: Field.H:83
Base class for fieldMappers which uses a patchToPatch object to map from another patch....
patchToPatchFieldMapper(const patchToPatch &pToP)
Construct given a patch-to-patch interpolation.
DEFINE_FIELD_MAPPER_MAP_OPERATOR(label,)
Map a label field (not implemented)
Patch-to-patch fieldMapper which retains values in the target field for parts of the patch that do no...
FOR_ALL_FIELD_TYPES(DEFINE_FIELD_MAPPER_MAP_OPERATOR,)
Map a field.
A class for managing temporary objects.
Definition: tmp.H:55
Namespace for OpenFOAM.
labelList f(nPoints)