1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd.
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::uniformFixedValuePointPatchField
29 Foam::uniformFixedValuePointPatchField
32 uniformFixedValuePointPatchField.C
34 \*---------------------------------------------------------------------------*/
36 #ifndef uniformFixedValuePointPatchField_H
37 #define uniformFixedValuePointPatchField_H
39 #include "fixedValuePointPatchField.H"
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46 /*---------------------------------------------------------------------------*\
47 Class uniformFixedValuePointPatchField Declaration
48 \*---------------------------------------------------------------------------*/
51 class uniformFixedValuePointPatchField
53 public fixedValuePointPatchField<Type>
62 //- Runtime type information
63 TypeName("uniformFixedValue");
68 //- Construct from patch and internal field
69 uniformFixedValuePointPatchField
72 const DimensionedField<Type, pointMesh>&
75 //- Construct from patch, internal field and dictionary
76 uniformFixedValuePointPatchField
79 const DimensionedField<Type, pointMesh>&,
83 //- Construct by mapping given patchField<Type> onto a new patch
84 uniformFixedValuePointPatchField
86 const uniformFixedValuePointPatchField<Type>&,
88 const DimensionedField<Type, pointMesh>&,
89 const pointPatchFieldMapper&
93 uniformFixedValuePointPatchField
95 const uniformFixedValuePointPatchField<Type>&
98 //- Construct and return a clone
99 virtual autoPtr<pointPatchField<Type> > clone() const
101 return autoPtr<pointPatchField<Type> >
103 new uniformFixedValuePointPatchField<Type>
110 //- Construct as copy setting internal field reference
111 uniformFixedValuePointPatchField
113 const uniformFixedValuePointPatchField<Type>&,
114 const DimensionedField<Type, pointMesh>&
118 //- Construct and return a clone setting internal field reference
119 virtual autoPtr<pointPatchField<Type> > clone
121 const DimensionedField<Type, pointMesh>& iF
124 return autoPtr<pointPatchField<Type> >
126 new uniformFixedValuePointPatchField<Type>
139 //- Return the fluctuation scale
140 const Type& uniformValue() const
142 return uniformValue_;
145 //- Return reference to the fluctuation scale to allow adjustment
148 return uniformValue_;
153 virtual void write(Ostream&) const;
157 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
159 } // End namespace Foam
161 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
164 # include "uniformFixedValuePointPatchField.C"
167 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
171 // ************************************************************************* //