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 Set of locations to sample.at patches
30 Call write() to sample and write files.
35 \*---------------------------------------------------------------------------*/
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47 // Forward declaration of classes
53 /*---------------------------------------------------------------------------*\
54 Class patchProbes Declaration
55 \*---------------------------------------------------------------------------*/
67 // Private Member Functions
69 //- Sample and write a particular volume field
73 const GeometricField<Type, fvPatchField, volMesh>&
77 //- Sample and write all the fields of the given type
79 void sampleAndWrite(const fieldGroup<Type>&);
82 //- Sample a volume field at all locations
84 tmp<Field<Type> > sample
86 const GeometricField<Type, fvPatchField, volMesh>&
90 //- Sample a single field on all sample locations
92 tmp<Field<Type> > sample(const word& fieldName) const;
95 //- Disallow default bitwise copy construct
96 patchProbes(const patchProbes&);
98 //- Disallow default bitwise assignment
99 void operator=(const patchProbes&);
104 //- Runtime type information
105 TypeName("patchProbes");
110 //- Construct for given objectRegistry and dictionary.
111 // Allow the possibility to load fields from files
115 const objectRegistry&,
117 const bool loadFromFiles = false
122 virtual ~patchProbes();
127 virtual void write();
130 virtual void read(const dictionary&);
132 //- Find elements containing patchProbes
133 virtual void findElements(const fvMesh&);
138 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
140 } // End namespace Foam
142 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
145 # include "patchProbesTemplates.C"
148 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
152 // ************************************************************************* //