Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions src/VoF/reconstructionSchemes/isoSchemes/isoSurface/isoSurface.C
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ Foam::reconstruction::isoSurface::isoSurface
// Tolerances and solution controls
iso_(modelDict().lookupOrAddDefault<scalar>("iso", 0.5,false,false))
{
reconstruct();
}

// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
Expand All @@ -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<List<point>> facePts;

interfaceLabels_.clear();

forAll(alpha1_,cellI)
{
Expand Down