mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Better treatment for inactive film models
This commit is contained in:
@ -128,10 +128,18 @@ Foam::surfaceFilmModels::surfaceFilmModel::surfaceFilmModel
|
|||||||
|
|
||||||
active_(lookup("active")),
|
active_(lookup("active")),
|
||||||
g_(g),
|
g_(g),
|
||||||
filmRegionName_(lookup("filmRegionName")),
|
filmRegionName_("none"),
|
||||||
coeffs_(subDict(type + "Coeffs")),
|
coeffs_(dictionary::null),
|
||||||
thermoModel_(thermoModelTypeNames_.read(coeffs_.lookup("thermoModel")))
|
thermoModel_(tmConstant)
|
||||||
{}
|
{
|
||||||
|
if (active_)
|
||||||
|
{
|
||||||
|
filmRegionName_ = lookup("filmRegionName");
|
||||||
|
coeffs_ = subDict(type + "Coeffs");
|
||||||
|
thermoModel_ =
|
||||||
|
thermoModelTypeNames_.read(coeffs_.lookup("thermoModel"));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
||||||
|
|||||||
Reference in New Issue
Block a user