1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright held by original author
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
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 the
13 Free Software Foundation; either version 2 of the License, or (at your
14 option) any later version.
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
21 You should have received a copy of the GNU General Public License
22 along with OpenFOAM; if not, write to the Free Software Foundation,
23 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
26 inletOutletFaPatchField
31 inletOutletFaPatchField.C
33 \*---------------------------------------------------------------------------*/
35 #ifndef inletOutletFaPatchField_H
36 #define inletOutletFaPatchField_H
38 #include "mixedFaPatchField.H"
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 /*---------------------------------------------------------------------------*\
46 Class inletOutletFaPatchField Declaration
47 \*---------------------------------------------------------------------------*/
50 class inletOutletFaPatchField
52 public mixedFaPatchField<Type>
64 //- Runtime type information
65 TypeName("inletOutlet");
70 //- Construct from patch and internal field
71 inletOutletFaPatchField
74 const DimensionedField<Type, areaMesh>&
77 //- Construct from patch, internal field and dictionary
78 inletOutletFaPatchField
81 const DimensionedField<Type, areaMesh>&,
85 //- Construct by mapping given inletOutletFaPatchField onto a new patch
86 inletOutletFaPatchField
88 const inletOutletFaPatchField<Type>&,
90 const DimensionedField<Type, areaMesh>&,
91 const faPatchFieldMapper&
95 inletOutletFaPatchField
97 const inletOutletFaPatchField<Type>&
100 //- Construct and return a clone
101 virtual tmp<faPatchField<Type> > clone() const
103 return tmp<faPatchField<Type> >
105 new inletOutletFaPatchField<Type>(*this)
109 //- Construct as copy setting internal field reference
110 inletOutletFaPatchField
112 const inletOutletFaPatchField<Type>&,
113 const DimensionedField<Type, areaMesh>&
116 //- Construct and return a clone setting internal field reference
117 virtual tmp<faPatchField<Type> > clone
119 const DimensionedField<Type, areaMesh>& iF
122 return tmp<faPatchField<Type> >
124 new inletOutletFaPatchField<Type>(*this, iF)
133 //- Return the name of phi
134 const word& phiName() const
139 //- Return reference to the name of phi to allow adjustment
146 //- Update the coefficients associated with the patch field
147 virtual void updateCoeffs();
150 virtual void write(Ostream&) const;
154 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
156 } // End namespace Foam
158 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
161 # include "inletOutletFaPatchField.C"
164 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
168 // ************************************************************************* //