chaos-polymtl / lethe

Repository for the open-source lethe CFD/DEM/CFD-DEM project
https://chaos-polymtl.github.io/lethe/index.html
GNU Lesser General Public License v2.1
270 stars 59 forks source link

Precompute time-dependent forcing term #1272

Open peterrum opened 2 weeks ago

peterrum commented 2 weeks ago

PR https://github.com/chaos-polymtl/lethe/pull/1270 made the assumption that the forcing function is constant over time. However, it seems that it can be time-dependent

https://github.com/chaos-polymtl/lethe/blob/64527c5b25f4b0be3ca1fdbb89a6d3c49b4c3819/source/solvers/fluid_dynamics_matrix_free.cc#L2019-L2020

We need a logic to that allows us to figure if a function is time-dependent or not.

blaisb commented 2 weeks ago

I'll take care of that.