chaos-polymtl / lethe

Repository for the open-source lethe CFD/DEM/CFD-DEM project
https://chaos-polymtl.github.io/lethe/index.html
Apache License 2.0
280 stars 59 forks source link

Refactor output of paraview files and time step calculation #1341

Closed lpsaavedra closed 1 week ago

lpsaavedra commented 2 weeks ago

Description

The time step was being modified for Paraview outputs at the end or during a simulation. This was dangerous since abrupt changes of the time step might lead to instabilities, wrong results when calculating derivatives of quantities outputted in the simulation (e.g., kinetic energy rate) and useless iterations when performing controlled restarts with adaptive time stepping (i.e., setting the end time of the simulation and then modifying it and restarting it from the last iteration).

This PR aims at avoiding all these issues by applying the following changes:

Testing

Documentation

Checklist (will be removed when merged)

See this page for more information about the pull request process.

Code related list:

Pull request related list: