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

Moving boundary conditions #391

Closed ChengXiaoSi closed 1 year ago

ChengXiaoSi commented 1 year ago

Hello! I want to know how do I set my boundary conditions if they are moving over time. Thanks!

david-zwicker commented 1 year ago

I don't know what you specific problem is, but there is an example with time-dependent boundary conditions, which might help you.

ChengXiaoSi commented 1 year ago

Thank you very much for your reply!The problem I encountered was a bit complicated. The solution domain is divided into two parts, each separately governed by a different PDE, and these two PDEs are coupled through a common boundary condition.And the two boundary conditions of the solution domain expand with time at a fixed rate, which is the moving boundary condition I mentioned earlier.I don't know whether py-pde can solve such a problem.Thanks!

david-zwicker commented 1 year ago

I‘m afraid that this is not easily possible and we also don’t have plans to implement anything along these lines. Sorry

ChengXiaoSi commented 1 year ago

Thanks for your answer! I'll try something else.