|
|
|
coupledFvsPatchField.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::coupledFvsPatchField 00027 00028 Description 00029 Foam::coupledFvsPatchField 00030 00031 SourceFiles 00032 coupledFvsPatchField.C 00033 00034 \*---------------------------------------------------------------------------*/ 00035 00036 #ifndef coupledFvsPatchField_H 00037 #define coupledFvsPatchField_H 00038 00039 #include "fvsPatchField.H" 00040 #include "coupledFvPatch.H" 00041 00042 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00043 00044 namespace Foam 00045 { 00046 00047 /*---------------------------------------------------------------------------*\ 00048 Class coupledFvsPatch Declaration 00049 \*---------------------------------------------------------------------------*/ 00050 00051 template<class Type> 00052 class coupledFvsPatchField 00053 : 00054 public fvsPatchField<Type> 00055 { 00056 00057 public: 00058 00059 //- Runtime type information 00060 TypeName(coupledFvPatch::typeName_()); 00061 00062 00063 // Constructors 00064 00065 //- Construct from patch and internal field 00066 coupledFvsPatchField 00067 ( 00068 const fvPatch&, 00069 const DimensionedField<Type, surfaceMesh>& 00070 ); 00071 00072 //- Construct from patch and internal field and patch field 00073 coupledFvsPatchField 00074 ( 00075 const fvPatch&, 00076 const DimensionedField<Type, surfaceMesh>&, 00077 const Field<Type>& 00078 ); 00079 00080 //- Construct from patch, internal field and dictionary 00081 coupledFvsPatchField 00082 ( 00083 const fvPatch&, 00084 const DimensionedField<Type, surfaceMesh>&, 00085 const dictionary& 00086 ); 00087 00088 //- Construct by mapping the given coupledFvsPatchField onto a new patch 00089 coupledFvsPatchField 00090 ( 00091 const coupledFvsPatchField<Type>&, 00092 const fvPatch&, 00093 const DimensionedField<Type, surfaceMesh>&, 00094 const fvPatchFieldMapper& 00095 ); 00096 00097 //- Construct as copy 00098 coupledFvsPatchField 00099 ( 00100 const coupledFvsPatchField<Type>& 00101 ); 00102 00103 //- Construct and return a clone 00104 virtual tmp<fvsPatchField<Type> > clone() const = 0; 00105 00106 //- Construct as copy setting internal field reference 00107 coupledFvsPatchField 00108 ( 00109 const coupledFvsPatchField<Type>&, 00110 const DimensionedField<Type, surfaceMesh>& 00111 ); 00112 00113 //- Construct and return a clone 00114 virtual tmp<fvsPatchField<Type> > clone 00115 ( 00116 const DimensionedField<Type, surfaceMesh>& 00117 ) const = 0; 00118 00119 00120 // Member functions 00121 00122 // Access 00123 00124 //- Return true if this patch field is derived from 00125 // coupledFvsPatchField<Type>. 00126 virtual bool coupled() const 00127 { 00128 return true; 00129 } 00130 00131 00132 //- Write 00133 virtual void write(Ostream&) const; 00134 }; 00135 00136 00137 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00138 00139 } // End namespace Foam 00140 00141 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00142 00143 #ifdef NoRepository 00144 # include "coupledFvsPatchField.C" 00145 #endif 00146 00147 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00148 00149 #endif 00150 00151 // ************************************************************************* // |