mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: vanDriestDelta: use 1 if not specified. See #2648
This commit is contained in:
@ -135,6 +135,7 @@ Foam::LESModels::vanDriestDelta::vanDriestDelta
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
calcInterval_ = 1;
|
||||||
const dictionary& coeffsDict(dict.optionalSubDict(type() + "Coeffs"));
|
const dictionary& coeffsDict(dict.optionalSubDict(type() + "Coeffs"));
|
||||||
if (!coeffsDict.readIfPresent("calcInterval", calcInterval_))
|
if (!coeffsDict.readIfPresent("calcInterval", calcInterval_))
|
||||||
{
|
{
|
||||||
@ -155,6 +156,7 @@ void Foam::LESModels::vanDriestDelta::read(const dictionary& dict)
|
|||||||
dict.readIfPresent<scalar>("kappa", kappa_);
|
dict.readIfPresent<scalar>("kappa", kappa_);
|
||||||
coeffsDict.readIfPresent<scalar>("Aplus", Aplus_);
|
coeffsDict.readIfPresent<scalar>("Aplus", Aplus_);
|
||||||
coeffsDict.readIfPresent<scalar>("Cdelta", Cdelta_);
|
coeffsDict.readIfPresent<scalar>("Cdelta", Cdelta_);
|
||||||
|
calcInterval_ = 1;
|
||||||
if (!coeffsDict.readIfPresent<label>("calcInterval", calcInterval_))
|
if (!coeffsDict.readIfPresent<label>("calcInterval", calcInterval_))
|
||||||
{
|
{
|
||||||
coeffsDict.readIfPresent("updateInterval", calcInterval_);
|
coeffsDict.readIfPresent("updateInterval", calcInterval_);
|
||||||
|
|||||||
Reference in New Issue
Block a user