1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | foam-extend: Open Source CFD
4 \\ / O peration | Version: 3.2
5 \\ / A nd | Web: http://www.foam-extend.org
6 \\/ M anipulation | For copyright notice see file Copyright
7 -------------------------------------------------------------------------------
9 This file is part of foam-extend.
11 foam-extend 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 3 of the License, or (at your
14 option) any later version.
16 foam-extend is distributed in the hope that it will be useful, but
17 WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 General Public License for more details.
21 You should have received a copy of the GNU General Public License
22 along with foam-extend. If not, see <http://www.gnu.org/licenses/>.
25 Foam::surfaceSlipDisplacementFvPatchField
28 fvPatchField corresponding to surfaceSlipDisplacementPointPatchField.
29 Is just a slip type since all hard work (projection) is done in the
33 surfaceSlipDisplacementFvPatchField.C
35 \*---------------------------------------------------------------------------*/
37 #ifndef surfaceSlipDisplacementFvPatchField_H
38 #define surfaceSlipDisplacementFvPatchField_H
40 #include "slipFvPatchField.H"
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47 /*---------------------------------------------------------------------------*\
48 Class surfaceSlipDisplacementFvPatch Declaration
49 \*---------------------------------------------------------------------------*/
52 class surfaceSlipDisplacementFvPatchField
54 public slipFvPatchField<Type>
59 //- Runtime type information
60 TypeName("surfaceSlipDisplacement");
65 //- Construct from patch and internal field
66 surfaceSlipDisplacementFvPatchField
69 const DimensionedField<Type, volMesh>& iF
72 slipFvPatchField<Type>(p, iF)
75 //- Construct from patch, internal field and dictionary
76 surfaceSlipDisplacementFvPatchField
79 const DimensionedField<Type, volMesh>& iF,
80 const dictionary& dict
83 slipFvPatchField<Type>(p, iF, dict)
86 //- Construct by mapping given surfaceSlipDisplacementFvPatchField
88 surfaceSlipDisplacementFvPatchField
90 const surfaceSlipDisplacementFvPatchField<Type>& ptf,
92 const DimensionedField<Type, volMesh>& iF,
93 const fvPatchFieldMapper& mapper
96 slipFvPatchField<Type>(ptf, p, iF, mapper)
100 //- Construct as copy
101 surfaceSlipDisplacementFvPatchField
103 const surfaceSlipDisplacementFvPatchField<Type>& ptf
106 slipFvPatchField<Type>(ptf)
109 //- Construct and return a clone
110 virtual tmp<fvPatchField<Type> > clone() const
112 return tmp<fvPatchField<Type> >
114 new surfaceSlipDisplacementFvPatchField<Type>(*this)
118 //- Construct as copy setting internal field reference
119 surfaceSlipDisplacementFvPatchField
121 const surfaceSlipDisplacementFvPatchField<Type>& ptf,
122 const DimensionedField<Type, volMesh>& iF
125 slipFvPatchField<Type>(ptf, iF)
128 //- Construct and return a clone setting internal field reference
129 virtual tmp<fvPatchField<Type> > clone
131 const DimensionedField<Type, volMesh>& iF
134 return tmp<fvPatchField<Type> >
136 new surfaceSlipDisplacementFvPatchField<Type>(*this, iF)
140 virtual void write(Ostream& os) const
142 slipFvPatchField<Type>::write(os);
143 // Only so we can easily postprocess.
144 this->writeEntry("value", os);
149 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
151 } // End namespace Foam
153 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
157 // ************************************************************************* //