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::uniformFixedValueFvPatchField
29 Foam::uniformFixedValueFvPatchField
32 uniformFixedValueFvPatchField.C
34 \*---------------------------------------------------------------------------*/
36 #ifndef uniformFixedValueFvPatchField_H
37 #define uniformFixedValueFvPatchField_H
40 #include "fixedValueFvPatchFields.H"
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47 /*---------------------------------------------------------------------------*\
48 Class uniformFixedValueFvPatch Declaration
49 \*---------------------------------------------------------------------------*/
52 class uniformFixedValueFvPatchField
54 public fixedValueFvPatchField<Type>
63 //- Runtime type information
64 TypeName("uniformFixedValue");
69 //- Construct from patch and internal field
70 uniformFixedValueFvPatchField
73 const DimensionedField<Type, volMesh>&
76 //- Construct from patch, internal field and dictionary
77 uniformFixedValueFvPatchField
80 const DimensionedField<Type, volMesh>&,
84 //- Construct by mapping given uniformFixedValueFvPatchField
86 uniformFixedValueFvPatchField
88 const uniformFixedValueFvPatchField<Type>&,
90 const DimensionedField<Type, volMesh>&,
91 const fvPatchFieldMapper&
95 uniformFixedValueFvPatchField
97 const uniformFixedValueFvPatchField<Type>&
100 //- Construct and return a clone
101 virtual tmp<fvPatchField<Type> > clone() const
103 return tmp<fvPatchField<Type> >
105 new uniformFixedValueFvPatchField<Type>(*this)
109 //- Construct as copy setting internal field reference
110 uniformFixedValueFvPatchField
112 const uniformFixedValueFvPatchField<Type>&,
113 const DimensionedField<Type, volMesh>&
116 //- Construct and return a clone setting internal field reference
117 virtual tmp<fvPatchField<Type> > clone
119 const DimensionedField<Type, volMesh>& iF
122 return tmp<fvPatchField<Type> >
124 new uniformFixedValueFvPatchField<Type>(*this, iF)
133 //- Return the fluctuation scale
134 const Type& uniformValue() const
136 return uniformValue_;
139 //- Return reference to the fluctuation scale to allow adjustment
142 return uniformValue_;
148 //- Map (and resize as needed) from self given a mapping object
151 const fvPatchFieldMapper&
156 virtual void write(Ostream&) const;
160 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
162 } // End namespace Foam
164 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
167 # include "uniformFixedValueFvPatchField.C"
170 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
174 // ************************************************************************* //