helpBoundary.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 | Copyright (C) 2012-2016 OpenFOAM Foundation
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
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.
15 
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
19  for more details.
20 
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/>.
23 
24 Class
25  Foam::helpBoundary
26 
27 Description
28  This class provides help for boundary conditions (patch fields). When no
29  additional arguments are given, the utility outputs all known boundary
30  conditions.
31 
32  Usage:
33  \plaintable
34  \c -browse <patch type> | open documentation for patch in browser
35  \c -field <name> | boundary conditions for a given field
36  \c -constraint | list constraint boundary conditions
37  \c -fixedValue | list \c fixedValue type boundary conditions
38  \endplaintable
39 
40 Note
41  To use the \c -fixedValue option, the \c -field option should also be used
42 
43 See also
44  Foam::helpType
45  Foam::fvPatchField
46 
47 SourceFiles
48  helpBoundary.C
49  helpBoundaryTemplates.C
50 
51 \*---------------------------------------------------------------------------*/
52 
53 #ifndef helpBoundary_H
54 #define helpBoundary_H
55 
56 #include "helpType.H"
57 #include "IOobject.H"
58 
59 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
60 
61 namespace Foam
62 {
63 namespace helpTypes
64 {
65 
66 /*---------------------------------------------------------------------------*\
67  Class helpBoundary Declaration
68 \*---------------------------------------------------------------------------*/
69 
70 class helpBoundary
71 :
72  public helpType
73 {
74 
75 protected:
76 
77  // Protected Member Functions
78 
79  //- Return/output the available boundary conditions for fields of Type
80  template<class Type>
81  wordList fieldConditions(const IOobject& io, const bool write) const;
82 
83  //- Output the available fixed boundary conditions for fields of Type
84  template<class Type>
85  void fixedValueFieldConditions(const IOobject& io) const;
86 
87 
88 public:
89 
90  //- Runtime type information
91  TypeName("helpBoundary");
92 
93  //- Constructor
94  helpBoundary();
95 
96  //- Destructor
97  virtual ~helpBoundary();
98 
99 
100  // Member Functions
101 
102  //- Initialise - typically setting static variables,
103  // e.g. command line arguments
104  virtual void init();
105 
106  //- Execute the help
107  virtual void execute(const argList& args, const fvMesh& mesh);
108 };
109 
110 
111 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
112 
113 } // End namespace helpTypes
114 } // End namespace Foam
115 
116 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
117 
118 #ifdef NoRepository
119  #include "helpBoundaryTemplates.C"
120 #endif
121 
122 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
123 
124 #endif
125 
126 // ************************************************************************* //
wordList fieldConditions(const IOobject &io, const bool write) const
Return/output the available boundary conditions for fields of Type.
void fixedValueFieldConditions(const IOobject &io) const
Output the available fixed boundary conditions for fields of Type.
dynamicFvMesh & mesh
Extract command arguments and options from the supplied argc and argv parameters. ...
Definition: argList.H:102
virtual void execute(const argList &args, const fvMesh &mesh)
Execute the help.
TypeName("helpBoundary")
Runtime type information.
virtual ~helpBoundary()
Destructor.
virtual void init()
Initialise - typically setting static variables,.
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:78
Foam::argList args(argc, argv)
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
Definition: IOobject.H:91
runTime write()
Namespace for OpenFOAM.