1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
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.
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
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/>.
28 Reads fields from the time folders and adds them to the mesh database
29 for further post-processing.
35 \*---------------------------------------------------------------------------*/
41 #include "pointFieldFwd.H"
42 #include "volFields.H"
43 #include "surfaceFields.H"
45 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
50 // Forward declaration of classes
55 /*---------------------------------------------------------------------------*\
56 Class readFields Declaration
57 \*---------------------------------------------------------------------------*/
65 //- Name of this set of readFields object
68 const objectRegistry& obr_;
77 PtrList<volScalarField> vsf_;
78 PtrList<volVectorField> vvf_;
79 PtrList<volSphericalTensorField> vSpheretf_;
80 PtrList<volSymmTensorField> vSymmtf_;
81 PtrList<volTensorField> vtf_;
83 PtrList<surfaceScalarField> ssf_;
84 PtrList<surfaceVectorField> svf_;
85 PtrList<surfaceSphericalTensorField> sSpheretf_;
86 PtrList<surfaceSymmTensorField> sSymmtf_;
87 PtrList<surfaceTensorField> stf_;
90 // Protected Member Functions
92 //- Disallow default bitwise copy construct
93 readFields(const readFields&);
95 //- Disallow default bitwise assignment
96 void operator=(const readFields&);
102 PtrList<GeometricField<Type, fvPatchField, volMesh> >&,
103 PtrList<GeometricField<Type, fvsPatchField, surfaceMesh> >&
109 //- Runtime type information
110 TypeName("readFields");
115 //- Construct for given objectRegistry and dictionary.
116 // Allow the possibility to load fields from files
120 const objectRegistry&,
122 const bool loadFromFiles = false
127 virtual ~readFields();
132 //- Return name of the readFields object
133 virtual const word& name() const
138 //- Read the field min/max data
139 virtual void read(const dictionary&);
141 //- Execute, currently does nothing
142 virtual void execute();
144 //- Execute at the final time-loop, currently does nothing
148 virtual void write();
150 //- Update for changes of mesh
151 virtual void updateMesh(const mapPolyMesh&)
154 //- Update for changes of mesh
155 virtual void movePoints(const pointField&)
160 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
162 } // End namespace Foam
164 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
167 # include "readFieldsTemplates.C"
170 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
174 // ************************************************************************* //