OpenFOAM logo
Open Source CFD Toolkit

EmptyPointPatchField.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-2005 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 the
00013     Free Software Foundation; either version 2 of the License, or (at your
00014     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, write to the Free Software Foundation,
00023     Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
00024 
00025 Class
00026     EmptyPointPatchField
00027 
00028 Description
00029 
00030 SourceFiles
00031     EmptyPointPatchField.C
00032 
00033 \*---------------------------------------------------------------------------*/
00034 
00035 #ifndef EmptyPointPatchField_H
00036 #define EmptyPointPatchField_H
00037 
00038 #include "PointPatchField.H"
00039 
00040 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00041 
00042 namespace Foam
00043 {
00044 
00045 /*---------------------------------------------------------------------------*\
00046                      Class EmptyPointPatchField Declaration
00047 \*---------------------------------------------------------------------------*/
00048 
00049 template
00050 <
00051     template<class> class PatchField,
00052     class PointPatch,
00053     class EmptyPointPatch,
00054     class Type
00055 >
00056 class EmptyPointPatchField
00057 :
00058     public PatchField<Type>
00059 {
00060 
00061 public:
00062 
00063     //- Runtime type information
00064     TypeName(EmptyPointPatch::typeName_());
00065 
00066 
00067     // Constructors
00068 
00069         //- Construct from patch and internal field
00070         EmptyPointPatchField
00071         (
00072             const PointPatch&,
00073             const Field<Type>&
00074         );
00075 
00076         //- Construct from patch and internal field and patch field
00077         EmptyPointPatchField
00078         (
00079             const PointPatch&,
00080             const Field<Type>&,
00081             const Field<Type>&
00082         );
00083 
00084         //- Construct from patch, internal field and dictionary
00085         EmptyPointPatchField
00086         (
00087             const PointPatch&,
00088             const Field<Type>&,
00089             const dictionary&
00090         );
00091 
00092         //- Construct by mapping given patchField<Type> onto a new patch
00093         EmptyPointPatchField
00094         (
00095             const EmptyPointPatchField
00096                 <PatchField, PointPatch, EmptyPointPatch, Type>&,
00097             const PointPatch&,
00098             const Field<Type>&,
00099             const PointPatchFieldMapper&
00100         );
00101 
00102         //- Construct and return a clone
00103         virtual autoPtr<PatchField<Type> > clone() const
00104         {
00105             return autoPtr<PatchField<Type> >
00106             (
00107                 new EmptyPointPatchField
00108                 <PatchField, PointPatch, EmptyPointPatch, Type>
00109                 (
00110                     *this
00111                 )
00112             );
00113         }
00114 
00115         //- Construct as copy setting internal field reference
00116         EmptyPointPatchField
00117         (
00118             const EmptyPointPatchField
00119                 <PatchField, PointPatch, EmptyPointPatch, Type>&,
00120             const Field<Type>&
00121         );
00122 
00123         //- Construct and return a clone setting internal field reference
00124         virtual autoPtr<PatchField<Type> > clone
00125         (
00126             const Field<Type>& iF
00127         ) const
00128         {
00129             return autoPtr<PatchField<Type> >
00130             (
00131                 new EmptyPointPatchField
00132                 <PatchField, PointPatch, EmptyPointPatch, Type>
00133                 (
00134                     *this,
00135                     iF
00136                 )
00137             );
00138         }
00139 };
00140 
00141 
00142 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00143 
00144 } // End namespace Foam
00145 
00146 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00147 
00148 #ifdef NoRepository
00149 #    include "EmptyPointPatchField.C"
00150 #endif
00151 
00152 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00153 
00154 #endif
00155 
00156 // ************************************************************************* //
For further information go to www.openfoam.org