BUG: vanDriestDelta: use 1 if not specified. See #2648

This commit is contained in:
mattijs
2022-12-12 14:55:43 +00:00
parent 09f4d8513f
commit 115bf529ad

View File

@ -135,6 +135,7 @@ Foam::LESModels::vanDriestDelta::vanDriestDelta
)
)
{
calcInterval_ = 1;
const dictionary& coeffsDict(dict.optionalSubDict(type() + "Coeffs"));
if (!coeffsDict.readIfPresent("calcInterval", calcInterval_))
{
@ -155,6 +156,7 @@ void Foam::LESModels::vanDriestDelta::read(const dictionary& dict)
dict.readIfPresent<scalar>("kappa", kappa_);
coeffsDict.readIfPresent<scalar>("Aplus", Aplus_);
coeffsDict.readIfPresent<scalar>("Cdelta", Cdelta_);
calcInterval_ = 1;
if (!coeffsDict.readIfPresent<label>("calcInterval", calcInterval_))
{
coeffsDict.readIfPresent("updateInterval", calcInterval_);