zwicker-group / py-pde

Python package for solving partial differential equations using finite differences.
https://py-pde.readthedocs.io
MIT License
402 stars 51 forks source link

Add option for transformer function to `StorageTracker` #434

Closed david-zwicker closed 1 year ago

david-zwicker commented 1 year ago

StorageTracker should not only be able to store the actual fields of the simulations, but also some derived fields. The idea would be to add an argument to the StoragerTracker which could take a function that computes a field or field collection based on the current state and time. The default would be to simply forward the field.

The idea was raised in #433