OpenFOAM logo
Open Source CFD Toolkit

BasicSymmetryTetPointPatchField.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     BasicSymmetryTetPointPatchField
00027 
00028 Description
00029 
00030 SourceFiles
00031     BasicSymmetryTetPointPatchField.C
00032 
00033 \*---------------------------------------------------------------------------*/
00034 
00035 #ifndef BasicSymmetryTetPointPatchField_H
00036 #define BasicSymmetryTetPointPatchField_H
00037 
00038 #include "ValueStoredTetPointPatchField.H"
00039 
00040 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00041 
00042 namespace Foam
00043 {
00044 
00045 /*---------------------------------------------------------------------------*\
00046                   Class BasicSymmetryTetPointPatchField Declaration
00047 \*---------------------------------------------------------------------------*/
00048 
00049 template<template<class> class PatchField, class PointPatch, class Type>
00050 class BasicSymmetryTetPointPatchField
00051 :
00052     public ValueStoredTetPointPatchField<PatchField, PointPatch, Type>
00053 {
00054     // Private memeber functions
00055 
00056         //- Calculate implicitness matrix
00057         Type fixFlagMatrix(const vector&) const;
00058 
00059 
00060 public:
00061 
00062     // Constructors
00063 
00064         //- Construct from patch and internal field
00065         BasicSymmetryTetPointPatchField
00066         (
00067             const PointPatch&,
00068             const Field<Type>&
00069         );
00070 
00071         //- Construct from patch and internal field and patch field
00072         BasicSymmetryTetPointPatchField
00073         (
00074             const PointPatch&,
00075             const Field<Type>&,
00076             const Field<Type>&
00077         );
00078 
00079         //- Construct from patch, internal field and dictionary
00080         BasicSymmetryTetPointPatchField
00081         (
00082             const PointPatch&,
00083             const Field<Type>&,
00084             const dictionary&
00085         );
00086 
00087         //- Construct by mapping given patchField<Type> onto a new patch
00088         BasicSymmetryTetPointPatchField
00089         (
00090             const BasicSymmetryTetPointPatchField<PatchField, PointPatch, Type>&,
00091             const PointPatch&,
00092             const Field<Type>&,
00093             const TetPointPatchFieldMapper&
00094         );
00095 
00096         //- Construct and return a clone
00097         virtual autoPtr<PatchField<Type> > clone() const
00098         {
00099             return autoPtr<PatchField<Type> >
00100             (
00101                 new BasicSymmetryTetPointPatchField<PatchField, PointPatch, Type>
00102                 (
00103                     *this
00104                 )
00105             );
00106         }
00107 
00108         //- Construct as copy setting internal field reference
00109         BasicSymmetryTetPointPatchField
00110         (
00111             const BasicSymmetryTetPointPatchField<PatchField, PointPatch, Type>&,
00112             const Field<Type>&
00113         );
00114 
00115         //- Construct and return a clone setting internal field reference
00116         virtual autoPtr<PatchField<Type> > clone(const Field<Type>& iF) const
00117         {
00118             return autoPtr<PatchField<Type> >
00119             (
00120                 new BasicSymmetryTetPointPatchField<PatchField, PointPatch, Type>
00121                 (
00122                     *this,
00123                     iF
00124                 )
00125             );
00126         }
00127 
00128 
00129     // Member functions
00130 
00131         //- Update the patch field
00132         virtual void updateBoundaryField();
00133 
00134         //- Set boundary condition to matrix
00135         virtual void setBoundaryCondition
00136         (
00137             Map<constraint<Type> > &
00138         ) const;
00139 
00140 
00141         //- Write
00142         virtual void write(Ostream&) const;
00143 };
00144 
00145 
00146 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00147 
00148 } // End namespace Foam
00149 
00150 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00151 
00152 #ifdef NoRepository
00153 #    include "BasicSymmetryTetPointPatchField.C"
00154 #endif
00155 
00156 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00157 
00158 #endif
00159 
00160 // ************************************************************************* //
For further information go to www.openfoam.org