PyBaMM icon indicating copy to clipboard operation
PyBaMM copied to clipboard

Time convolutions

Open isaacbasil opened this issue 3 months ago • 2 comments

Description

For some of the models I'm working with it would be interesting to have a time convolution operator, $\int_{0}^{t}f\left(\tau\right)g\left(t-\tau\right)d\tau$, where $f(t)$ would be some known function that is a pybamm.Interpolant class, and $g(t)$ would be an unknown function that is being solved for in the model. Would this be a difficult feature to implement? I was thinking it could use Scipy's convolve function, for example.

Motivation

It supports programming some models derived using volume averaging (paper coming soon!).

Possible Implementation

No response

Additional context

No response

isaacbasil avatar Sep 19 '25 07:09 isaacbasil

This would take a lot of effort to implement because any $$\tau > 0$$ changes the class of differential equations to a system of delay differential equations/delay differential-algebraic equations, which requires a new class of solvers

MarcBerliner avatar Sep 19 '25 13:09 MarcBerliner

Ok no worries, thanks for your response

isaacbasil avatar Sep 19 '25 13:09 isaacbasil