OpenFOAM logo
Open Source CFD Toolkit

SymmetryTetPointPatchField.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     SymmetryTetPointPatchField
00027 
00028 Description
00029 
00030 SourceFiles
00031     SymmetryTetPointPatchField.C
00032 
00033 \*---------------------------------------------------------------------------*/
00034 
00035 #ifndef SymmetryTetPointPatchField_H
00036 #define SymmetryTetPointPatchField_H
00037 
00038 #include "BasicSymmetryTetPointPatchField.H"
00039 
00040 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00041 
00042 namespace Foam
00043 {
00044 
00045 /*---------------------------------------------------------------------------*\
00046                   Class SymmetryTetPointPatchField Declaration
00047 \*---------------------------------------------------------------------------*/
00048 
00049 template
00050 <
00051     template<class> class PatchField,
00052     class PointPatch,
00053     class SymmetryPointPatch,
00054     class Type
00055 >
00056 class SymmetryTetPointPatchField
00057 :
00058     public BasicSymmetryTetPointPatchField<PatchField, PointPatch, Type>
00059 {
00060 
00061 public:
00062 
00063     //- Runtime type information
00064     TypeName(SymmetryPointPatch::typeName_());
00065 
00066 
00067     // Constructors
00068 
00069         //- Construct from patch and internal field
00070         SymmetryTetPointPatchField
00071         (
00072             const PointPatch&,
00073             const Field<Type>&
00074         );
00075 
00076         //- Construct from patch and internal field and patch field
00077         SymmetryTetPointPatchField
00078         (
00079             const PointPatch&,
00080             const Field<Type>&,
00081             const Field<Type>&
00082         );
00083 
00084         //- Construct from patch, internal field and dictionary
00085         SymmetryTetPointPatchField
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         SymmetryTetPointPatchField
00094         (
00095             const SymmetryTetPointPatchField
00096                 <PatchField, PointPatch, SymmetryPointPatch, Type>&,
00097             const PointPatch&,
00098             const Field<Type>&,
00099             const TetPointPatchFieldMapper&
00100         );
00101 
00102         //- Construct and return a clone
00103         virtual autoPtr<PatchField<Type> > clone() const
00104         {
00105             return autoPtr<PatchField<Type> >
00106             (
00107                 new SymmetryTetPointPatchField
00108                 <PatchField, PointPatch, SymmetryPointPatch, Type>
00109                 (
00110                     *this
00111                 )
00112             );
00113         }
00114 
00115         //- Construct as copy setting internal field reference
00116         SymmetryTetPointPatchField
00117         (
00118             const SymmetryTetPointPatchField
00119                 <PatchField, PointPatch, SymmetryPointPatch, Type>&,
00120             const Field<Type>&
00121         );
00122 
00123         //- Construct and return a clone setting internal field reference
00124         virtual autoPtr<PatchField<Type> > clone(const Field<Type>& iF) const
00125         {
00126             return autoPtr<PatchField<Type> >
00127             (
00128                 new SymmetryTetPointPatchField
00129                 <PatchField, PointPatch, SymmetryPointPatch, Type>
00130                 (
00131                     *this,
00132                     iF
00133                 )
00134             );
00135         }
00136 };
00137 
00138 
00139 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00140 
00141 } // End namespace Foam
00142 
00143 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00144 
00145 #ifdef NoRepository
00146 #    include "SymmetryTetPointPatchField.C"
00147 #endif
00148 
00149 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00150 
00151 #endif
00152 
00153 // ************************************************************************* //
For further information go to www.openfoam.org