wallHeatTransferCoeffModels::kappaEff Corrected reading Lchar.

This commit is contained in:
Jakub Knir
2020-11-18 00:03:49 +00:00
parent 3a2b846a39
commit 7a1de27e78

View File

@ -57,7 +57,7 @@ Foam::wallHeatTransferCoeffModels::kappaEff::kappaEff
mesh_(mesh), mesh_(mesh),
Prl_("Prl", dimless, dict), Prl_("Prl", dimless, dict),
Prt_("Prl", dimless, dict), Prt_("Prl", dimless, dict),
Lchar_("Lchar", dimLength, dict), Lchar_("Lchar", dimLength, Zero),
isCharLength_(false) isCharLength_(false)
{ {
read(dict); read(dict);
@ -76,8 +76,12 @@ bool Foam::wallHeatTransferCoeffModels::kappaEff::read(const dictionary& dict)
{ {
Prl_.read(dict); Prl_.read(dict);
Prt_.read(dict); Prt_.read(dict);
Lchar_.lookupOrDefault("Lchar", dict, dimLength); isCharLength_ = dict.found("Lchar");
isCharLength_ = dict.found("Lchar") ? true : false;
if (isCharLength_)
{
Lchar_.read(dict);
}
return true; return true;
} }