mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Turbulence externalWallHeatFluxTempertaure - updated output messages
This commit is contained in:
@ -136,9 +136,30 @@ externalWallHeatFluxTemperatureFvPatchScalarField
|
|||||||
h_ = scalarField("h", dict, p.size());
|
h_ = scalarField("h", dict, p.size());
|
||||||
Ta_ = scalarField("Ta", dict, p.size());
|
Ta_ = scalarField("Ta", dict, p.size());
|
||||||
if (dict.found("thicknessLayers"))
|
if (dict.found("thicknessLayers"))
|
||||||
|
|
||||||
|
if (dict.readIfPresent("thicknessLayers", thicknessLayers_))
|
||||||
{
|
{
|
||||||
dict.lookup("thicknessLayers") >> thicknessLayers_;
|
|
||||||
dict.lookup("kappaLayers") >> kappaLayers_;
|
dict.lookup("kappaLayers") >> kappaLayers_;
|
||||||
|
|
||||||
|
if (thicknessLayers_.size() != kappaLayers_.size())
|
||||||
|
{
|
||||||
|
FatalIOErrorIn
|
||||||
|
(
|
||||||
|
"externalWallHeatFluxTemperatureFvPatchScalarField::"
|
||||||
|
"externalWallHeatFluxTemperatureFvPatchScalarField\n"
|
||||||
|
"(\n"
|
||||||
|
" const fvPatch&,\n"
|
||||||
|
" const DimensionedField<scalar, volMesh>&,\n"
|
||||||
|
" const dictionary&\n"
|
||||||
|
")\n",
|
||||||
|
dict
|
||||||
|
) << "\n number of layers for thicknessLayers and "
|
||||||
|
<< "kappaLayers must be the same"
|
||||||
|
<< "\n for patch " << p.name()
|
||||||
|
<< " of field " << dimensionedInternalField().name()
|
||||||
|
<< " in file " << dimensionedInternalField().objectPath()
|
||||||
|
<< exit(FatalIOError);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -148,9 +169,9 @@ externalWallHeatFluxTemperatureFvPatchScalarField
|
|||||||
"externalWallHeatFluxTemperatureFvPatchScalarField::"
|
"externalWallHeatFluxTemperatureFvPatchScalarField::"
|
||||||
"externalWallHeatFluxTemperatureFvPatchScalarField\n"
|
"externalWallHeatFluxTemperatureFvPatchScalarField\n"
|
||||||
"(\n"
|
"(\n"
|
||||||
" const fvPatch& p,\n"
|
" const fvPatch&,\n"
|
||||||
" const DimensionedField<scalar, volMesh>& iF,\n"
|
" const DimensionedField<scalar, volMesh>&,\n"
|
||||||
" const dictionary& dict\n"
|
" const dictionary&\n"
|
||||||
")\n"
|
")\n"
|
||||||
) << "\n patch type '" << p.type()
|
) << "\n patch type '" << p.type()
|
||||||
<< "' either q or h and Ta were not found '"
|
<< "' either q or h and Ta were not found '"
|
||||||
@ -374,7 +395,7 @@ void Foam::externalWallHeatFluxTemperatureFvPatchScalarField::write
|
|||||||
(
|
(
|
||||||
"void externalWallHeatFluxTemperatureFvPatchScalarField::write"
|
"void externalWallHeatFluxTemperatureFvPatchScalarField::write"
|
||||||
"("
|
"("
|
||||||
"Ostream& os"
|
"Ostream&"
|
||||||
") const"
|
") const"
|
||||||
) << "Illegal heat flux mode " << operationModeNames[mode_]
|
) << "Illegal heat flux mode " << operationModeNames[mode_]
|
||||||
<< abort(FatalError);
|
<< abort(FatalError);
|
||||||
|
|||||||
Reference in New Issue
Block a user