initial commit for version 1.5.x patch release
[OpenFOAM-1.5.x.git] / applications / solvers / heatTransfer / chtMultiRegionFoam / derivedFvPatchFields / solidWallTemperatureCoupled / solidWallTemperatureCoupledFvPatchScalarField.H
blob231f9e4d675617ebc7789870ae26d84f5889de41
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4    \\    /   O peration     |
5     \\  /    A nd           | Copyright (C) 1991-2008 OpenCFD Ltd.
6      \\/     M anipulation  |
7 -------------------------------------------------------------------------------
8 License
9     This file is part of OpenFOAM.
11     OpenFOAM is free software; you can redistribute it and/or modify it
12     under the terms of the GNU General Public License as published by the
13     Free Software Foundation; either version 2 of the License, or (at your
14     option) any later version.
16     OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18     FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
19     for more details.
21     You should have received a copy of the GNU General Public License
22     along with OpenFOAM; if not, write to the Free Software Foundation,
23     Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
25 Class
26     solidWallHeatFluxCoupledFvPatchScalarField
28 Description
29     Fixed value boundary condition for temperature, to be used by the
30     conjugate heat transfer solver.
32     Example usage:
33         myInterfacePatchName
34         {
35             type                solidWallTemperatureCoupled;
36             neighbourRegionName fluid;
37             neighbourPatchName  fluidSolidInterface;
38             neighbourFieldName  T;
39             K                   K;
40             value               uniform 300;
41         }
43 SourceFiles
44     solidWallTemperatureCoupledFvPatchScalarField.C
46 \*---------------------------------------------------------------------------*/
48 #ifndef solidWallTemperatureCoupledFvPatchScalarField_H
49 #define solidWallTemperatureCoupledFvPatchScalarField_H
51 #include "fvPatchFields.H"
52 #include "fixedValueFvPatchFields.H"
53 #include "coupleManager.H"
55 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
57 namespace Foam
60 /*---------------------------------------------------------------------------*\
61         Class solidWallTemperatureCoupledFvPatchScalarField Declaration
62 \*---------------------------------------------------------------------------*/
64 class solidWallTemperatureCoupledFvPatchScalarField
66     public fixedValueFvPatchScalarField
68     // Private data
70         //- Couple manager object
71         coupleManager coupleManager_;
73         //- Name of thermal conductivity field
74         word KName_;
77 public:
79     //- Runtime type information
80     TypeName("solidWallTemperatureCoupled");
83     // Constructors
85         //- Construct from patch and internal field
86         solidWallTemperatureCoupledFvPatchScalarField
87         (
88             const fvPatch&,
89             const DimensionedField<scalar, volMesh>&
90         );
92         //- Construct from patch, internal field and dictionary
93         solidWallTemperatureCoupledFvPatchScalarField
94         (
95             const fvPatch&,
96             const DimensionedField<scalar, volMesh>&,
97             const dictionary&
98         );
100         //- Construct by mapping given solidWallTemperatureCoupledFvPatchScalarField
101         //  onto a new patch
102         solidWallTemperatureCoupledFvPatchScalarField
103         (
104             const solidWallTemperatureCoupledFvPatchScalarField&,
105             const fvPatch&,
106             const DimensionedField<scalar, volMesh>&,
107             const fvPatchFieldMapper&
108         );
110         //- Construct and return a clone
111         virtual tmp<fvPatchScalarField> clone() const
112         {
113             return tmp<fvPatchScalarField>
114             (
115                 new solidWallTemperatureCoupledFvPatchScalarField(*this)
116             );
117         }
119         //- Construct as copy setting internal field reference
120         solidWallTemperatureCoupledFvPatchScalarField
121         (
122             const solidWallTemperatureCoupledFvPatchScalarField&,
123             const DimensionedField<scalar, volMesh>&
124         );
126         //- Construct and return a clone setting internal field reference
127         virtual tmp<fvPatchScalarField> clone
128         (
129             const DimensionedField<scalar, volMesh>& iF
130         ) const
131         {
132             return tmp<fvPatchScalarField>
133             (
134                 new solidWallTemperatureCoupledFvPatchScalarField(*this, iF)
135             );
136         }
139     // Member functions
141         //- Flux
142         tmp<scalarField> flux() const;
144         //- Update the coefficients associated with the patch field
145         virtual void updateCoeffs();
147         //- Write
148         virtual void write(Ostream&) const;
152 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
154 } // End namespace Foam
156 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
158 #endif
160 // ************************************************************************* //