OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

inletOutletFvPatchField.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-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::inletOutletFvPatchField
00027 
00028 Description
00029     Foam::inletOutletFvPatchField
00030 
00031 SourceFiles
00032     inletOutletFvPatchField.C
00033 
00034 \*---------------------------------------------------------------------------*/
00035 
00036 #ifndef inletOutletFvPatchField_H
00037 #define inletOutletFvPatchField_H
00038 
00039 #include "mixedFvPatchField.H"
00040 
00041 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00042 
00043 namespace Foam
00044 {
00045 
00046 /*---------------------------------------------------------------------------*\
00047                      Class inletOutletFvPatch Declaration
00048 \*---------------------------------------------------------------------------*/
00049 
00050 template<class Type>
00051 class inletOutletFvPatchField
00052 :
00053     public mixedFvPatchField<Type>
00054 {
00055 
00056 protected:
00057 
00058     // Protected data
00059 
00060         word phiName_;
00061 
00062 
00063 public:
00064 
00065     //- Runtime type information
00066     TypeName("inletOutlet");
00067 
00068 
00069     // Constructors
00070 
00071         //- Construct from patch and internal field
00072         inletOutletFvPatchField
00073         (
00074             const fvPatch&,
00075             const DimensionedField<Type, volMesh>&
00076         );
00077 
00078         //- Construct from patch, internal field and dictionary
00079         inletOutletFvPatchField
00080         (
00081             const fvPatch&,
00082             const DimensionedField<Type, volMesh>&,
00083             const dictionary&
00084         );
00085 
00086         //- Construct by mapping given inletOutletFvPatchField onto a new patch
00087         inletOutletFvPatchField
00088         (
00089             const inletOutletFvPatchField<Type>&,
00090             const fvPatch&,
00091             const DimensionedField<Type, volMesh>&,
00092             const fvPatchFieldMapper&
00093         );
00094 
00095         //- Construct as copy
00096         inletOutletFvPatchField
00097         (
00098             const inletOutletFvPatchField<Type>&
00099         );
00100 
00101         //- Construct and return a clone
00102         virtual tmp<fvPatchField<Type> > clone() const
00103         {
00104             return tmp<fvPatchField<Type> >
00105             (
00106                 new inletOutletFvPatchField<Type>(*this)
00107             );
00108         }
00109 
00110         //- Construct as copy setting internal field reference
00111         inletOutletFvPatchField
00112         (
00113             const inletOutletFvPatchField<Type>&,
00114             const DimensionedField<Type, volMesh>&
00115         );
00116 
00117         //- Construct and return a clone setting internal field reference
00118         virtual tmp<fvPatchField<Type> > clone
00119         (
00120             const DimensionedField<Type, volMesh>& iF
00121         ) const
00122         {
00123             return tmp<fvPatchField<Type> >
00124             (
00125                 new inletOutletFvPatchField<Type>(*this, iF)
00126             );
00127         }
00128 
00129 
00130     // Member functions
00131 
00132         //- Update the coefficients associated with the patch field
00133         virtual void updateCoeffs();
00134 
00135         //- Write
00136         virtual void write(Ostream&) const;
00137 
00138 
00139     // Member operators
00140 
00141         virtual void operator=(const fvPatchField<Type>& pvf);
00142 };
00143 
00144 
00145 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00146 
00147 } // End namespace Foam
00148 
00149 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00150 
00151 #ifdef NoRepository
00152 #   include "inletOutletFvPatchField.C"
00153 #endif
00154 
00155 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00156 
00157 #endif
00158 
00159 // ************************************************************************* //
Copyright © 2000-2009 OpenCFD Ltd