View Issue Details

IDProjectCategoryView StatusLast Update
0003198OpenFOAMBugpublic2019-03-18 17:22
ReporterjkauAssigned Towill 
Status resolvedResolutionfixed 
PlatformGNU/LinuxOSUbuntuOS Version14.04
Product Versiondev 
Fixed in Versiondev 
Summary0003198: Restart for dynamic mesh cases crashes
DescriptionWhen restarting a case with dynamic mesh, the solver exits with Fatal Error. The error is raised in Foam::polyMesh::oldPoints(), i.e. oldPointsPtr_ is empty
Steps To ReproduceRun floatingObject tutorial and restart from latestTime
TagsNo tags attached.



2019-03-18 17:22

manager   ~0010383

Thanks for the report. The recent changes (commit b5e27b7a) to old-time point
and cell-centre storage made access of old-time data when it hasn't been stored
a fatal error. This is a consequence of that.

Correct-phi used to update the U boundary conditions whenever it was called.
That is appropriate when run inside the time-loop, as it makes sure that phi
has boundary values appropriate for the new-time before the U-equation is

Before the time-loop, however, this isn't correct. Evaluating a moving wall
velocity accesses the old-time points, which don't exist before the first mesh
update. Before b5e27b7a the polyMesh would return the current points, so the
wall velocity would be evaluated as zero for the initial phi correction. After
it would just error.

Now, the U boundary evaluation is switched off for the initial correction, so
the values used are just those read from disk. These are correct for the last
time of the previous execution, or (equivalently) the start-time of the

Issue History

Date Modified Username Field Change
2019-03-18 08:38 jkau New Issue
2019-03-18 17:22 will Assigned To => will
2019-03-18 17:22 will Status new => resolved
2019-03-18 17:22 will Resolution open => fixed
2019-03-18 17:22 will Fixed in Version => dev
2019-03-18 17:22 will Note Added: 0010383