readFields.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 Global
27  readFields
28 
29 Description
30 
31 SourceFiles
32  readFields.C
33 
34 \*---------------------------------------------------------------------------*/
35 
36 #ifndef readFields_H
37 #define readFields_H
38 
39 #include "IOobjectList.H"
40 #include "PtrList.H"
41 
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43 
44 namespace Foam
45 {
46  // Read the fields and hold on the pointer list
47  template<class Type, template<class> class PatchField, class GeoMesh>
48  void readFields
49  (
50  const typename GeoMesh::Mesh& mesh,
51  const IOobjectList& objects,
52  PtrList<GeometricField<Type, PatchField, GeoMesh>>& fields,
53  const bool readOldTime
54  );
55 
56  // Read the fields and hold on the pointer list
57  template<class Mesh, class GeoField>
58  void readFields
59  (
60  const Mesh& mesh,
61  const IOobjectList& objects,
62  PtrList<GeoField>& fields
63  );
64 }
65 
66 
67 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
68 
69 #ifdef NoRepository
70  #include "readFields.C"
71 #endif
72 
73 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
74 
75 #endif
76 
77 // ************************************************************************* //
IOobjectList.H
mesh
dynamicFvMesh & mesh
Definition: createDynamicFvMesh.H:6
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::readFields
void readFields(const typename GeoFieldType::Mesh &mesh, const IOobjectList &objects, const wordHashSet &selectedFields, LIFOStack< regIOobject * > &storedObjects)
Read the selected GeometricFields of the templated type.
Definition: ReadFieldsTemplates.C:312
PtrList.H
Foam::GeoMesh::Mesh
MESH Mesh
Definition: GeoMesh.H:63
fields
multivariateSurfaceInterpolationScheme< scalar >::fieldTable fields
Definition: createFields.H:97