|
|
|
basicSymmetryPointPatchField.HGo 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-2009 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 Foam::basicSymmetryPointPatchField 00027 00028 Description 00029 A Symmetry boundary condition for pointField 00030 00031 SourceFiles 00032 basicsymmetryPointPatchField.C 00033 00034 \*---------------------------------------------------------------------------*/ 00035 00036 #ifndef basicSymmetryPointPatchField_H 00037 #define basicSymmetryPointPatchField_H 00038 00039 #include "pointPatchField.H" 00040 00041 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00042 00043 namespace Foam 00044 { 00045 00046 /*---------------------------------------------------------------------------*\ 00047 Class basicSymmetryPointPatchField Declaration 00048 \*---------------------------------------------------------------------------*/ 00049 00050 template<class Type> 00051 class basicSymmetryPointPatchField 00052 : 00053 public pointPatchField<Type> 00054 { 00055 00056 public: 00057 00058 // Constructors 00059 00060 //- Construct from patch and internal field 00061 basicSymmetryPointPatchField 00062 ( 00063 const pointPatch&, 00064 const DimensionedField<Type, pointMesh>& 00065 ); 00066 00067 //- Construct from patch, internal field and dictionary 00068 basicSymmetryPointPatchField 00069 ( 00070 const pointPatch&, 00071 const DimensionedField<Type, pointMesh>&, 00072 const dictionary& 00073 ); 00074 00075 //- Construct by mapping given patchField<Type> onto a new patch 00076 basicSymmetryPointPatchField 00077 ( 00078 const basicSymmetryPointPatchField<Type>&, 00079 const pointPatch&, 00080 const DimensionedField<Type, pointMesh>&, 00081 const pointPatchFieldMapper& 00082 ); 00083 00084 //- Construct and return a clone 00085 virtual autoPtr<pointPatchField<Type> > clone() const 00086 { 00087 return autoPtr<pointPatchField<Type> > 00088 ( 00089 new basicSymmetryPointPatchField<Type> 00090 ( 00091 *this 00092 ) 00093 ); 00094 } 00095 00096 //- Construct as copy setting internal field reference 00097 basicSymmetryPointPatchField 00098 ( 00099 const basicSymmetryPointPatchField<Type>&, 00100 const DimensionedField<Type, pointMesh>& 00101 ); 00102 00103 //- Construct and return a clone setting internal field reference 00104 virtual autoPtr<pointPatchField<Type> > clone 00105 ( 00106 const DimensionedField<Type, pointMesh>& iF 00107 ) const 00108 { 00109 return autoPtr<pointPatchField<Type> > 00110 ( 00111 new basicSymmetryPointPatchField<Type> 00112 ( 00113 *this, 00114 iF 00115 ) 00116 ); 00117 } 00118 00119 00120 // Member functions 00121 00122 // Evaluation functions 00123 00124 //- Update the patch field 00125 virtual void evaluate 00126 ( 00127 const Pstream::commsTypes commsType=Pstream::blocking 00128 ); 00129 }; 00130 00131 00132 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00133 00134 } // End namespace Foam 00135 00136 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00137 00138 #ifdef NoRepository 00139 # include "basicSymmetryPointPatchField.C" 00140 #endif 00141 00142 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00143 00144 #endif 00145 00146 // ************************************************************************* // |