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

BUG: Corrected output externalWallHeatFluxTemperature patch properties depending on heat flux mode

parent e4e8a67b
No related merge requests found
...@@ -215,7 +215,7 @@ void Foam::externalWallHeatFluxTemperatureFvPatchScalarField::updateCoeffs() ...@@ -215,7 +215,7 @@ void Foam::externalWallHeatFluxTemperatureFvPatchScalarField::updateCoeffs()
( (
"externalWallHeatFluxTemperatureFvPatchScalarField" "externalWallHeatFluxTemperatureFvPatchScalarField"
"::updateCoeffs()" "::updateCoeffs()"
) << "Illegal mode " << operationModeNames[oldMode_] ) << "Illegal heat flux mode " << operationModeNames[oldMode_]
<< exit(FatalError); << exit(FatalError);
} }
...@@ -261,9 +261,31 @@ void Foam::externalWallHeatFluxTemperatureFvPatchScalarField::write ...@@ -261,9 +261,31 @@ void Foam::externalWallHeatFluxTemperatureFvPatchScalarField::write
{ {
mixedFvPatchScalarField::write(os); mixedFvPatchScalarField::write(os);
temperatureCoupledBase::write(os); temperatureCoupledBase::write(os);
q_.writeEntry("q", os); switch (oldMode_)
h_.writeEntry("h", os); {
Ta_.writeEntry("Ta", os); case fixedHeatFlux:
{
q_.writeEntry("q", os);
break;
}
case fixedHeatTransferCoeff:
{
h_.writeEntry("h", os);
Ta_.writeEntry("Ta", os);
break;
}
default:
{
FatalErrorIn
(
"void externalWallHeatFluxTemperatureFvPatchScalarField::write"
"("
"Ostream& os"
") const"
) << "Illegal heat flux mode " << operationModeNames[oldMode_]
<< abort(FatalError);
}
}
} }
......
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