uniformInterpolate.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2012-2018 OpenFOAM Foundation
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
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.
15 
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
19  for more details.
20 
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/>.
23 
24 \*---------------------------------------------------------------------------*/
25 
26 #include "GeometricField.H"
27 #include "HashPtrTable.H"
28 
29 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
30 
31 namespace Foam
32 {
33 
34 // * * * * * * * * * * * * * * * Global functions * * * * * * * * * * * * * //
35 
36 //- Interpolate selected fields (given by indices and corresponding weights)
37 // (boundary type becomes calculated). Fields stored per index. Field gets name
38 // "uniformInterpolate(" + fld.name() + ')'.
39 template<class GeoField>
40 tmp<GeoField> uniformInterpolate
41 (
42  const HashPtrTable<GeoField, label, Hash<label>>& fields,
43  const labelList& indices,
44  const scalarField& weights
45 );
46 
47 //- Interpolate fields. fieldsCache contains per timeName all loaded fields.
48 // Resulting field gets properties according to fieldIO
49 template<class GeoField>
50 tmp<GeoField> uniformInterpolate
51 (
52  const IOobject& fieldIO,
53  const word& fieldName,
54  const wordList& times,
55  const scalarField& weights,
56  const objectRegistry& fieldsCache
57 );
58 
59 //- Interpolate fields. fieldsCache contains per timeName all loaded fields.
60 // Resulting field gets properties according to fieldIO
61 template<class GeoField>
62 tmp<GeoField> uniformInterpolate
63 (
64  const IOobject& fieldIO,
65  const word& fieldName,
66  const wordList& times,
67  const scalarField& weights,
68  const word& registryName = "fieldsCache"
69 );
70 
71 
72 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
73 
74 } // End namespace Foam
75 
76 
77 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
78 
79 #ifdef NoRepository
80  #include "uniformInterpolate.C"
81 #endif
82 
83 // ************************************************************************* //
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Definition: label.H:59
tmp< GeoField > uniformInterpolate(const HashPtrTable< GeoField, label, Hash< label >> &fields, const labelList &indices, const scalarField &weights)
Interpolate selected fields (given by indices and corresponding weights)
Info<< "Calculating turbulent flame speed field St\"<< endl;volScalarField St(IOobject("St", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), flameWrinkling->Xi() *Su);multivariateSurfaceInterpolationScheme< scalar >::fieldTable fields
Definition: createFields.H:228
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
List< label > labelList
A List of labels.
Definition: labelList.H:56
List< word > wordList
A List of words.
Definition: fileName.H:54
Namespace for OpenFOAM.