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

Precompute time-dependent forcing term #1272

Open peterrum opened 2 months ago

peterrum commented 2 months 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 months ago

I'll take care of that.