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

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