uniformInterpolate.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) 2012-2016 OpenFOAM Foundation
9-------------------------------------------------------------------------------
10License
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#include "GeometricField.H"
29#include "HashPtrTable.H"
30
31// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
32
33namespace Foam
34{
35
36// * * * * * * * * * * * * * * * Global functions * * * * * * * * * * * * * //
37
38//- Interpolate selected fields (given by indices and corresponding weights)
39// (boundary type becomes calculated). Fields stored per index. Field gets name
40// "uniformInterpolate(" + fld.name() + ')'.
41template<class GeoField>
43(
44 const HashPtrTable<GeoField, label, Hash<label>>& fields,
45 const labelList& indices,
46 const scalarField& weights
47);
48
49//- Interpolate fields. fieldsCache contains per timeName all loaded fields.
50// Resulting field gets properties according to fieldIO
51template<class GeoField>
53(
54 const IOobject& fieldIO,
55 const word& fieldName,
56 const wordList& times,
57 const scalarField& weights,
58 const objectRegistry& fieldsCache
59);
60
61//- Interpolate fields. fieldsCache contains per timeName all loaded fields.
62// Resulting field gets properties according to fieldIO
63template<class GeoField>
65(
66 const IOobject& fieldIO,
67 const word& fieldName,
68 const wordList& times,
69 const scalarField& weights,
70 const word& registryName = "fieldsCache"
71);
72
73
74// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
75
76} // End namespace Foam
77
78
79// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
80
81#ifdef NoRepository
82 #include "uniformInterpolate.C"
83#endif
84
85// ************************************************************************* //
A HashTable of pointers to objects of type <T>, with deallocation management of the pointers.
Definition: HashPtrTable.H:68
Defines the attributes of an object for which implicit objectRegistry management is supported,...
Definition: IOobject.H:170
Registry of regIOobjects.
A class for managing temporary objects.
Definition: tmp.H:65
A class for handling words, derived from Foam::string.
Definition: word.H:68
Namespace for OpenFOAM.
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)
multivariateSurfaceInterpolationScheme< scalar >::fieldTable fields
Definition: createFields.H:97
Hash function class. The default definition is for primitives. Non-primitives used to hash entries on...
Definition: Hash.H:54