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-------------------------------------------------------------------------------
11License
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
38namespace Foam
39{
40
41// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42
43template<class Type>
45(
46 const word& fieldName,
47 const IOobjectList& cloudObjects
48);
49
50template<class Type>
51void writeVTK(OFstream& os, const Type& value);
52
53template<class Type>
55(
56 OFstream& os,
57 const IOField<Type>& field,
58 const List<labelList>& addr
59);
60
61template<class Type>
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// ************************************************************************* //
A primitive field of type <T> with automated input and output.
Definition: IOField.H:58
List of IOobjects with searching and retrieving facilities.
Definition: IOobjectList.H:59
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Definition: List.H:77
Output to file stream, using an OSstream.
Definition: OFstream.H:57
A class for managing temporary objects.
Definition: tmp.H:65
A class for handling words, derived from Foam::string.
Definition: word.H:68
rDeltaTY field()
OBJstream os(runTime.globalPath()/outputName)
Namespace for OpenFOAM.
void writeVTK(OFstream &os, const Type &value)
void processFields(OFstream &os, const List< labelList > &addr, const IOobjectList &cloudObjects)
tmp< IOField< Type > > readParticleField(const word &fieldName, const IOobjectList &cloudObjects)
void writeVTKField(OFstream &os, const IOField< Type > &field, const List< labelList > &addr)