steadyParticleTracksTemplates.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) 2011-2016 OpenFOAM Foundation
9  Copyright (C) 2022 OpenCFD Ltd.
10 -------------------------------------------------------------------------------
11 License
12  This file is part of OpenFOAM.
13 
14  OpenFOAM is free software: you can redistribute it and/or modify it
15  under the terms of the GNU General Public License as published by
16  the Free Software Foundation, either version 3 of the License, or
17  (at your option) any later version.
18 
19  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
20  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
21  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22  for more details.
23 
24  You should have received a copy of the GNU General Public License
25  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
26 
27 \*---------------------------------------------------------------------------*/
28 
29 #ifndef Foam_steadyParticleTracksTemplates_H
30 #define Foam_steadyParticleTracksTemplates_H
31 
32 #include "OFstream.H"
33 #include "IOobjectList.H"
34 #include "IOField.H"
35 
36 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
37 
38 namespace Foam
39 {
40 
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42 
43 template<class Type>
44 tmp<IOField<Type>> readParticleField
45 (
46  const word& fieldName,
47  const IOobjectList& cloudObjects
48 );
49 
50 template<class Type>
51 void writeVTK(OFstream& os, const Type& value);
52 
53 template<class Type>
54 void writeVTKField
55 (
56  OFstream& os,
57  const IOField<Type>& field,
58  const List<labelList>& addr
59 );
60 
61 template<class Type>
62 void processFields
63 (
64  OFstream& os,
65  const List<labelList>& addr,
66  const IOobjectList& cloudObjects
67 );
68 
69 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
70 
71 } // End namespace Foam
72 
73 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
74 
75 #ifdef NoRepository
77 #endif
78 
79 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
80 
81 #endif
82 
83 // ************************************************************************* //
rDeltaTY field()
void writeVTKField(OFstream &os, const IOField< Type > &field, const List< labelList > &addr)
void processFields(OFstream &os, const List< labelList > &addr, const IOobjectList &cloudObjects)
OBJstream os(runTime.globalPath()/outputName)
tmp< IOField< Type > > readParticleField(const word &fieldName, const IOobjectList &cloudObjects)
void writeVTK(OFstream &os, const Type &value)
Namespace for OpenFOAM.