mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: First occurence of alpha1.prevIter() causes crash (closes #911)
- in interIsoFoam/alphaEqn.H changed to alpha1.prevIter() to alpha1.storePrevIter().
This commit is contained in:
committed by
Mark Olesen
parent
a6e735e5ce
commit
40618a3a86
@ -11,7 +11,7 @@
|
|||||||
// To recalculate the alpha1 update in subsequent iterations, we
|
// To recalculate the alpha1 update in subsequent iterations, we
|
||||||
// must store its current value before overwriting with the new
|
// must store its current value before overwriting with the new
|
||||||
// value
|
// value
|
||||||
alpha1.prevIter();
|
alpha1.storePrevIter();
|
||||||
// Storing initial phi and U for use in later outer iterations.
|
// Storing initial phi and U for use in later outer iterations.
|
||||||
phi.storePrevIter();
|
phi.storePrevIter();
|
||||||
U.storePrevIter();
|
U.storePrevIter();
|
||||||
@ -21,6 +21,7 @@
|
|||||||
// Resetting alpha1 to value before advection in first PIMPLE
|
// Resetting alpha1 to value before advection in first PIMPLE
|
||||||
// iteration.
|
// iteration.
|
||||||
alpha1 = alpha1.prevIter();
|
alpha1 = alpha1.prevIter();
|
||||||
|
|
||||||
// Setting U and phi with which to advect interface.
|
// Setting U and phi with which to advect interface.
|
||||||
U = 0.5*U.prevIter() + 0.5*U;
|
U = 0.5*U.prevIter() + 0.5*U;
|
||||||
phi = 0.5*phi.prevIter() + 0.5*phi;
|
phi = 0.5*phi.prevIter() + 0.5*phi;
|
||||||
|
|||||||
Reference in New Issue
Block a user