BUG: Fix dynamicRefineFvMesh mapping flux.

dynamicRefineFvMesh optionally can map fluxes derived from velocities
fields specified in dynamicMeshDict. The surface interpolation was
using old weights. This fix clear the old weights before mapping
the fluxes
This commit is contained in:
sergio
2021-01-06 10:13:08 -08:00
parent c036d4207b
commit 84a1452995

View File

@ -243,6 +243,12 @@ void Foam::dynamicRefineFvMesh::mapFields(const mapPolyMesh& mpm)
(
lookupClass<surfaceScalarField>()
);
// Remove surfaceInterpolation to allow re-calculation on demand
// This could be done in fvMesh::updateMesh but some dynamicFvMesh
// might need the old interpolation fields (weights, etc).
surfaceInterpolation::clearOut();
forAllIters(fluxes, iter)
{
if (!correctFluxes_.found(iter.key()))