FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

surfaceSlipDisplacementFvPatchField.H

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------------*\
00002   =========                 |
00003   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
00004    \\    /   O peration     |
00005     \\  /    A nd           | Copyright (C) 1991-2010 OpenCFD Ltd.
00006      \\/     M anipulation  |
00007 -------------------------------------------------------------------------------
00008 License
00009     This file is part of OpenFOAM.
00010 
00011     OpenFOAM is free software: you can redistribute it and/or modify it
00012     under the terms of the GNU General Public License as published by
00013     the Free Software Foundation, either version 3 of the License, or
00014     (at your option) any later version.
00015 
00016     OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
00017     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00018     FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
00019     for more details.
00020 
00021     You should have received a copy of the GNU General Public License
00022     along with OpenFOAM.  If not, see <http://www.gnu.org/licenses/>.
00023 
00024 Class
00025     Foam::surfaceSlipDisplacementFvPatchField
00026 
00027 Description
00028     fvPatchField corresponding to surfaceSlipDisplacementPointPatchField.
00029     Is just a slip type since all hard work (projection) is done in the
00030     pointPatch field.
00031 
00032 SourceFiles
00033     surfaceSlipDisplacementFvPatchField.C
00034 
00035 \*---------------------------------------------------------------------------*/
00036 
00037 #ifndef surfaceSlipDisplacementFvPatchField_H
00038 #define surfaceSlipDisplacementFvPatchField_H
00039 
00040 #include <finiteVolume/slipFvPatchField.H>
00041 
00042 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00043 
00044 namespace Foam
00045 {
00046 
00047 /*---------------------------------------------------------------------------*\
00048                            Class surfaceSlipDisplacementFvPatch Declaration
00049 \*---------------------------------------------------------------------------*/
00050 
00051 template<class Type>
00052 class surfaceSlipDisplacementFvPatchField
00053 :
00054     public slipFvPatchField<Type>
00055 {
00056 
00057 public:
00058 
00059     //- Runtime type information
00060     TypeName("surfaceSlipDisplacement");
00061 
00062 
00063     // Constructors
00064 
00065         //- Construct from patch and internal field
00066         surfaceSlipDisplacementFvPatchField
00067         (
00068             const fvPatch& p,
00069             const DimensionedField<Type, volMesh>& iF
00070         )
00071         :
00072             slipFvPatchField<Type>(p, iF)
00073         {}
00074 
00075         //- Construct from patch, internal field and dictionary
00076         surfaceSlipDisplacementFvPatchField
00077         (
00078             const fvPatch& p,
00079             const DimensionedField<Type, volMesh>& iF,
00080             const dictionary& dict
00081         )
00082         :
00083             slipFvPatchField<Type>(p, iF, dict)
00084         {}
00085 
00086         //- Construct by mapping given surfaceSlipDisplacementFvPatchField
00087         //  onto a new patch
00088         surfaceSlipDisplacementFvPatchField
00089         (
00090             const surfaceSlipDisplacementFvPatchField<Type>& ptf,
00091             const fvPatch& p,
00092             const DimensionedField<Type, volMesh>& iF,
00093             const fvPatchFieldMapper& mapper
00094         )
00095         :
00096             slipFvPatchField<Type>(ptf, p, iF, mapper)
00097         {}
00098 
00099 
00100         //- Construct as copy
00101         surfaceSlipDisplacementFvPatchField
00102         (
00103             const surfaceSlipDisplacementFvPatchField<Type>& ptf
00104         )
00105         :
00106             slipFvPatchField<Type>(ptf)
00107         {}
00108 
00109         //- Construct and return a clone
00110         virtual tmp<fvPatchField<Type> > clone() const
00111         {
00112             return tmp<fvPatchField<Type> >
00113             (
00114                 new surfaceSlipDisplacementFvPatchField<Type>(*this)
00115             );
00116         }
00117 
00118         //- Construct as copy setting internal field reference
00119         surfaceSlipDisplacementFvPatchField
00120         (
00121             const surfaceSlipDisplacementFvPatchField<Type>& ptf,
00122             const DimensionedField<Type, volMesh>& iF
00123         )
00124         :
00125             slipFvPatchField<Type>(ptf, iF)
00126         {}
00127 
00128         //- Construct and return a clone setting internal field reference
00129         virtual tmp<fvPatchField<Type> > clone
00130         (
00131             const DimensionedField<Type, volMesh>& iF
00132         ) const
00133         {
00134             return tmp<fvPatchField<Type> >
00135             (
00136                 new surfaceSlipDisplacementFvPatchField<Type>(*this, iF)
00137             );
00138         }
00139 
00140         virtual void write(Ostream& os) const
00141         {
00142             slipFvPatchField<Type>::write(os);
00143             // Only so we can easily postprocess.
00144             this->writeEntry("value", os);
00145         }
00146 };
00147 
00148 
00149 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00150 
00151 } // End namespace Foam
00152 
00153 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00154 
00155 #endif
00156 
00157 // ************************ vim: set sw=4 sts=4 et: ************************ //
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines