1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
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
13 the Free Software Foundation, either version 3 of the License, or
14 (at your 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, see <http://www.gnu.org/licenses/>.
24 \*---------------------------------------------------------------------------*/
26 #include "mappedConvectiveHeatTransfer.H"
27 #include "zeroGradientFvPatchFields.H"
28 #include "addToRunTimeSelectionTable.H"
29 #include "kinematicSingleLayer.H"
31 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
35 namespace regionModels
37 namespace surfaceFilmModels
40 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
42 defineTypeNameAndDebug(mappedConvectiveHeatTransfer, 0);
44 addToRunTimeSelectionTable
47 mappedConvectiveHeatTransfer,
51 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
53 mappedConvectiveHeatTransfer::mappedConvectiveHeatTransfer
55 const surfaceFilmModel& owner,
56 const dictionary& dict
59 heatTransferModel(owner),
65 owner.time().timeName(),
76 htcConvPrimary_.name(), // must have same name as above for mapping
77 owner.time().timeName(),
83 dimensionedScalar("zero", dimMass/pow3(dimTime)/dimTemperature, 0.0),
84 owner.mappedPushedFieldPatchTypes<scalar>()
87 // Update the primary-side convective heat transfer coefficient
88 htcConvPrimary_.correctBoundaryConditions();
90 // Pull the data from the primary region via direct mapped BCs
91 htcConvFilm_.correctBoundaryConditions();
95 // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
97 mappedConvectiveHeatTransfer::~mappedConvectiveHeatTransfer()
101 // * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * //
103 void mappedConvectiveHeatTransfer::correct()
105 // Update the primary-side convective heat transfer coefficient
106 htcConvPrimary_.correctBoundaryConditions();
108 // Pull the data from the primary region via direct mapped BCs
109 htcConvFilm_.correctBoundaryConditions();
113 tmp<volScalarField> mappedConvectiveHeatTransfer::h() const
119 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
121 } // End namespace surfaceFilmModels
122 } // End namespace regionModels
123 } // End namespace Foam
125 // ************************************************************************* //