diff --git a/src/regionModels/surfaceFilmModels/thermoSingleLayer/thermoSingleLayer.H b/src/regionModels/surfaceFilmModels/thermoSingleLayer/thermoSingleLayer.H index c67a6ef6b5bd2f0a8e8cd9f3c67ef5e5af005857..ae0dc780c9b294cb5bfb56a634c9a84ce46ec666 100644 --- a/src/regionModels/surfaceFilmModels/thermoSingleLayer/thermoSingleLayer.H +++ b/src/regionModels/surfaceFilmModels/thermoSingleLayer/thermoSingleLayer.H @@ -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 diff --git a/src/regionModels/surfaceFilmModels/thermoSingleLayer/thermoSingleLayerI.H b/src/regionModels/surfaceFilmModels/thermoSingleLayer/thermoSingleLayerI.H index c8ba48f98492ad9d77136bf2f2154b59f15f8121..659a315f4916487eedfe0a8ce0db10f32705c50d 100644 --- a/src/regionModels/surfaceFilmModels/thermoSingleLayer/thermoSingleLayerI.H +++ b/src/regionModels/surfaceFilmModels/thermoSingleLayer/thermoSingleLayerI.H @@ -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