patchSummaryTemplates.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-2016 OpenFOAM Foundation
9 -------------------------------------------------------------------------------
10 License
11  This file is part of OpenFOAM.
12 
13  OpenFOAM is free software: you can redistribute it and/or modify it
14  under the terms of the GNU General Public License as published by
15  the Free Software Foundation, either version 3 of the License, or
16  (at your option) any later version.
17 
18  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21  for more details.
22 
23  You should have received a copy of the GNU General Public License
24  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25 
26 \*---------------------------------------------------------------------------*/
27 
28 #ifndef patchSummaryTemplates_H
29 #define patchSummaryTemplates_H
30 
31 #include "fvCFD.H"
32 #include "volFields.H"
33 
34 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
35 
36 namespace Foam
37 {
38  template<class GeoField>
39  void addToFieldList
40  (
41  PtrList<GeoField>& fieldList,
42  const IOobject& obj,
43  const label fieldi,
44  const typename GeoField::Mesh& mesh
45  );
46 
47  template<class GeoField>
48  void outputFieldList
49  (
50  const PtrList<GeoField>& fieldList,
51  const label patchi
52  );
53 
54  template<class GeoField>
55  void collectFieldList
56  (
57  const PtrList<GeoField>& fieldList,
58  const label patchi,
59  HashTable<word>& fieldToType
60  );
61 } // End namespace Foam
62 
63 
64 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
65 
66 #ifdef NoRepository
67  #include "patchSummaryTemplates.C"
68 #endif
69 
70 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
71 
72 #endif
73 
74 // ************************************************************************* //
void addToFieldList(PtrList< GeoField > &fieldList, const IOobject &obj, const label fieldi, const typename GeoField::Mesh &mesh)
dynamicFvMesh & mesh
void collectFieldList(const PtrList< GeoField > &fieldList, const label patchi, HashTable< word > &fieldToType)
A HashTable similar to std::unordered_map.
Definition: HashTable.H:102
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers...
Definition: List.H:55
Defines the attributes of an object for which implicit objectRegistry management is supported...
Definition: IOobject.H:166
void outputFieldList(const PtrList< GeoField > &fieldList, const label patchi)
Namespace for OpenFOAM.