mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: maxDeltaxyz - simplified the delta calc and reset the default coeff to 2
This commit is contained in:
@ -64,14 +64,14 @@ void Foam::LESModels::maxDeltaxyz::calcDelta()
|
||||
const point& fc = faceC[facei];
|
||||
const vector& n = faceN[facei];
|
||||
|
||||
scalar tmp = magSqr(n*(n & (fc - cc)));
|
||||
scalar tmp = mag(n & (fc - cc));
|
||||
if (tmp > deltaMaxTmp)
|
||||
{
|
||||
deltaMaxTmp = tmp;
|
||||
}
|
||||
}
|
||||
|
||||
hmax[celli] = deltaCoeff_*Foam::sqrt(deltaMaxTmp);
|
||||
hmax[celli] = deltaCoeff_*deltaMaxTmp;
|
||||
}
|
||||
|
||||
if (nD == 3)
|
||||
@ -113,7 +113,7 @@ Foam::LESModels::maxDeltaxyz::maxDeltaxyz
|
||||
dict.optionalSubDict(type() + "Coeffs").lookupOrDefault<scalar>
|
||||
(
|
||||
"deltaCoeff",
|
||||
1
|
||||
2
|
||||
)
|
||||
)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user