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::fluxFvPatchField
29 Foam::fluxFvPatchField
34 \*---------------------------------------------------------------------------*/
36 #ifndef fluxFvPatchField_H
37 #define fluxFvPatchField_H
39 #include "fixedGradientFvPatchField.H"
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46 /*---------------------------------------------------------------------------*\
47 Class fluxFvPatch Declaration
48 \*---------------------------------------------------------------------------*/
51 class fluxFvPatchField
53 public fixedGradientFvPatchField<Type>
60 //- Name of diffusion field
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 fluxFvPatchField onto a new patch
90 const fluxFvPatchField<Type>&,
92 const DimensionedField<Type, volMesh>&,
93 const fvPatchFieldMapper&
99 const fluxFvPatchField<Type>&
102 //- Construct and return a clone
103 virtual tmp<fvPatchField<Type> > clone() const
105 return tmp<fvPatchField<Type> >
107 new fluxFvPatchField<Type>(*this)
111 //- Construct as copy setting internal field reference
114 const fluxFvPatchField<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 fluxFvPatchField<Type>(*this, iF)
133 //- Update the coefficients associated with the patch field
134 virtual void updateCoeffs();
137 virtual void write(Ostream&) const;
141 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
143 } // End namespace Foam
145 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
148 # include "fluxFvPatchField.C"
151 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
155 // ************************************************************************* //