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 -------------------------------------------------------------------------------
10 License
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 #ifndef steadyParticleTracksTemplates_H
29 #define steadyParticleTracksTemplates_H
30 
31 #include "OFstream.H"
32 #include "IOobjectList.H"
33 #include "PtrList.H"
34 #include "Field.H"
35 
36 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
37 
38 namespace Foam
39 {
40 
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42 
43 template<class Type>
44 bool fieldOk(const IOobjectList& cloudObjs, const word& name);
45 
46 template<class Type>
47 tmp<Field<Type>> readParticleField
48 (
49  const word& name,
50  const IOobjectList cloudObjs
51 );
52 
53 template<class Type>
54 void readFields
55 (
56  PtrList<List<Type>>& values,
57  const List<word>& fields,
58  const IOobjectList& cloudObjs
59 );
60 
61 template<class Type>
62 void writeVTK(OFstream& os, const Type& value);
63 
64 template<class Type>
65 void writeVTKFields
66 (
67  OFstream& os,
68  const PtrList<List<Type>>& values,
69  const List<List<label>>& addr,
70  const List<word>& fieldNames
71 );
72 
73 template<class Type>
74 void processFields
75 (
76  OFstream& os,
77  const List<List<label>>& addr,
78  const List<word>& userFieldNames,
79  const IOobjectList& cloudObjs
80 );
81 
82 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
83 
84 } // End namespace Foam
85 
86 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
87 
88 #ifdef NoRepository
90 #endif
91 
92 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
93 
94 #endif
95 
96 // ************************************************************************* //
Foam::HashTableOps::values
List< T > values(const HashTable< T, Key, Hash > &tbl, const bool doSort=false)
Definition: HashOps.H:164
IOobjectList.H
Foam::readParticleField
tmp< Field< Type > > readParticleField(const word &name, const IOobjectList cloudObjs)
Foam::writeVTK
void writeVTK(OFstream &os, const Type &value)
OFstream.H
Field.H
steadyParticleTracksTemplates.C
Foam::writeVTKFields
void writeVTKFields(OFstream &os, const PtrList< List< Type >> &values, const List< List< label >> &addr, const List< word > &fieldNames)
Foam::fieldOk
bool fieldOk(const IOobjectList &cloudObjs, const word &name)
fieldNames
const wordRes fieldNames(propsDict.getOrDefault< wordRes >("fields", wordRes()))
os
OBJstream os(runTime.globalPath()/outputName)
Foam
Definition: atmBoundaryLayer.C:26
Foam::readFields
void readFields(const typename GeoFieldType::Mesh &mesh, const IOobjectList &objects, const wordHashSet &selectedFields, LIFOStack< regIOobject * > &storedObjects)
Definition: ReadFieldsTemplates.C:305
Foam::name
word name(const expressions::valueTypeCode typeCode)
Definition: exprTraits.C:52
PtrList.H
fields
multivariateSurfaceInterpolationScheme< scalar >::fieldTable fields
Definition: createFields.H:97
Foam::processFields
void processFields(OFstream &os, const List< List< label >> &addr, const List< word > &userFieldNames, const IOobjectList &cloudObjs)