From 9fbb20032f2cc111aa0528c0ad7355a47f568cc6 Mon Sep 17 00:00:00 2001 From: mattijs Date: Tue, 27 Apr 2010 17:10:39 +0100 Subject: [PATCH] ENH: have some debug printing in heatFlux bc --- .../solidWallHeatFluxTemperatureFvPatchScalarField.C | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/applications/solvers/heatTransfer/chtMultiRegionFoam/derivedFvPatchFields/solidWallHeatFluxTemperature/solidWallHeatFluxTemperatureFvPatchScalarField.C b/applications/solvers/heatTransfer/chtMultiRegionFoam/derivedFvPatchFields/solidWallHeatFluxTemperature/solidWallHeatFluxTemperatureFvPatchScalarField.C index 8a39a24d..3df9202f 100644 --- a/applications/solvers/heatTransfer/chtMultiRegionFoam/derivedFvPatchFields/solidWallHeatFluxTemperature/solidWallHeatFluxTemperatureFvPatchScalarField.C +++ b/applications/solvers/heatTransfer/chtMultiRegionFoam/derivedFvPatchFields/solidWallHeatFluxTemperature/solidWallHeatFluxTemperatureFvPatchScalarField.C @@ -170,6 +170,21 @@ void Foam::solidWallHeatFluxTemperatureFvPatchScalarField::updateCoeffs() gradient() = q_/K(); fixedGradientFvPatchScalarField::updateCoeffs(); + + if (debug) + { + scalar Q = gSum(K()*patch().magSf()*snGrad()); + + Info<< patch().boundaryMesh().mesh().name() << ':' + << patch().name() << ':' + << this->dimensionedInternalField().name() << " :" + << " heatFlux:" << Q + << " walltemperature " + << " min:" << gMin(*this) + << " max:" << gMax(*this) + << " avg:" << gAverage(*this) + << endl; + } } -- 2.11.4.GIT