1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 1991-2008 OpenCFD Ltd.
7 -------------------------------------------------------------------------------
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
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
26 solidWallHeatFluxCoupledFvPatchScalarField
29 Fixed value boundary condition for temperature, to be used by the
30 conjugate heat transfer solver.
35 type solidWallTemperatureCoupled;
36 neighbourRegionName fluid;
37 neighbourPatchName fluidSolidInterface;
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 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
60 /*---------------------------------------------------------------------------*\
61 Class solidWallTemperatureCoupledFvPatchScalarField Declaration
62 \*---------------------------------------------------------------------------*/
64 class solidWallTemperatureCoupledFvPatchScalarField
66 public fixedValueFvPatchScalarField
70 //- Couple manager object
71 coupleManager coupleManager_;
73 //- Name of thermal conductivity field
79 //- Runtime type information
80 TypeName("solidWallTemperatureCoupled");
85 //- Construct from patch and internal field
86 solidWallTemperatureCoupledFvPatchScalarField
89 const DimensionedField<scalar, volMesh>&
92 //- Construct from patch, internal field and dictionary
93 solidWallTemperatureCoupledFvPatchScalarField
96 const DimensionedField<scalar, volMesh>&,
100 //- Construct by mapping given solidWallTemperatureCoupledFvPatchScalarField
102 solidWallTemperatureCoupledFvPatchScalarField
104 const solidWallTemperatureCoupledFvPatchScalarField&,
106 const DimensionedField<scalar, volMesh>&,
107 const fvPatchFieldMapper&
110 //- Construct and return a clone
111 virtual tmp<fvPatchScalarField> clone() const
113 return tmp<fvPatchScalarField>
115 new solidWallTemperatureCoupledFvPatchScalarField(*this)
119 //- Construct as copy setting internal field reference
120 solidWallTemperatureCoupledFvPatchScalarField
122 const solidWallTemperatureCoupledFvPatchScalarField&,
123 const DimensionedField<scalar, volMesh>&
126 //- Construct and return a clone setting internal field reference
127 virtual tmp<fvPatchScalarField> clone
129 const DimensionedField<scalar, volMesh>& iF
132 return tmp<fvPatchScalarField>
134 new solidWallTemperatureCoupledFvPatchScalarField(*this, iF)
142 tmp<scalarField> flux() const;
144 //- Update the coefficients associated with the patch field
145 virtual void updateCoeffs();
148 virtual void write(Ostream&) const;
152 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
154 } // End namespace Foam
156 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
160 // ************************************************************************* //