ENH: Better treatment for inactive film models

This commit is contained in:
andy
2010-09-16 18:02:59 +01:00
parent f472fe31a4
commit 32a6d67ef1

View File

@ -128,10 +128,18 @@ Foam::surfaceFilmModels::surfaceFilmModel::surfaceFilmModel
active_(lookup("active")),
g_(g),
filmRegionName_(lookup("filmRegionName")),
coeffs_(subDict(type + "Coeffs")),
thermoModel_(thermoModelTypeNames_.read(coeffs_.lookup("thermoModel")))
{}
filmRegionName_("none"),
coeffs_(dictionary::null),
thermoModel_(tmConstant)
{
if (active_)
{
filmRegionName_ = lookup("filmRegionName");
coeffs_ = subDict(type + "Coeffs");
thermoModel_ =
thermoModelTypeNames_.read(coeffs_.lookup("thermoModel"));
}
}
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //