volSurfaceMapping.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) 2016-2017 Wikki Ltd
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 Class
28  Foam::volSurfaceMapping
29 
30 Description
31  Volume to surface and surface to volume mapping
32 
33 Author
34  Hrvoje Jasak, Wikki Ltd.
35 
36 SourceFiles
37  volSurfaceMapping.C
38 
39 \*---------------------------------------------------------------------------*/
40 
41 #ifndef volSurfaceMapping_H
42 #define volSurfaceMapping_H
43 
44 #include "faMesh.H"
45 
46 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47 
48 namespace Foam
49 {
50 
51 template<class Type> class fvPatchField;
52 
53 /*---------------------------------------------------------------------------*\
54  Class volSurfaceMapping Declaration
55 \*---------------------------------------------------------------------------*/
56 
58 {
59  // Private data
60 
61  //- Reference to mesh
62  const faMesh& mesh_;
63 
64 
65  // Private Member Functions
66 
67  //- No copy construct
68  volSurfaceMapping(const volSurfaceMapping&) = delete;
69 
70  //- No copy assignment
71  void operator=(const volSurfaceMapping&) = delete;
72 
73 
74 public:
75 
76  // Constructors
77 
78  //- Construct from mesh
80  :
81  mesh_(mesh)
82  {}
83 
84 
85  //- Destructor
86  ~volSurfaceMapping() = default;
87 
88 
89  // Member Functions
90 
91  //- Map droplet cloud sources to surface
92  template<class Type>
94  (
95  const typename
97  ) const;
98 
99  //- Map surface field to volume boundary field
100  template<class Type>
101  void mapToVolume
102  (
105  ) const;
106 
107  template<class Type>
108  void mapToVolume
109  (
112  ) const;
113 };
114 
115 
116 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
117 
118 } // End namespace Foam
119 
120 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
121 
122 #ifdef NoRepository
123  #include "volSurfaceMapping.C"
124 #endif
125 
126 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
127 
128 #endif
129 
130 // ************************************************************************* //
Foam::fvPatchField
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
Definition: volSurfaceMapping.H:50
Foam::tmp
A class for managing temporary objects.
Definition: PtrList.H:59
Foam::volSurfaceMapping::mapToSurface
tmp< Field< Type > > mapToSurface(const typename GeometricField< Type, fvPatchField, volMesh >::Boundary &df) const
Map droplet cloud sources to surface.
Foam::volSurfaceMapping::~volSurfaceMapping
~volSurfaceMapping()=default
Destructor.
faMesh.H
Foam::volSurfaceMapping::volSurfaceMapping
volSurfaceMapping(const faMesh &mesh)
Construct from mesh.
Definition: volSurfaceMapping.H:78
Foam::volSurfaceMapping::mapToVolume
void mapToVolume(const GeometricField< Type, faPatchField, areaMesh > &af, typename GeometricField< Type, fvPatchField, volMesh >::Boundary &bf) const
Map surface field to volume boundary field.
Definition: volSurfaceMapping.C:72
mesh
dynamicFvMesh & mesh
Definition: createDynamicFvMesh.H:6
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
volSurfaceMapping.C
Foam::volSurfaceMapping
Volume to surface and surface to volume mapping.
Definition: volSurfaceMapping.H:56
Foam::faMesh
Finite area mesh. Used for 2-D non-Euclidian finite area method.
Definition: faMesh.H:77
Foam::GeometricField
Generic GeometricField class.
Definition: areaFieldsFwd.H:53