zwicker-group / py-pde

Python package for solving partial differential equations using finite differences.

Home Page:https://py-pde.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow more flexible expressions in `ExpressionBC`

david-zwicker opened this issue · comments

As suggested in the discussion #488, we might want to allow that expressions depend on field values other than the cell adjacent to the wall. We could simply support an additional argument in ExpressionBC, which sets the index where the field value is read from. Obviously, the default would be to read the value from the cell adjacent to the boundary.