Skip to content
Snippets Groups Projects
Commit e8e95a38 authored by andy's avatar andy
Browse files

ENH: Added on-the-fly heat flux calculations to thermoFilm

parent f036f5a7
No related merge requests found
......@@ -370,6 +370,15 @@ public:
inline const filmRadiationModel& radiation() const;
// Derived fields (calculated on-the-fly)
//- Return the convective heat energy from film to wall
inline tmp<scalarField> Qconvw(const label patchI) const;
//- Return the convective heat energy from primary region to film
inline tmp<scalarField> Qconvp(const label patchI) const;
// Evolution
//- Pre-evolve film hook
......
......@@ -24,6 +24,7 @@ License
\*---------------------------------------------------------------------------*/
#include "thermoSingleLayer.H"
#include "heatTransferModel.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
......@@ -160,6 +161,26 @@ inline const filmRadiationModel& thermoSingleLayer::radiation() const
}
inline tmp<scalarField> thermoSingleLayer::Qconvw(const label patchI) const
{
const scalarField htc(htcw_->h()().boundaryField()[patchI]);
const scalarField& Tp = T_.boundaryField()[patchI];
const scalarField& Twp = Tw_.boundaryField()[patchI];
return htc*(Tp - Twp);
}
inline tmp<scalarField> thermoSingleLayer::Qconvp(const label patchI) const
{
const scalarField htc(htcs_->h()().boundaryField()[patchI]);
const scalarField& Tp = T_.boundaryField()[patchI];
const scalarField& Tpp = TPrimary_.boundaryField()[patchI];
return htc*(Tp - Tpp);
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace surfaceFilmModels
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment