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:
@ -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()))
|
||||
|
||||
Reference in New Issue
Block a user