Skip to content
Snippets Groups Projects
Commit 84a14529 authored by sergio's avatar sergio
Browse files

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
parent c036d420
Branches
Tags
No related merge requests found
......@@ -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()))
......
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