mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: motionSmoother: stabilise edge weight calculation
This commit is contained in:
@ -283,7 +283,7 @@ Foam::tmp<Foam::scalarField> Foam::motionSmoother::calcEdgeWeights
|
||||
|
||||
forAll(edges, edgeI)
|
||||
{
|
||||
wght[edgeI] = min(GREAT, 1.0/edges[edgeI].mag(points));
|
||||
wght[edgeI] = 1.0/(edges[edgeI].mag(points)+SMALL);
|
||||
}
|
||||
return twght;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user