diff --git a/src/VoF/reconstructionSchemes/isoSchemes/isoSurface/isoSurface.C b/src/VoF/reconstructionSchemes/isoSchemes/isoSurface/isoSurface.C index 5ea1da50..bf3788b3 100644 --- a/src/VoF/reconstructionSchemes/isoSchemes/isoSurface/isoSurface.C +++ b/src/VoF/reconstructionSchemes/isoSchemes/isoSurface/isoSurface.C @@ -62,6 +62,7 @@ Foam::reconstruction::isoSurface::isoSurface // Tolerances and solution controls iso_(modelDict().lookupOrAddDefault("iso", 0.5,false,false)) { + reconstruct(); } // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // @@ -80,8 +81,26 @@ void Foam::reconstruction::isoSurface::reconstruct(bool forceUpdate) { return; } + // Interpolating alpha1 cell centre values to mesh points (vertices) + if (mesh_.topoChanging()) + { + // Introduced resizing to cope with changing meshes + if (ap_.size() != mesh_.nPoints()) + { + ap_.resize(mesh_.nPoints()); + + } + if (interfaceCell_.size() != mesh_.nCells()) + { + interfaceCell_.resize(mesh_.nCells()); + } + } ap_ = volPointInterpolation::New(mesh_).interpolate(alpha1_); + + DynamicList> facePts; + + interfaceLabels_.clear(); forAll(alpha1_,cellI) {