1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 1991-2008 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::cellMotionFvPatchField
29 Foam::cellMotionFvPatchField
32 cellMotionFvPatchField.C
34 \*---------------------------------------------------------------------------*/
36 #ifndef cellMotionFvPatchField_H
37 #define cellMotionFvPatchField_H
40 #include "fixedValueFvPatchFields.H"
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47 /*---------------------------------------------------------------------------*\
48 Class cellMotionFvPatch Declaration
49 \*---------------------------------------------------------------------------*/
52 class cellMotionFvPatchField
54 public fixedValueFvPatchField<Type>
59 //- Runtime type information
60 TypeName("cellMotion");
65 //- Construct from patch and internal field
66 cellMotionFvPatchField
69 const DimensionedField<Type, volMesh>&
72 //- Construct from patch, internal field and dictionary
73 cellMotionFvPatchField
76 const DimensionedField<Type, volMesh>&,
80 //- Construct by mapping given cellMotionFvPatchField
82 cellMotionFvPatchField
84 const cellMotionFvPatchField<Type>&,
86 const DimensionedField<Type, volMesh>&,
87 const fvPatchFieldMapper&
91 cellMotionFvPatchField
93 const cellMotionFvPatchField<Type>&
96 //- Construct and return a clone
97 virtual tmp<fvPatchField<Type> > clone() const
99 return tmp<fvPatchField<Type> >
101 new cellMotionFvPatchField<Type>(*this)
105 //- Construct as copy setting internal field reference
106 cellMotionFvPatchField
108 const cellMotionFvPatchField<Type>&,
109 const DimensionedField<Type, volMesh>&
112 //- Construct and return a clone setting internal field reference
113 virtual tmp<fvPatchField<Type> > clone
115 const DimensionedField<Type, volMesh>& iF
118 return tmp<fvPatchField<Type> >
120 new cellMotionFvPatchField<Type>(*this, iF)
127 //- Update the coefficients associated with the patch field
128 virtual void updateCoeffs();
131 virtual void write(Ostream&) const;
135 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
137 } // End namespace Foam
139 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
142 # include "cellMotionFvPatchField.C"
145 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
149 // ************************************************************************* //