zeroInletOutletFvPatchField.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2023 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::zeroInletOutletFvPatchField
26 
27 Description
28  This boundary condition provides a generic outflow condition
29 
30  Zero gradient is applied for outflow and a zero value applied for reverse
31  flow.
32 
33 Usage
34  Example of the boundary condition specification:
35  \verbatim
36  <patchName>
37  {
38  type zeroInletOutlet;
39  }
40  \endverbatim
41 
42 See also
43  Foam::inletOutletFvPatchField
44  Foam::zeroGradientFvPatchField
45 
46 SourceFiles
47  zeroInletOutletFvPatchField.C
48 
49 \*---------------------------------------------------------------------------*/
50 
51 #ifndef zeroInletOutletFvPatchField_H
52 #define zeroInletOutletFvPatchField_H
53 
55 
56 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
57 
58 namespace Foam
59 {
60 
61 /*---------------------------------------------------------------------------*\
62  Class zeroInletOutletFvPatchField Declaration
63 \*---------------------------------------------------------------------------*/
64 
65 template<class Type>
67 :
68  public inletOutletFvPatchField<Type>
69 {
70 
71 public:
72 
73  //- Runtime type information
74  TypeName("zeroInletOutlet");
75 
76 
77  // Constructors
78 
80 
81  //- Construct from patch, internal field and dictionary
83  (
84  const fvPatch&,
86  const dictionary&
87  );
88 
89  //- Construct and return a clone setting internal field reference
91  (
93  ) const
94  {
96  (
98  );
99  }
100 
101 
102  // Member Functions
103 
104  //- Write
105  virtual void write(Ostream&) const;
106 };
107 
108 
109 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
110 
111 } // End namespace Foam
112 
113 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
114 
115 #ifdef NoRepository
117 #endif
118 
119 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
120 
121 #endif
122 
123 // ************************************************************************* //
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition: Ostream.H:57
A list of keyword definitions, which are a keyword followed by any number of values (e....
Definition: dictionary.H:160
tmp< fvPatchField< Type > > clone() const
Disallow clone without setting internal field reference.
Definition: fvPatchField.H:203
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Definition: fvPatch.H:64
This boundary condition provides a generic outflow condition, with specified inflow for the case of r...
A class for managing temporary objects.
Definition: tmp.H:55
This boundary condition provides a generic outflow condition.
TypeName("zeroInletOutlet")
Runtime type information.
virtual void write(Ostream &) const
Write.
zeroInletOutletFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &, const dictionary &)
Construct from patch, internal field and dictionary.
Namespace for OpenFOAM.