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
271 stars 60 forks source link

Fix box refinement with restart #1184

Closed hepap closed 3 months ago

hepap commented 3 months ago

Description

Box refinement was applied when restarting simulations, changing the restarting triangulation and leading to undesirable behavior.

Solution

A boolean stating if the simulation restarts is now checked before applying the box refinement in box_refine_mesh(const bool &restart).

Testing

A new test simulate the lpbf benchmark case using the extra-extra-coarse mesh with restart and box refinement. Temperature statistics and mass conservation monitoring are the outputted metrics (to track both the change in HT and NS-VOF solvers).

Documentation

No documentation needs to be modify.