mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: solidificationMeltingSource: allow topology changes (Fixes #2026)
This commit is contained in:
committed by
Sergio Ferraris
parent
c8db0d135f
commit
8ac0548c6a
@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user