includeFuncEntry.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) 2016-2017 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
26Class
27 Foam::functionEntries::includeFuncEntry
28
29Description
30 Specify a functionObject dictionary file to include, expects the
31 functionObject name to follow with option arguments (without quotes).
32
33 Uses functionObjectList::readFunctionObject() method to search
34 within user/group/other "caseDicts/postProcessing" directories
35 as per Foam::functionObjectList::findDict() and Foam::findEtcFiles()
36
37 The optional field arguments included in the name are inserted in 'field' or
38 'fields' entries in the functionObject dictionary and included in the name
39 of the functionObject entry to avoid conflict.
40
41 Examples:
42 \verbatim
43 #includeFunc Q
44 #includeFunc components(U)
45 #includeFunc mag(Ux)
46 #includeFunc mag(p)
47 \endverbatim
48
49 Other dictionary entries may also be specified using named arguments, for
50 example the \c name of the \c faceZone in the \c flowRateFaceZone \c
51 functionObject configuration set and the \c orientedFields entry which
52 defaults to \c phi may also be overridden as required, e.g.
53
54 \verbatim
55 #includeFunc flowRateFaceZone(name=fZone1)
56 #includeFunc flowRateFaceZone(orientedFields=(phiAlpha),name=fZone1)
57 \endverbatim
58
59See also
60 Foam::functionObjectList
61
62SourceFiles
63 includeFuncEntry.C
64
65\*---------------------------------------------------------------------------*/
66
67#ifndef functionEntries_includeFuncEntry_H
68#define functionEntries_includeFuncEntry_H
69
70#include "functionEntry.H"
71
72// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
73
74namespace Foam
75{
76namespace functionEntries
77{
78
79/*---------------------------------------------------------------------------*\
80 Class includeFuncEntry Declaration
81\*---------------------------------------------------------------------------*/
84:
85 public functionEntry
86{
87public:
88
89 //- Run function in a sub-dict context
90 static bool execute(dictionary& parentDict, Istream& is);
91};
92
93
94// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
95
96} // End namespace functionEntries
97} // End namespace Foam
98
99// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
100
101#endif
102
103// ************************************************************************* //
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
Definition: Istream.H:64
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:126
Specify a functionObject dictionary file to include, expects the functionObject name to follow with o...
static bool execute(dictionary &parentDict, Istream &is)
Run function in a sub-dict context.
A functionEntry causes entries to be added/manipulated on the specified dictionary given an input str...
Definition: functionEntry.H:69
Namespace for OpenFOAM.