Commit 9c1bb8d7 authored by Andrew Heather's avatar Andrew Heather
Browse files

ENH: maxDeltaxyz - simplified the delta calc and reset the default coeff to 2

parent 627f3127
......@@ -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
)
)
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment