BUG: solidificationMeltingSource: allow topology changes (Fixes #2026)

This commit is contained in:
Regő Simon
2021-11-01 12:53:38 +00:00
committed by Sergio Ferraris
parent c8db0d135f
commit 8ac0548c6a

View File

@ -6,7 +6,7 @@
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2014-2017 OpenFOAM Foundation
Copyright (C) 2018-2020 OpenCFD Ltd.
Copyright (C) 2018-2021 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
@ -129,6 +129,11 @@ void Foam::fv::solidificationMeltingSource::update(const volScalarField& Cp)
Info<< type() << ": " << name_ << " - updating phase indicator" << endl;
}
if (mesh_.topoChanging())
{
deltaT_.resize(cells_.size());
}
// update old time alpha1 field
alpha1_.oldTime();