FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

wallHeatTransferFvPatchScalarField.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-2010 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
00013     the Free Software Foundation, either version 3 of the License, or
00014     (at your 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, see <http://www.gnu.org/licenses/>.
00023 
00024 Class
00025     Foam::wallHeatTransferFvPatchScalarField
00026 
00027 Description
00028     Enthalpy boundary conditions for wall heat transfer
00029 
00030 SourceFiles
00031     wallHeatTransferFvPatchScalarField.C
00032 
00033 \*---------------------------------------------------------------------------*/
00034 
00035 #ifndef wallHeatTransferFvPatchScalarField_H
00036 #define wallHeatTransferFvPatchScalarField_H
00037 
00038 #include <finiteVolume/mixedFvPatchFields.H>
00039 
00040 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00041 
00042 namespace Foam
00043 {
00044 
00045 /*---------------------------------------------------------------------------*\
00046                   Class wallHeatTransferFvPatch Declaration
00047 \*---------------------------------------------------------------------------*/
00048 
00049 class wallHeatTransferFvPatchScalarField
00050 :
00051     public mixedFvPatchScalarField
00052 {
00053     // Private data
00054 
00055         //- Tinf
00056         scalarField Tinf_;
00057 
00058         //- alphaWall
00059         scalarField alphaWall_;
00060 
00061 
00062 public:
00063 
00064     //- Runtime type information
00065     TypeName("wallHeatTransfer");
00066 
00067 
00068     // Constructors
00069 
00070         //- Construct from patch and internal field
00071         wallHeatTransferFvPatchScalarField
00072         (
00073             const fvPatch&,
00074             const DimensionedField<scalar, volMesh>&
00075         );
00076 
00077         //- Construct from patch, internal field and dictionary
00078         wallHeatTransferFvPatchScalarField
00079         (
00080             const fvPatch&,
00081             const DimensionedField<scalar, volMesh>&,
00082             const dictionary&
00083         );
00084 
00085         //- Construct by mapping given wallHeatTransferFvPatchScalarField
00086         // onto a new patch
00087         wallHeatTransferFvPatchScalarField
00088         (
00089             const wallHeatTransferFvPatchScalarField&,
00090             const fvPatch&,
00091             const DimensionedField<scalar, volMesh>&,
00092             const fvPatchFieldMapper&
00093         );
00094 
00095         //- Construct as copy
00096         wallHeatTransferFvPatchScalarField
00097         (
00098             const wallHeatTransferFvPatchScalarField&
00099         );
00100 
00101         //- Construct and return a clone
00102         virtual tmp<fvPatchScalarField> clone() const
00103         {
00104             return tmp<fvPatchScalarField>
00105             (
00106                 new wallHeatTransferFvPatchScalarField(*this)
00107             );
00108         }
00109 
00110         //- Construct as copy setting internal field reference
00111         wallHeatTransferFvPatchScalarField
00112         (
00113             const wallHeatTransferFvPatchScalarField&,
00114             const DimensionedField<scalar, volMesh>&
00115         );
00116 
00117         //- Construct and return a clone setting internal field reference
00118         virtual tmp<fvPatchScalarField> clone
00119         (
00120             const DimensionedField<scalar, volMesh>& iF
00121         ) const
00122         {
00123             return tmp<fvPatchScalarField>
00124             (
00125                 new wallHeatTransferFvPatchScalarField(*this, iF)
00126             );
00127         }
00128 
00129 
00130     // Member functions
00131 
00132         // Access
00133 
00134             //- Return Tinf
00135             const scalarField& Tinf() const
00136             {
00137                 return Tinf_;
00138             }
00139 
00140             //- Return reference to Tinf to allow adjustment
00141             scalarField& Tinf()
00142             {
00143                 return Tinf_;
00144             }
00145 
00146             //- Return alphaWall
00147             const scalarField& alphaWall() const
00148             {
00149                 return alphaWall_;
00150             }
00151 
00152             //- Return reference to alphaWall to allow adjustment
00153             scalarField& alphaWall()
00154             {
00155                 return alphaWall_;
00156             }
00157 
00158 
00159         // Mapping functions
00160 
00161             //- Map (and resize as needed) from self given a mapping object
00162             virtual void autoMap
00163             (
00164                 const fvPatchFieldMapper&
00165             );
00166 
00167             //- Reverse map the given fvPatchField onto this fvPatchField
00168             virtual void rmap
00169             (
00170                 const fvPatchScalarField&,
00171                 const labelList&
00172             );
00173 
00174 
00175         // Evaluation functions
00176 
00177             //- Update the coefficients associated with the patch field
00178             virtual void updateCoeffs();
00179 
00180 
00181         //- Write
00182         virtual void write(Ostream&) const;
00183 };
00184 
00185 
00186 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00187 
00188 } // End namespace Foam
00189 
00190 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00191 
00192 #endif
00193 
00194 // ************************ vim: set sw=4 sts=4 et: ************************ //
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines