Commit 32a6d67e authored by Andrew Heather's avatar Andrew Heather
Browse files

ENH: Better treatment for inactive film models

parent f472fe31
......@@ -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 * * * * * * * * * * * * * * * //
......
Supports Markdown
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