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")),
|
||||
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 * * * * * * * * * * * * * * * //
|
||||
|
||||
Reference in New Issue
Block a user