/*---------------------------------------------------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | www.openfoam.com \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2017-2022 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. OpenFOAM is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. OpenFOAM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenFOAM. If not, see . Class Foam::heatTransferCoeffModels::localReferenceTemperature Description Heat transfer coefficient calculation that employs the patch internal field as the reference temperature. The heat transfer coefficient is calculated by: \f[ h = \frac{q}{T_c - T_p} \f] where \vartable h | Heat transfer coefficient [W/m^2/K] q | Heat flux [W/m^2] T_c | Patch internal temperature field [K] T_p | Patch temperature [K] \endvartable Usage Minimal example by using \c system/controlDict.functions: \verbatim heatTransferCoeff1 { // Inherited entries ... // Mandatory entries htcModel localReferenceTemperature; } \endverbatim where the entries mean: \table Property | Description | Type | Reqd | Deflt type | Model name: localReferenceTemperature | word | yes | - \endtable SourceFiles localReferenceTemperature.C \*---------------------------------------------------------------------------*/ #ifndef heatTransferCoeffModels_localReferenceTemperature_H #define heatTransferCoeffModels_localReferenceTemperature_H #include "heatTransferCoeffModel.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // namespace Foam { namespace heatTransferCoeffModels { /*---------------------------------------------------------------------------*\ Class localReferenceTemperature Declaration \*---------------------------------------------------------------------------*/ class localReferenceTemperature : public heatTransferCoeffModel { protected: // Protected Member Functions //- Set the heat transfer coefficient virtual void htc ( volScalarField& htc, const FieldField& q ); //- No copy construct localReferenceTemperature(const localReferenceTemperature&) = delete; //- No copy assignment void operator=(const localReferenceTemperature&) = delete; public: //- Runtime type information TypeName("localReferenceTemperature"); // Constructors //- Construct from components localReferenceTemperature ( const dictionary& dict, const fvMesh& mesh, const word& TName ); //- Destructor virtual ~localReferenceTemperature() = default; // Member Functions //- Read from dictionary virtual bool read(const dictionary& dict); }; // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // } // End namespace heatTransferCoeffModels } // End namespace Foam // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // #endif // ************************************************************************* //