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 Foam::inletOutletFvPatchField
29 Foam::inletOutletFvPatchField
32 inletOutletFvPatchField.C
34 \*---------------------------------------------------------------------------*/
36 #ifndef inletOutletFvPatchField_H
37 #define inletOutletFvPatchField_H
39 #include "mixedFvPatchField.H"
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46 /*---------------------------------------------------------------------------*\
47 Class inletOutletFvPatch Declaration
48 \*---------------------------------------------------------------------------*/
51 class inletOutletFvPatchField
53 public mixedFvPatchField<Type>
65 //- Runtime type information
66 TypeName("inletOutlet");
71 //- Construct from patch and internal field
72 inletOutletFvPatchField
75 const DimensionedField<Type, volMesh>&
78 //- Construct from patch, internal field and dictionary
79 inletOutletFvPatchField
82 const DimensionedField<Type, volMesh>&,
86 //- Construct by mapping given inletOutletFvPatchField onto a new patch
87 inletOutletFvPatchField
89 const inletOutletFvPatchField<Type>&,
91 const DimensionedField<Type, volMesh>&,
92 const fvPatchFieldMapper&
96 inletOutletFvPatchField
98 const inletOutletFvPatchField<Type>&
101 //- Construct and return a clone
102 virtual tmp<fvPatchField<Type> > clone() const
104 return tmp<fvPatchField<Type> >
106 new inletOutletFvPatchField<Type>(*this)
110 //- Construct as copy setting internal field reference
111 inletOutletFvPatchField
113 const inletOutletFvPatchField<Type>&,
114 const DimensionedField<Type, volMesh>&
117 //- Construct and return a clone setting internal field reference
118 virtual tmp<fvPatchField<Type> > clone
120 const DimensionedField<Type, volMesh>& iF
123 return tmp<fvPatchField<Type> >
125 new inletOutletFvPatchField<Type>(*this, iF)
134 //- Return the name of phi
135 const word& phiName() const
140 //- Return reference to the name of phi to allow adjustment
147 //- Update the coefficients associated with the patch field
148 virtual void updateCoeffs();
151 virtual void write(Ostream&) const;
156 virtual void operator=(const fvPatchField<Type>& pvf);
160 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
162 } // End namespace Foam
164 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
167 # include "inletOutletFvPatchField.C"
170 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
174 // ************************************************************************* //