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
34 \*---------------------------------------------------------------------------*/
36 #ifndef fanFvPatchField_H
37 #define fanFvPatchField_H
39 #include "jumpCyclicFvPatchField.H"
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46 /*---------------------------------------------------------------------------*\
47 Class fanFvPatchField Declaration
48 \*---------------------------------------------------------------------------*/
53 public jumpCyclicFvPatchField<Type>
57 //- Fan pressure rise polynomial coefficients
66 //- Runtime type information
72 //- Construct from patch and internal field
76 const DimensionedField<Type, volMesh>&
79 //- Construct from patch, internal field and dictionary
83 const DimensionedField<Type, volMesh>&,
87 //- Construct by mapping given fanFvPatchField onto a new patch
90 const fanFvPatchField<Type>&,
92 const DimensionedField<Type, volMesh>&,
93 const fvPatchFieldMapper&
99 const fanFvPatchField<Type>&
102 //- Construct and return a clone
103 virtual tmp<fvPatchField<Type> > clone() const
105 return tmp<fvPatchField<Type> >
107 new fanFvPatchField<Type>(*this)
111 //- Construct as copy setting internal field reference
114 const fanFvPatchField<Type>&,
115 const DimensionedField<Type, volMesh>&
118 //- Construct and return a clone setting internal field reference
119 virtual tmp<fvPatchField<Type> > clone
121 const DimensionedField<Type, volMesh>& iF
124 return tmp<fvPatchField<Type> >
126 new fanFvPatchField<Type>(*this, iF)
135 //- Return the "jump" across the patch as a "half" field
136 virtual tmp<Field<Type> > jump() const
144 //- Map (and resize as needed) from self given a mapping object
147 const fvPatchFieldMapper&
150 //- Reverse map the given fvPatchField onto this fvPatchField
153 const fvPatchField<Type>&,
157 // Evaluation functions
159 //- Update the coefficients associated with the patch field
160 virtual void updateCoeffs();
164 virtual void write(Ostream&) const;
168 //- Specialisation of the jump-condition for the pressure
170 void fanFvPatchField<scalar>::updateCoeffs();
173 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
175 } // End namespace Foam
177 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
180 # include "fanFvPatchField.C"
183 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
187 // ************************************************************************* //