1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | foam-extend: Open Source CFD
4 \\ / O peration | Version: 3.2
5 \\ / A nd | Web: http://www.foam-extend.org
6 \\/ M anipulation | For copyright notice see file Copyright
7 -------------------------------------------------------------------------------
9 This file is part of foam-extend.
11 foam-extend is free software: you can redistribute it and/or modify it
12 under the terms of the GNU General Public License as published by the
13 Free Software Foundation, either version 3 of the License, or (at your
14 option) any later version.
16 foam-extend is distributed in the hope that it will be useful, but
17 WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 General Public License for more details.
21 You should have received a copy of the GNU General Public License
22 along with foam-extend. If not, see <http://www.gnu.org/licenses/>.
25 Foam::surfaceInterpolateFields
28 Reads fields from the time folders and adds them to the mesh database
29 for further post-processing.
32 surfaceInterpolateFields.C
33 IOsurfaceInterpolateFields.H
35 \*---------------------------------------------------------------------------*/
37 #ifndef surfaceInterpolateFields_H
38 #define surfaceInterpolateFields_H
41 //#include "pointFieldFwd.H"
42 #include "surfaceFields.H"
45 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
50 // Forward declaration of classes
55 /*---------------------------------------------------------------------------*\
56 Class surfaceInterpolateFields Declaration
57 \*---------------------------------------------------------------------------*/
59 class surfaceInterpolateFields
65 //- Name of this set of surfaceInterpolateFields object
68 const objectRegistry& obr_;
75 List<Tuple2<word, word> > fieldSet_;
77 //- Locally constructed fields
78 PtrList<surfaceScalarField> ssf_;
79 PtrList<surfaceVectorField> svf_;
80 PtrList<surfaceSphericalTensorField> sSpheretf_;
81 PtrList<surfaceSymmTensorField> sSymmtf_;
82 PtrList<surfaceTensorField> stf_;
85 // Protected Member Functions
87 //- Disallow default bitwise copy construct
88 surfaceInterpolateFields(const surfaceInterpolateFields&);
90 //- Disallow default bitwise assignment
91 void operator=(const surfaceInterpolateFields&);
94 void interpolateFields
96 PtrList<GeometricField<Type, fvsPatchField, surfaceMesh> >&
102 //- Runtime type information
103 TypeName("surfaceInterpolateFields");
108 //- Construct for given objectRegistry and dictionary.
109 // Allow the possibility to load fields from files
110 surfaceInterpolateFields
113 const objectRegistry&,
115 const bool loadFromFiles = false
120 virtual ~surfaceInterpolateFields();
125 //- Return name of the surfaceInterpolateFields object
126 virtual const word& name() const
131 //- Read the field min/max data
132 virtual void read(const dictionary&);
134 //- Execute, currently does nothing
135 virtual void execute();
137 //- Execute at the final time-loop, currently does nothing
141 virtual void write();
143 //- Update for changes of mesh
144 virtual void updateMesh(const mapPolyMesh&)
147 //- Update for changes of mesh
148 virtual void movePoints(const pointField&)
153 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
155 } // End namespace Foam
157 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
160 # include "surfaceInterpolateFieldsTemplates.C"
163 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
167 // ************************************************************************* //