lettucecfd / lettuce

Computational Fluid Dynamics based on PyTorch and the Lattice Boltzmann Method
MIT License
223 stars 39 forks source link

Reporter to interrupt simulation #174

Open PhiSpel opened 4 months ago

PhiSpel commented 4 months ago

Often, the server time is limited on the cluster. A reporter should be able to check the expired time and interrupt Simulation.call() by simply setting flow.i to num_steps if the time surpasses a limit.

This could be useful for the benchmark, see #92