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

turbulentHeatFluxTemperatureFvPatchScalarField.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::turbulentHeatFluxTemperatureFvPatchScalarField
00026 
00027 Description
00028     Fixed heat flux boundary condition for temperature.
00029 
00030 SourceFiles
00031     turbulentHeatFluxTemperatureFvPatchScalarField.C
00032 
00033 \*---------------------------------------------------------------------------*/
00034 
00035 #ifndef turbulentHeatFluxTemperatureFvPatchScalarFields_H
00036 #define turbulentHeatFluxTemperatureFvPatchScalarFields_H
00037 
00038 #include <finiteVolume/fvPatchFields.H>
00039 #include <finiteVolume/fixedGradientFvPatchFields.H>
00040 
00041 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00042 
00043 namespace Foam
00044 {
00045 namespace incompressible
00046 {
00047 
00048 /*---------------------------------------------------------------------------*\
00049        Class turbulentHeatFluxTemperatureFvPatchScalarField Declaration
00050 \*---------------------------------------------------------------------------*/
00051 
00052 class turbulentHeatFluxTemperatureFvPatchScalarField
00053 :
00054     public fixedGradientFvPatchScalarField
00055 {
00056 // Private data
00057 
00058     //- Heat flux [W/m2]
00059     scalarField q_;
00060 
00061     //- Name of effective thermal diffusivity field
00062     word alphaEffName_;
00063 
00064     //- Name of specific heat capacity field
00065     word CpName_;
00066 
00067 
00068 public:
00069 
00070     //- Runtime type information
00071     TypeName("turbulentHeatFluxTemperature");
00072 
00073 
00074     // Constructors
00075 
00076         //- Construct from patch and internal field
00077         turbulentHeatFluxTemperatureFvPatchScalarField
00078         (
00079             const fvPatch&,
00080             const DimensionedField<scalar, volMesh>&
00081         );
00082 
00083         //- Construct from patch, internal field and dictionary
00084         turbulentHeatFluxTemperatureFvPatchScalarField
00085         (
00086             const fvPatch&,
00087             const DimensionedField<scalar, volMesh>&,
00088             const dictionary&
00089         );
00090 
00091         //- Construct by mapping given
00092         //  turbulentHeatFluxTemperatureFvPatchScalarField onto
00093         //  a new patch
00094         turbulentHeatFluxTemperatureFvPatchScalarField
00095         (
00096             const turbulentHeatFluxTemperatureFvPatchScalarField&,
00097             const fvPatch&,
00098             const DimensionedField<scalar, volMesh>&,
00099             const fvPatchFieldMapper&
00100         );
00101 
00102         //- Construct as copy
00103         turbulentHeatFluxTemperatureFvPatchScalarField
00104         (
00105             const turbulentHeatFluxTemperatureFvPatchScalarField&
00106         );
00107 
00108         //- Construct and return a clone
00109         virtual tmp<fvPatchScalarField> clone() const
00110         {
00111             return tmp<fvPatchScalarField>
00112             (
00113                 new turbulentHeatFluxTemperatureFvPatchScalarField(*this)
00114             );
00115         }
00116 
00117         //- Construct as copy setting internal field reference
00118         turbulentHeatFluxTemperatureFvPatchScalarField
00119         (
00120             const turbulentHeatFluxTemperatureFvPatchScalarField&,
00121             const DimensionedField<scalar, volMesh>&
00122         );
00123 
00124         //- Construct and return a clone setting internal field reference
00125         virtual tmp<fvPatchScalarField> clone
00126         (
00127             const DimensionedField<scalar, volMesh>& iF
00128         ) const
00129         {
00130             return tmp<fvPatchScalarField>
00131             (
00132                 new turbulentHeatFluxTemperatureFvPatchScalarField
00133                 (
00134                     *this,
00135                     iF
00136                 )
00137             );
00138         }
00139 
00140 
00141     // Member functions
00142 
00143         // Mapping functions
00144 
00145             //- Map (and resize as needed) from self given a mapping object
00146             virtual void autoMap(const fvPatchFieldMapper&);
00147 
00148             //- Reverse map the given fvPatchField onto this fvPatchField
00149             virtual void rmap
00150             (
00151                 const fvPatchScalarField&,
00152                 const labelList&
00153             );
00154 
00155 
00156         // Evaluation functions
00157 
00158             //- Update the coefficients associated with the patch field
00159             virtual void updateCoeffs();
00160 
00161 
00162         // I-O
00163 
00164             //- Write
00165             virtual void write(Ostream&) const;
00166 };
00167 
00168 
00169 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00170 
00171 } // End namespace incompressible
00172 } // End namespace Foam
00173 
00174 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00175 
00176 #endif
00177 
00178 // ************************ vim: set sw=4 sts=4 et: ************************ //
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines