ENH: vanDriestDelta - updated reading of coeffs from non-optional sub-dict

This commit is contained in:
Andrew Heather
2017-12-15 17:30:55 +00:00
parent 9ab7fe6b24
commit db75d4fe8e

View File

@ -108,7 +108,10 @@ Foam::LESModels::vanDriestDelta::vanDriestDelta
(
IOobject::groupName("geometricDelta", turbulence.U().group()),
turbulence,
dict.optionalSubDict(type() + "Coeffs")
// Note: cannot use optionalSubDict - if no *Coeffs dict the
// code will get stuck in a loop attempting to read the delta entry
// - consider looking up "geometricDelta" instead of "delta"?
dict.subDict(type() + "Coeffs")
)
),
kappa_(dict.lookupOrDefault<scalar>("kappa", 0.41)),